Shared schemas
Response wrappers, pagination, and error types used across the API.
ClassicPaging
Classic page-based pagination response
{
"pageSize": integer,
"pageNumber": integer,
"pageTotal": integer,
"itemTotal": integer,
"latestCursor": string
}pageSizeintegerNumber of items per page
pageNumberintegerCurrent page number (1-indexed)
pageTotalintegerTotal number of pages
itemTotalintegerTotal number of items matching the query
latestCursorstringCursor of the newest item in the response. Use as sinceCursor to poll for new items.
CursorPaging
Cursor-based pagination response
{
"pageSize": integer,
"nextCursor": string | null,
"latestCursor": string
}pageSizeintegerNumber of items per page
nextCursorstring | nullCursor to request the next page, or null if no more results
latestCursorstringCursor of the newest item in the response. Use as sinceCursor to poll for new items.
ErrorDetail
Error details
ErrorResponse
Error response wrapper
{
"error": ErrorDetail
}errorErrorDetailError details
Meta
Response metadata (information about the data, such as pagination)
Paging
Pagination response. Format depends on which parameter was used: pageCursor → CursorPaging, pageNumber → ClassicPaging, sinceCursor → SinceCursorPaging.
SinceCursorPaging
Response for sinceCursor polling. Returns items newer than the provided cursor.
{
"pageSize": integer,
"latestCursor": string,
"count": integer,
"hasMore": boolean
}pageSizeintegerMaximum items per response
latestCursorstringCursor of the newest item returned. Use this value as sinceCursor in the next poll. If no new items, echoes back the original sinceCursor value.
countintegerNumber of items returned in this response
hasMorebooleanTrue if more items exist beyond pageSize. When true, the response contains the newest pageSize items but older new items were truncated.