Create carousels with the API
Generate a carousel from a topic, text, or link, then publish its slides.
Posteady writes the copy for each slide, designs it, and saves every slide as a JPEG image in your media library. Generation is not a single request: you submit it, check its status until it finishes, then publish with the images you get back.
Flow
- (Optional) List options to find the IDs of templates and brands.
- Submit the request — you get a
carouselIdright away. - Check the status every 20–30 seconds until it is
completedorfailed. - Publish or schedule with the
mediaIdof each finished slide.
Generation usually finishes within one to three minutes. In our tests, a 5–6 slide carousel generated from a topic took about a minute; more slides, link sources, and AI images take longer.
Submit the request
requestId is a UUID you generate. Provide exactly one content source: topic, text, or url.
curl --request POST "https://www.posteady.com/api/v1/carousels" \
--header "Authorization: Bearer $POSTEADY_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"requestId": "77777777-7777-4777-8777-777777777777",
"topic": "Five mistakes first-time cafe owners make in their opening month",
"slideCount": 5,
"language": "en"
}'{
"carouselId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"status": "queued"
}An accepted request returns HTTP 202. Problems you can fix — invalid input, plan restrictions, insufficient credits, an unknown template or brand — are returned as errors at submission.
| Source | Value | Use |
|---|---|---|
topic | One or a few sentences (up to 1,000 characters) | You give the subject and Posteady writes the content. |
text | An article, notes, or a script | Posteady organizes your text into slides. |
url | A public link | Posteady reads the page's text and images as source material. |
| Option | Description |
|---|---|
templateId | Keeps the template's design and writes new copy into it. Omit to let Posteady design the carousel. |
brandId | Places the brand name and logo on the slides. Omit for no brand. |
slideCount | 3–20 slides. Omit to let Posteady decide. |
aspectRatio | 1:1, 3:4 (default), 4:5, 9:16, 16:9. Not allowed with a template, which fixes the ratio. |
language | Output language. Defaults to the workspace language. |
imageMode | stock (default) stock photos, ai AI images, none no photos, preserve keep the template's images. none works only without a template; preserve only with one. |
imageStyle | Style of AI images. Only with imageMode set to ai. |
webImageSearch | Searches the web for photos of products, people, or places named in the content. Not allowed with a template. |
instructions | Extra direction such as tone, audience, or points to emphasize (up to 1,000 characters). |
requiredPhrases | Phrases the carousel must contain word for word, such as a title, an episode number, or a disclosure. See Required phrases. |
Media sources in brand rules
Sources turned off in the workspace's brand rules can't be used through the API either. No one checks the photos of an API carousel before it's saved. So if the workspace requires stock photos to be reviewed in the Posteady app first, the API can't use stock photos.
- If you send an
imageModeorwebImageSearchthat uses a blocked source, the request returns422 VALIDATION_ERRORand nothing is created. The message tells you why. - If you omit
imageMode, stock photos are used only if the brand rules allow them without review. Otherwise the carousel is made without photos, and a template keeps its own images.
Required phrases
The workspace's required phrases always apply. For phrases that change with each post, such as a title or an episode number, send requiredPhrases. They're added after the workspace's phrases, and each one is placed exactly as written.
"requiredPhrases": [
{ "text": "Studio Lantern · EP.01", "placement": "first" },
{ "text": "※ AI-generated concept art", "placement": "every" }
]placement | Where the phrase goes |
|---|---|
first | The cover slide |
last | The last slide |
every | Every slide, as a notice line at the bottom in smaller text than the body |
caption | The caption |
anywhere | Any slide or the caption. A phrase in neither goes on the last slide |
- Send up to 5 phrases of up to 120 characters each. Too many or too long phrases, or the same phrase twice in the same
placement, return422 VALIDATION_ERROR, and nothing is created. - The carousel keeps these phrases. The status response returns them in
requiredPhrases, and the Posteady editor checks them the same way as the workspace's phrases. - If a required phrase is missing from a completed carousel's slides or caption, or shortened with "…", the status response lists it in
warnings.requiredPhrases. The workspace's phrases and these phrases are checked the same way as in the Posteady editor, and generation doesn't fail. When there are warnings, fix the carousel ateditorUrlbefore you publish. Only the editor can tell when a phrase is cut off by its text box.
Credits
Each generated carousel is charged to the organization's credits. Read the amount from generationCredits in the options response. With imageMode set to ai, each generated image is charged in addition.
If credits are insufficient at submission, the request returns 402 INSUFFICIENT_CREDITS and nothing is created. If generation fails after submission, its generation credits are refunded.
Check the status
curl --request GET "https://www.posteady.com/api/v1/carousels/cccccccc-cccc-4ccc-8ccc-cccccccccccc" \
--header "Authorization: Bearer $POSTEADY_API_KEY"status | Meaning | Next step |
|---|---|---|
queued, processing | Still generating | Check again in 20–30 seconds. |
completed | Saved and rendered | Publish with the mediaId values in images. |
failed | Failed | Read error.code. |
{
"carouselId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"status": "completed",
"editorUrl": "https://www.posteady.com/carousel/cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"title": "Five mistakes first-time cafe owners make",
"caption": "Opening a cafe? Avoid these five mistakes in your first month.",
"aspectRatio": "4:5",
"slideCount": 5,
"images": [
{
"mediaId": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
"url": "https://media.posteady.com/media/example/slide-01.jpg",
"width": 1080,
"height": 1350
}
]
}requiredPhrases lists the carousel's own required phrases and is omitted when there are none. warnings is present only when a required phrase is missing or shortened. images lists the slides in order. Open editorUrl to change copy or design in the Posteady editor. After an edit, images can be empty because the earlier images no longer match the content. Download the carousel or create a post from it in the editor to render it again, then check the status once more.
Workspaces on the free trial can't download files, so their images have no url. Pass mediaId to publish or schedule the slides.
You can also read carousels made in the Posteady app. The carouselId is the last part of the editor URL.
Templates and brands
curl --request GET "https://www.posteady.com/api/v1/carousels/options" \
--header "Authorization: Bearer $POSTEADY_API_KEY"Use a templateId from templates and a brandId from brands in the request. Templates provided by Posteady are listed by default; add templateSource=workspace for templates saved in this workspace. When nextTemplateCursor is present, pass it as cursor to read the next page.
Publish the slides
Finished slides are images in the workspace media library. Put their mediaId values, in order, into items of an Instagram media request, and use caption as the post text if you like. An Instagram carousel takes 2–20 items, so every slide of a carousel fits in one post.
curl --request POST "https://www.posteady.com/api/v1/posts" \
--header "Authorization: Bearer $POSTEADY_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"accountIds": [
"11111111-1111-4111-8111-111111111111"
],
"instagram": {
"requestId": "33333333-3333-4333-8333-333333333333",
"contentType": "FEED",
"caption": "Opening a cafe? Avoid these five mistakes in your first month.",
"items": [
{
"mediaId": "dddddddd-dddd-4ddd-8ddd-dddddddddddd"
},
{
"mediaId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee"
}
]
}
}'The publishing requestId is separate from the one used for generation. Track the result with publishing status. Account requirements and per-format input are in the Instagram media guide.
Retry a request
If you did not receive a response, send it again with the same requestId and the same body. You get the same carousel and are not charged again. A different body with the same requestId returns 409 REQUEST_CONFLICT.
Sending a failed request again with the same requestId returns the same failed result. Use a new requestId to try again.
When generation fails
error.code | Meaning and next step |
|---|---|
SOURCE_UNAVAILABLE | The link could not be read or has no usable text. Check the URL, or send the content as text. |
SOURCE_TOO_LONG | The source is too long for one carousel. Shorten it and submit a new request. |
TEMPLATE_UNAVAILABLE | The template was removed or changed, or it needs fonts or images this workspace does not have. Choose another template. |
INSUFFICIENT_CREDITS | Credits ran out after submission. |
PLAN_REQUIRED | The organization's plan does not include carousel generation. |
RATE_LIMITED | Too many links were read in a short time. Submit a new request in a few minutes. |
STORAGE_LIMIT_EXCEEDED | Workspace storage is full. Free up space in the media library. |
GENERATION_FAILED, GENERATION_INTERRUPTED | Generation failed or was interrupted. Submit again with a new requestId. |
RENDER_FAILED | The carousel was saved but its images could not be rendered. Finish it at editorUrl. |
Generation credits are refunded for every failure except RENDER_FAILED, where the carousel was saved.
Good to know
- Videos in the source are used as still images. To create slides with video, use the Posteady app.
- You can't generate a carousel through the API from a template that uses uploaded fonts missing from the workspace. In the app you can choose replacement fonts.
- With MCP, the same flow uses the
create_carousel,get_carousel, andlist_carousel_optionstools. See MCP tools.