Skip to main content

Quickstart

Create your first link in under a minute.

  1. Copy your tokenFrom the API page.
  2. Save it on your serverAs KEYSTORM_API_TOKEN.
  3. Run the exampleThe response has the url to share.
create-link
import { randomUUID } from 'node:crypto';const response = await fetch('https://api.keystorm.xyz/v1/integrations/links', {  method: 'POST',  headers: {    Authorization: `Bearer ${process.env.KEYSTORM_API_TOKEN}`,    'Content-Type': 'application/json',    'Idempotency-Key': randomUUID(),  },  body: JSON.stringify({    title: 'Complete texture pack',    destinationUrl: 'https://example.com/pack.zip',    keysRequired: 3,    campaignKey: 'instagram-bio',  }),});if (!response.ok) throw new Error(`Request failed: ${response.status}`);const { data } = await response.json();console.log(data.url); // share this link

The new link shows up in Links right away, with its own views, visitors and unlocks.