Pagination
The Emailhook API uses cursor-based pagination for list endpoints.
How It Works
List endpoints return paginated results with:
- data - Array of items for the current page
- nextCursor - Opaque cursor for the next page (null if no more pages)
Parameters
Parameter | Type | Description | Default |
---|---|---|---|
limit | integer | Items per page (1-100) | 25 |
cursor | string | Cursor from previous response | - |
Example
bash
curl -H "Authorization: Bearer apk_your_api_key_here" \
"https://api.emailhook.com/v1/emails?limit=10"
Response:
json
{
"data": [...],
"nextCursor": "eyJpZCI6ICJlbWxfMTIzIn0="
}