Skip to content

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.

Create an API key in Account → Developers and send it as Authorization: Bearer hl_live_….

{
"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"
}
}
  • GET /v1/voices: List voices
  • POST /v1/quotes: Get a quote
  • POST /v1/generations: Start a generation
  • GET /v1/generations: List generations
  • GET /v1/generations/{id}: Get a generation
  • POST /v1/generations/{id}/cancel: Cancel a generation
  • GET /v1/projects: List projects
  • POST /v1/projects: Create a project
  • GET /v1/projects/{id}: Get a project
  • PATCH /v1/projects/{id}: Update a project
  • POST /v1/projects/{id}/archive: Archive a project
  • GET /v1/assets: List assets
  • POST /v1/assets: Import a file
  • GET /v1/assets/{id}: Get an asset
  • DELETE /v1/assets/{id}: Delete an asset
  • POST /v1/assets/{id}/transform: Transform an asset
  • POST /v1/uploads: Start an upload
  • GET /v1/uploads/{id}: Get an upload
  • POST /v1/uploads/{id}/complete: Complete an upload
  • GET /v1/account: Get the account
  • GET /v1/webhook_endpoints: List webhook endpoints
  • POST /v1/webhook_endpoints: Create a webhook endpoint
  • DELETE /v1/webhook_endpoints/{id}: Delete a webhook endpoint
  • GET /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.