authentication_required
Authentication required. Send an API key or an OAuth access token in the Authorization: Bearer … header.
| HTTP status | 401 |
| Type | authentication_error |
| Code | authentication_required |
| Can retrying help? | No. The same request gets the same answer until you change it or fix the cause. |
| Charged? | No. This refusal is free. |
What to do
Section titled “What to do”Create an API key in Account → Developers and send it as Authorization: Bearer hl_live_….
Example
Section titled “Example”{ "error": { "type": "authentication_error", "code": "authentication_required", "message": "Send an API key or an OAuth access token in the `Authorization: Bearer …` header.", "param": null, "doc_url": "https://docs.halationlab.ai/errors/authentication-required/", "request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T" }}Returned by
Section titled “Returned by”GET /v1/voices: List voicesPOST /v1/quotes: Get a quotePOST /v1/generations: Start a generationGET /v1/generations: List generationsGET /v1/generations/{id}: Get a generationPOST /v1/generations/{id}/cancel: Cancel a generationGET /v1/projects: List projectsPOST /v1/projects: Create a projectGET /v1/projects/{id}: Get a projectPATCH /v1/projects/{id}: Update a projectPOST /v1/projects/{id}/archive: Archive a projectGET /v1/assets: List assetsPOST /v1/assets: Import a fileGET /v1/assets/{id}: Get an assetDELETE /v1/assets/{id}: Delete an assetPOST /v1/assets/{id}/transform: Transform an assetPOST /v1/uploads: Start an uploadGET /v1/uploads/{id}: Get an uploadPOST /v1/uploads/{id}/complete: Complete an uploadGET /v1/account: Get the accountGET /v1/webhook_endpoints: List webhook endpointsPOST /v1/webhook_endpoints: Create a webhook endpointDELETE /v1/webhook_endpoints/{id}: Delete a webhook endpointGET /v1/events: List events
See Errors for the error shape and how to handle errors in general, and Billing outcomes for what every outcome costs.