Get a piece
GET/pieces/:pieceId
Returns one piece: its channel, caption, button, account, slides with their words, seconds and pictures, and the finished file once it is ready. Another account's piece, a deleted one and a missing one answer the same 404.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK. The piece.
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 a required 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).
Too Many Requests. The per-token sliding window of 200 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.