Retrieve a link
Read one link and the ETag you need to change it.
GET
/v1/integrations/links/:linkReturns 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();import os, requestsresponse = requests.get( 'https://api.keystorm.xyz/v1/integrations/links/k_61tdb_ruab4MZVYO', headers={'Authorization': f"Bearer {os.environ['KEYSTORM_API_TOKEN']}"}, timeout=15,)response.raise_for_status()etag = response.headers['ETag'] # needed to edit or revokelink = response.json()['data']# -i prints the headers, including ETagcurl -s -i https://api.keystorm.xyz/v1/integrations/links/k_61tdb_ruab4MZVYO \ -H "Authorization: Bearer $KEYSTORM_API_TOKEN"200 OK with the link object. 404 LINK_NOT_FOUND if the link doesn't exist or isn't yours.