Find Generated Post

Endpoint: https://app.marketingblocks.ai/api/v1/social-sparks/get-post-generation/{post_id}

Description

Retrieves the details of a specific post generation using its unique identifier. Useful for checking the status, caption, and media of a generated post.

Request

  • Method: GET

  • Path Parameter:

    • post_id (string, required): The unique identifier of the post generation.

Response

Returns a JSON object with the following fields:

  • id (string): Unique identifier of the post generation.

  • status (string): Current status (queued, done, etc.).

  • caption_text (string): The generated caption, if available.

  • media_urls (array of strings): URLs of associated media (images or videos).

Example Response

{
  "id": "842c8151-8f9d-4eab-ae81-6690730b8b02",
  "status": "done",
  "caption_text": "This might be the missing piece to perfect flower buying. \n\nFollow these steps next time you want flowers to last longer and look fresher. \n\n→ Always ask when flowers arrived at the shop... ",
  "media_urls": [
    "https://cdn.vidjack.com/file/marketingblocks/video/breel-video-842c8151-8f9d-4eab-ae81-6690730b8b02-1755615234.mp4"
  ]
}

Authorization

Requires Bearer Token with social-post-generation permission.

Example Request (cURL)

curl --location 'https://app.marketingblocks.ai/api/v1/social-sparks/get-post-generation/842c8151-8f9d-4eab-ae81-6690730b8b02' \
--header 'Authorization: Bearer <token>'

Last updated