Pagination
Three list routes page with page and limit: /api/v1/projects, /api/v1/articles and /api/v1/social/content. There are no cursors.
01Query
| Parameter | Default | Rules |
|---|---|---|
| page | 1 | Integer, 1 or more |
| limit | 20 | Integer, 1 to 100. Anything else is a 400 VALIDATION_ERROR. |
GET /api/v1/actors is not paginated: it returns every Actor in the project with meta.total.
02Response
200Response
{
"success": true,
"data": [],
"pagination": {
"total": 42,
"page": 2,
"limit": 20,
"total_pages": 3,
"has_more": true
},
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z"
}
}| Field | Meaning |
|---|---|
| total | Rows matching your filters |
| total_pages | ceil(total / limit) |
| has_more | True when another page exists |
03Walk every page
Your codeBrainpercent
- Your code to Brainpercent:
GET /api/v1/articles?page=1 - Brainpercent to Your code:
has_more: trueAnother page exists. Ask for the next one. - Your code to Brainpercent:
GET /api/v1/articles?page=2 - Brainpercent to Your code:
has_more: falseThat was the last page. Stop.
has_more is inside the pagination object of every answer.curl "https://www.brainpercent.app/api/v1/articles?page=2&limit=100" \
-H "Authorization: Bearer $BP_KEY"