API Keys
API keys let you access SuperDocs from your code, scripts, or AI tools.Create a key
- Open use.superdocs.app and sign in
- Click the gear icon to open Settings
- Go to the API Keys tab
- Click Create API Key
- Enter a name (e.g., “My App” or “CI/CD”)
- Copy the key immediately — it’s only shown once
Key format
Keys start withsk_ followed by 32 hex characters:
Authentication
Include your key in theAuthorization header:
Verify your key
The cheapest way to confirm a key works isGET /v1/sessions — it consumes no operations, returns immediately, and accepts API keys:
200 response with a JSON list of your sessions (possibly empty on a brand-new key) confirms the key is valid. A 401 with {"detail": "Authentication required..."} means the key is wrong, revoked, or the Authorization header didn’t reach the server.
Key limits
Security
- Keys are shown once at creation. Store them securely.
- Keys are stored as hashed values — we cannot recover a lost key.
- Revoke a key anytime from Settings > API Keys. Revocation is permanent.
- Never commit keys to source control. Use environment variables.
Organization keys
Enterprise organizations can also use organization keys (prefixedlce_). These work identically — same Authorization: Bearer header, same endpoints. Organization keys are provisioned for B2B customers.
Manage keys
Create, list, and revoke keys from Settings > API Keys in use.superdocs.app. Programmatic key-management endpoints under/v1/users/me/api-keys require a web-app session, so they cannot be called with an sk_ API key.
If you are an AI agent and need a key with no human in the loop, use the agent signup endpoint instead: one call to POST /v1/agents/signup returns a working sk_ key on the normal free tier (500 ops/month). Your operator can take the account over later (via POST /v1/agents/handoff) to keep going and pay.
