Pagination
Every collection endpoint returns the same paginated envelope, so you can write one helper and reuse it everywhere.
Request parameters
| Parameter | Default | Description |
|---|---|---|
page | 1 | 1-indexed page number. |
per_page | 20 | Results per page. Max 100. |
Request page 2
curl "https://api.materialtransition.com/v1/suppliers?page=2&per_page=10" \
-H "Authorization: Bearer mt_demo_1234567890abcdef1234567890abcdef"Response envelope
data holds the page of results; total is the full unpaginated count; stats (when present) carries lightweight aggregates so you avoid a second round-trip.
200 OK
{
"data": [ /* ...10 suppliers... */ ],
"total": 48,
"page": 2,
"per_page": 10,
"stats": { "verified": 31 }
}Iterating all pages
Keep requesting until page * per_page >= total.