Skip to main content
Send your key in the Authorization header:
The workspace is taken from the key, never from the request body. One key works on every route: the models, chat completions, traces, scores and projects.

Managing keys

Create and revoke keys on the API keys page of the dashboard. Feyn stores only a hash of each key, so a key is shown once, when you create it. If you lose it, create a new one and revoke the old one. New keys look like fn_ followed by 48 letters and digits. Keys issued before that format (sk_...) keep working. A new key works within seconds. Revoking a key can take up to a minute to reach every route (up to 30 minutes for older sk_ keys).

Keep keys server-side

A key can spend your workspace’s credits. Call the API from your backend, not from a browser or mobile app, and keep the key in an environment variable or secret store rather than in source control.

Failures

See errors for the response body.