Skip to content
Developer guide

Pagination

Offset-based pagination on every list endpoint. Same shape across the entire API surface.

Context and key considerations

Every paginated list endpoint — GET /api/v1/payments, GET /api/v1/webhooks, etc. — uses the SAME offset-based envelope. Pass limit + offset on the query string; we return the page of rows plus a pagination block with the total count so you can compute how many pages remain.

Exception — GET /api/v1/payment-methods: not paginated. It's a small per-country catalog (≤30 entries for the largest market). The response shape is { shop, environment, filters, count, totalAvailable, routableCount, methods } and you receive every row in one call. Treat it as a config endpoint to cache and refresh sporadically, not a stream to paginate.
1 / 4

Request parameters

ParamTypeDefaultNotes
limitinteger50Rows per page. Range 1–100; values outside the range are clamped silently.
offsetinteger0How many rows to skip. offset = page * limit.
bash
# First page (default limit=50, offset=0)
curl "https://sandbox.key2pay.ai/api/v1/payments" \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"

# Page 3 with 20 rows per page (skip 40 rows)
curl "https://sandbox.key2pay.ai/api/v1/payments?limit=20&offset=40" \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Key2Pay Developer documentationAPI v1
Documentation
Dashboard