Skip to main content

Pagination

All endpoints that use pagination are cursor based. You can use the ID of the last value in the response as the cursor for the next request. The item used as the cursor will not be included in the response.

Example response

{
"first": "ID-1",
"last": "ID-20",
"data": [
//...
]
}

Example request with cursor

import { Salable } from '@salable/node-sdk';

const salable = new Salable('your-salable-api-key', 'v2');
await salable.subscriptions.getAll({
owner: 'orgId_1',
cursor: 'ID-20'
});
OptionDescriptionRequired
takeNumber of items returned per request. Default 20.
cursorThe ID of the item to take from in the list. If not set the request will return the first page.