Skip to main content

Retrieve a link

Read one link and the ETag you need to change it.

GET/v1/integrations/links/:link

Returns one link and its current ETag. :link is the link ID or the code from its URL.

const response = await fetch('https://api.keystorm.xyz/v1/integrations/links/k_61tdb_ruab4MZVYO', {  headers: { Authorization: `Bearer ${process.env.KEYSTORM_API_TOKEN}` },});if (!response.ok) throw new Error(`Read failed: ${response.status}`);const etag = response.headers.get('etag'); // needed to edit or revokeconst { data } = await response.json();

200 OK with the link object. 404 LINK_NOT_FOUND if the link doesn't exist or isn't yours.