Key format
Seyn keys are random tokens prefixed withsk_live_:
Authorization header on every request:
{ apiKey } to the constructor.
Creating a key
- Sign in at app.seynlabs.com.
- Open Settings â API Keys.
- Click Create, give it a label.
- Copy the full
sk_live_*token from the modal. This is the only time the full token is visible: Seyn only stores its SHA-256 hash plus the first 8 characters (the prefix) for display.
Org admins can manage keys
Anyone with theorg:admin role in your Seyn organisation can create and revoke keys for that organisation. org:member accounts can use the API but canât manage keys.
Rotation
Thereâs no âeditâ or ârenewâ operation: keys are immutable. To rotate:- Create a new key.
- Deploy your services with the new key.
- Once youâre confident every caller is on the new key, revoke the old one in the same dashboard.
403 KEY_REVOKED response.
Where to use a key
- Server-side only. API keys grant read access to your entire organisationâs extracted knowledge. Treat them like database credentials.
- Environment variables or your secret store (HashiCorp Vault, AWS Secrets Manager, 1Password, etc.). Never commit a key.
- Never in browsers or mobile apps. If you need browser-side queries, proxy through your own backend that reads the key from its environment.
Error codes
The
INVALID vs REVOKED distinction is deliberate. If you see INVALID_API_KEY, the bug is on your side: check what you pasted. If you see KEY_REVOKED, the bug is upstream: talk to your admin.
Rate limits
Default: 60 requests per minute per key. A 429 withcode: "RATE_LIMITED" is returned when you exceed it.
If your integration needs higher throughput (large backfills, real-time chat, BI workloads), email support@seynlabs.com with your use case and weâll raise the limit on specific keys.
The SDK does not retry on 429s; wrap your calls with your own retry-with-backoff if needed.