Get Post Output
GET /post/output/{embedPostId}
Retrieves the generated output for a completed post.
Headers
embed-api-key: your-api-key-here
(required)
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
embedPostId | string | Yes | ID of the embed post to retrieve |
Example Request
curl --location 'https://embed-api.postnitro.ai/post/output/post123' \
--header 'embed-api-key: pn-plnnepb6v9omx2ik88v793ak'
Response
For PNG Response Type:
{
"success": true,
"data": {
"embedPost": {
"id": "post123",
"postType": "CAROUSEL",
"responseType": "PNG",
"status": "COMPLETED",
"credits": 4,
"createdAt": "2025-08-03T13:40:49.098Z",
"updatedAt": "2025-08-03T13:40:53.425Z"
},
"result": {
"name": "Welcome to the Carousel!",
"size": "4:5",
"type": "png",
"mimeType": "image/png",
"data": [
"iVBORw0KGgoAAAANSUhEUgAABDgAAAVGCAIAAAD0LZzdAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3XuUVnWh/"
]
}
}
}
For PDF Response Type:
{
"success": true,
"data": {
"embedPost": {
"id": "post123",
"postType": "CAROUSEL",
"responseType": "PDF",
"status": "COMPLETED",
"credits": 4,
"createdAt": "2025-08-03T13:59:07.502Z",
"updatedAt": "2025-08-03T13:59:12.181Z"
},
"result": {
"name": "Welcome to the Carousel!",
"size": "4:5",
"type": "pdf",
"mimeType": "application/pdf",
"data": "iVBORw0KGgoAAAANSUhEUgAABDgAAAVGCAIAAAD0LZzdAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3XuUVnWh/"
}
}
}
Result Object Details
Field | Type | Description |
---|---|---|
name | string | Design name (from template or “Untitled”) |
size | string | Design aspect ratio (e.g., “4:5”) |
type | string | File type in lowercase (“png” or “pdf”) |
mimeType | string | MIME type for the file |
data | string/array | PNG: Array of base64-encoded image blobs (one per slide) PDF: Single base64-encoded PDF blob |