Authentication
Every request carries your API token.
Send your token in the Authorization header of every request. Find it on the API page of your creator dashboard, where you can show, copy, replace or revoke it.
const response = await fetch('https://api.keystorm.xyz/v1/integrations/links?limit=1', { headers: { Authorization: `Bearer ${process.env.KEYSTORM_API_TOKEN}` },});console.log(response.status); // 200 means your token worksimport os, requestsresponse = requests.get( 'https://api.keystorm.xyz/v1/integrations/links', params={'limit': 1}, headers={'Authorization': f"Bearer {os.environ['KEYSTORM_API_TOKEN']}"}, timeout=15,)print(response.status_code) # 200 means your token workscurl -s https://api.keystorm.xyz/v1/integrations/links?limit=1 \ -H "Authorization: Bearer $KEYSTORM_API_TOKEN"| Detail | How it works |
|---|---|
| Format | ks_links_live.<id>.<secret>. Use it exactly as copied. |
| One per account | Your account has a single active token. Every server and script you run shares it. |
| Replacing | Generate new token on the API page stops the old one immediately. Update your servers right after. |
| Revoking | Stops API access. Links you already published stay live. |
| Usage | Replacing the token does not reset today's creation quota. |
Keep it secret
Anyone with your token can create, edit and revoke your links. Store it as an environment variable or in a secret manager, never in front-end code, mobile apps, repositories, URLs or logs. If it leaks, generate a new one.