Skip to content

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

ParameterTypeDescriptionDefault
limitintegerItems per page (1-100)25
cursorstringCursor 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="
}

Built with VitePress