Pagination
How list endpoints paginate results — query parameters and the Pagination object returned with every list response.
All list endpoints (e.g. "get orders") accept the same pagination query parameters and return the
same pagination object alongside the results.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number, starting at 1. Defaults to 1. |
limit | integer | no | Items per page. Defaults to 20, max 100. |
Pagination object
| Field | Type | Description |
|---|---|---|
page | integer | Current page number. |
limit | integer | Number of results per page. |
total | integer | Total number of matching results. |
hasMore | boolean | true if there are additional pages. |
Example
curl "https://api.usedecal.com/v0/orders?page=2&limit=50" \
-H "Authorization: Bearer sk_live_your_api_key_here"{
"orders": [...],
"pagination": {
"page": 2,
"limit": 50,
"total": 137,
"hasMore": true
}
}