List pieces (keyset-paginated)
GET/pieces
Returns one page of the account's non-deleted pieces, newest edit first, in the uniform list envelope { data, pagination }. Filter by productId and kind. Archived pieces are left out unless archived is include or only. Keep paginating while pagination.nextCursor is non-null, passing it back verbatim as ?cursor=.
Request
Responses
- 200
- 400
- 401
- 403
- 422
- 429
OK. One keyset-paginated page of pieces.
Bad Request. The cursor query parameter is not a valid opaque keyset cursor (INVALID_CURSOR).
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).
Unprocessable Content. A query parameter failed field validation (e.g. a non-string shape); the offending fields are enumerated in errors[].
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.