Make a piece's finished slides
POST/pieces/:pieceId/export-slides
Makes the finished slide pictures (words in, one PNG per slide at the canvas size) of a still piece - a post, a carousel, a still story or ad - as it stands now. FREE: nothing is ever charged. A piece with edits not yet kept is kept as a new version first. Answers 202 at once; read the piece with GET /pieces/{pieceId} (the Location) until its finishing is false: its slides then read finished: true with their pictureUrl, at this version. A piece whose slides of this version are already made answers finished and makes nothing. Asking again while they are being made answers the same version and starts nothing new. The body is empty.
Request
Responses
- 202
- 401
- 403
- 404
- 409
- 422
- 429
Accepted. The slides are being made, or already were.
Response Headers
The piece: /api/public/v1/pieces/{pieceId}.
Unauthorized. Missing, malformed, unknown, revoked, or expired bearer token — or the token owner no longer holds the required entitlement (ENTITLEMENT_LOST). A uniform problem body is returned with a distinct code; no owner/condition detail (no-leak).
Forbidden. The key lacks the chat scope (API_TOKEN_SCOPE_DENIED), or the account's plan does not include drafts (BETA_ACCESS_REQUIRED).
Not Found. No piece of this account has that id (PIECE_NOT_FOUND): another account's, a deleted one and a missing one answer the same.
Conflict. A slide's picture is still being made (SLIDE_FRAMES_WAITING), another finish of the piece is running (PIECE_FINISHING), or the piece kept changing while it was being kept (PIECE_REVISION_STALE). Nothing was made; ask again after Retry-After.
Response Headers
Seconds to wait before asking again.
Unprocessable Content. The piece has no slide pictures (PIECE_NOT_STILL): a Reel, a video, a moving story or a store page; a Reel's finished result is its video. Or it names no product and no brand, so its slides have nowhere to be kept (SLIDE_EXPORT_NO_HOME). Nothing was kept or made.
Too Many Requests. The per-token sliding window of 30 requests/minute was exceeded. The body is express-rate-limit's DEFAULT plain-text message (NOT the JSON problem+json envelope).
Response Headers
IETF draft-7 rate-limit policy/state (limit, remaining, reset).
Seconds to wait before retrying.