API Documentation
Authentication
Securely authenticating with the Unprice API
Almost all Unprice API endpoints require authentication using an Api key. Api keys provide access to your Unprice resources.
Bearer Authentication
Authentication is performed using HTTP Bearer authentication in the Authorization
header:
Example request:
Security Best Practices
Never expose your api key in client-side code or include it in public repositories. For frontend applications, always use a backend server to proxy requests to the Unprice API.
Authentication Errors
If your authentication fails, you’ll receive a 401 Unauthorized or 403 Forbidden response with an error message:
Common authentication issues include:
- Missing the Authorization header
- Invalid key format
- Revoked or expired api key