Skip to main content

Pagination

All List endpoints support pagination to allow bulk fetching multiple items. Each List endpoint shares a common response structure. Examples of these requests can be seen in List Applications and List Tokens.

Request

curl "https://api.basistheory.com/applications?page=2&size=10" \
-H "BT-API-KEY: key_N88mVGsp3sCXkykyN2EFED"

Query Parameters

ParameterRequiredTypeDefaultDescription
pagefalseinteger1Page number of the results to return.
sizefalseinteger20Number of results per page to return. Maximum size of 100 results.

Response

{
"pagination": {
"total_items": 924,
"page_number": 2,
"page_size": 10,
"total_pages": 93
},
"data": [
{...},
{...},
{...}
]
}

Pagination Object

AttributeTypeDescription
paginationpagination metadataPagination metadata for the response
dataarrayQuery results of the request. See list endpoint resource for response schema definition

Pagination Metadata Object

AttributeTypeDescription
total_itemsintegerTotal number of items in the Tenant
page_numberintegerCurrent page number. Should match page query parameter.
page_sizeintegerThe size of each page. Should match size query parameter.
total_pagesintegerThe total number of pages.