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.
If your authentication fails, you’ll receive a 401 Unauthorized or 403 Forbidden response with an error message:
Copy
{ "meta": { "requestId": "req_abc123xyz789" }, "error": { "title": "Unauthorized", "detail": "The provided api key is invalid or has been revoked", "status": 401, "type": "https://unprice.dev/docs/errors/unauthorized" }}