API keys

Personal API keys let integrations act as you — every link they create lands in your dashboard, counts against your plan, and shows up in your analytics.

Create a key

  1. Sign in and open Dashboard → Settings → API keys.
  2. Give the key a name that says where it will live — Claude MCP, CI deploy script, ChatGPT Action.
  3. Click Create key and copy the secret (slim_…) immediately.

The full secret is shown exactly once. After that the dashboard only shows the prefix (slim_b17f362…). If you lose it, revoke the key and create a new one.

Use a key

Send it as an X-API-Key header:

curl -s https://slim.to/api/v1/links -H "X-API-Key: slim_your_key_here"

Manage keys

Good hygiene

API endpoints (for completeness)

Key management itself requires session (JWT) auth, not key auth:

Method Path
POST /api/v1/api-keys Create — body {"name": "…"}, returns the secret once
GET /api/v1/api-keys List active keys (prefixes only)
DELETE /api/v1/api-keys/<id> Revoke