Authentication

Authenticate requests with a HollrAI API key
View as Markdown

Every request to the HollrAI API must include your API key in the hollr-api-key header.

$curl https://api.hollr.ai/v1/conversation/conversations \
> -H "hollr-api-key: YOUR_API_KEY"

Keep your API key on your server. Do not expose it in browser-side JavaScript, mobile apps, public repositories, or other client-side code.

Getting an API key

API keys are managed from the HollrAI platform at app.hollr.ai.

1

Open HollrAI

Sign in to app.hollr.ai.

2

Open API Keys

Open the API Keys section and create a key for the integration you are building.

3

Store it securely

Store the key in an environment variable or secrets manager.

$export HOLLR_API_KEY="your-key-here"

Sending the header

$curl https://api.hollr.ai/v1/conversation/conversations \
> -H "hollr-api-key: $HOLLR_API_KEY"

Authentication failures

StatusMeaning
401The API key is missing or not recognized.
403The API key is valid but is not authorized for the resource.

The standard error response looks like:

1{
2 "status": "error",
3 "error_code": "401",
4 "message": "Unauthorized"
5}

Protect your key

If you suspect a key has been exposed, rotate or revoke it from the HollrAI platform and replace it in your application.