Unrefused

Authentication

API keys, scopes, limits and revocation.

API keys

Send the key as a bearer token on every request. Keys start with unr_live_. The full key is never stored; the gateway hashes it and compares hashes, so a database read cannot reveal a key.

config
Authorization: Bearer unr_live_7x5GLwvDTwcJUIue6Jl0CDicG5A8a2yX

What a key carries

SettingMeaningDefault
Policy profileThe profile applied to every request made with the key. Follows the latest version unless pinned.default
ScopesWhich endpoints the key may call: chat, completions, embeddings, models.all four
Requests per minuteToken bucket, refilled continuously.600
Concurrent requestsIn-flight limit. Streams hold a slot until they close.16
ExpiryOptional. Expired keys return 401.never

Revoking

Revoke from the API keys page. The gateway caches key lookups for 30 seconds, so a revoked key stops working within that window. Create one key per application or environment so revocation is surgical.

Errors

StatusCodeWhen
401invalid_api_keyMissing, malformed, unknown, revoked or expired key.
403insufficient_scopeThe key lacks the scope for this endpoint.

Keys in the browser

The Chat page keeps a key in your browser's local storage only. For your own front ends, keep keys server-side and proxy requests, as you would with any provider.

Spot an error or a gap? Tell us — and quote x-request-id if you have one.