Delete Post

Endpoint:

DELETE https://app.marketingblocks.ai/api/v1/social-sparks/delete-post/{postId}

This endpoint deletes a specific post from the Social Sparks platform using its unique postId. Requires the social-delete-post permission.


Authentication

Type: Bearer Token

Authorization: Bearer <token>

Path Parameters

Parameter
Type
Required
Description
Example

postId

string

yes

Unique identifier of the post to delete.

1223


Example Request

cURL

curl --location --request DELETE \
'https://app.marketingblocks.ai/api/v1/social-sparks/delete-post/1223' \
--header 'Authorization: Bearer <token>'

Plain URL

DELETE https://app.marketingblocks.ai/api/v1/social-sparks/delete-post/1223

Response Structure

The response is a JSON object containing:

Field
Type
Description

message

string

Optional message about the request (may be empty or contain details).

status

boolean

Indicates whether the deletion was successful (true if successful).


Example Response

{
  "message": "Post deletion initiated successfully.",
  "status": true
}

Last updated