Skip to main content

List links

Page through your links, newest first.

GET/v1/integrations/links

Returns your links, newest first, including the ones made in the dashboard.

Query parameters

ParameterRules
limitintegerDefault 501 to 100 links per page.
statusstringOptionalactive or revoked.
campaignKeystringOptionalOnly links with this campaign. Use none for links without one.
cursorstringOptionalThe nextCursor from the previous page.

Pagination

When pagination.hasMore is true, request the next page with cursor set to pagination.nextCursor and the same filters. A cursor expires after one hour; an expired cursor or changed filters return 400 INVALID_CURSOR, so start again from the first page. Links created after you fetched the first page appear in your next listing.

All active links
const auth = { Authorization: `Bearer ${process.env.KEYSTORM_API_TOKEN}` };let cursor = null;do {  const url = new URL('https://api.keystorm.xyz/v1/integrations/links');  url.searchParams.set('limit', '100');  url.searchParams.set('status', 'active');  if (cursor) url.searchParams.set('cursor', cursor);  const response = await fetch(url, { headers: auth });  if (!response.ok) throw new Error(`List failed: ${response.status}`);  const { data, pagination } = await response.json();  for (const link of data) console.log(link.url, link.title);  cursor = pagination.nextCursor;} while (cursor);
200 OK
{  "data": [    { "id": "48971310-428d-4291-9e52-2d975c885ca0", "url": "https://keystorm.co/l/k_61tdb_ruab4MZVYO", "title": "Complete texture pack", "status": "active", "...": "..." }  ],  "pagination": {    "hasMore": true,    "nextCursor": "eyJ2ZXJzaW9uIjoxLC..."  }}
No ETag in lists

To edit or revoke a link from a list, read it first with GET /v1/integrations/links/:link to get its ETag.