Zaira Auth

All requests require the x-api-key header for authentication (except /health).

API key

Include your API key in every request:

x-api-key: your-api-key

Contact the Zaira team to receive your API key.

User identity

After authentication, most endpoints require user identification. Use the user_uuid returned from /initiate:

x-user-uuid: <user-uuid>

Endpoint requirements

EndpointAPI keyUser identity
POST /initiateRequiredNot required
POST /askRequiredRequired
POST /ask/streamRequiredRequired
POST /check-executionRequiredRequired
GET /sessionsRequiredRequired
GET /infoRequiredNot required
/webhooksRequiredNot required
GET /healthNot requiredNot required

The /initiate endpoint returns a user_uuid that you must use for all subsequent requests.