Pagination
List endpoints return a common envelope:- Cursor pagination (
limit+after_id) — collections, chat sessions, and messages. Pass the last item’sidasafter_idto fetch the next page. - Offset pagination (
skip+limit) — collection files, which additionally returncount(total matches) to support sorted, filterable tables.
Errors
Error responses carry a structured envelope alongside the legacydetail field:
error is the canonical shape; detail is retained for backward compatibility and will be removed in a future API version.
Include
error.request_id when contacting support about a failed request.
Rate limiting
Requests are rate-limited per account. When throttled, the API returns429 with a Retry-After header expressing the wait in seconds.
