Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Pagination

Every list is paged, newest first: ask for a page size, then continue after the last ID you got.

Every list endpoint returns one page at a time, newest first, from the key's mode only.

Parameters

ParameterWhat it does
limitHow many to return, from 1 to 100. Default 10.
starting_afterAn ID from the page you have: the list continues after it.
ending_beforeAn ID from the page you have: the list returns the page before it.

The first page

The first page
bash
curl "https://api.sovgate.com/v1/payments?limit=3" \  -H "Authorization: Bearer sov_sk_test_your_key"
The answer
json
{  "object": "list",  "url": "/v1/payments",  "has_more": true,  "data": [    { "id": "pay_...", "object": "payment" },    { "id": "pay_...", "object": "payment" },    { "id": "pay_9f1c2e7a4b3d8e6f0a1b2c3d", "object": "payment" }  ]}

The next page

When has_more is true, ask for the next page with the last ID you got:

The next page
bash
curl "https://api.sovgate.com/v1/payments?limit=3&starting_after=pay_9f1c2e7a4b3d8e6f0a1b2c3d" \  -H "Authorization: Bearer sov_sk_test_your_key"

Limits and order

A limit above 100 is refused, never cut. Events are listed in the order Sovgate recorded them.