Bearer authentication
Send the key as a Bearer token in theAuthorization header:
Keep the key safe
For a browser or mobile application, call your own server. Your server can then call the Unprice API with the key. Rotate a key if you believe that it was exposed.Authentication errors
Missing, malformed, or inactive keys return HTTP401 with code UNAUTHORIZED.
A key-type mismatch returns HTTP 403 with code INSUFFICIENT_PERMISSIONS.
Other access restrictions can return HTTP 403 with code FORBIDDEN.
Each response includes a request ID. Keep this ID when you contact support.
Example HTTP 401 response:
- The request has an
Authorizationheader. - The token uses the correct project API key.
- The key is active and has permission for the requested resource.