Skip to main content

Revoke a link

Take a link offline for new buyers and keep its history.

POST/v1/integrations/links/:link/revoke

Takes the link offline for new buyers. Its sales history and statistics are kept. Revoking can't be undone through the API.

HeaderValue
AuthorizationRequiredBearer <token>
If-MatchRequiredThe ETag from your last read.
Idempotency-KeyOptionalLets you retry safely.

No body is needed. If you send one, it must be {} with Content-Type: application/json.

const link = 'https://api.keystorm.xyz/v1/integrations/links/k_61tdb_ruab4MZVYO';const auth = { Authorization: `Bearer ${process.env.KEYSTORM_API_TOKEN}` };const current = await fetch(link, { headers: auth });const response = await fetch(`${link}/revoke`, {  method: 'POST',  headers: { ...auth, 'If-Match': current.headers.get('etag') },});if (!response.ok) throw new Error(`Revoke failed: ${response.status}`);

200 OK with the link, now "status": "revoked". Revoking a link that is already revoked also returns 200.