Guides
How list endpoints are paginated
All list endpoints return paginated results.
| Parameter | Default | Max | Description |
|---|---|---|---|
page | 1 | — | Page number |
limit | 20 | 100 | Items per page |
sort_by | varies | — | Sort field |
sort_order | desc | — | asc or desc |
{
"data": [...],
"meta": {
"pagination": {
"page": 1,
"limit": 20,
"total": 142,
"totalPages": 8
}
}
}
# Page 1
curl -H "Authorization: Bearer $KEY" \
"https://api.smartmca.com/api/public/v1/deals?page=1&limit=10"
# Page 2
curl -H "Authorization: Bearer $KEY" \
"https://api.smartmca.com/api/public/v1/deals?page=2&limit=10"
page=1 and increment until page > totalPageslimit=100 for bulk exportscreatedAt for consistent ordering during export