# 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

```json
{
  "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)

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.marketingblocks.ai/agentic-ai-docs/api-reference/social-growth-engine/content-creation/find-generated-post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
