Base URLs
- Hadiq.io Cloud
- Self-hosted
API prefix
Every endpoint is served under the/api path prefix. For example, the chat session endpoint is:
Authentication
All requests must include anAuthorization header with a Bearer token:
Common headers
Rate limiting
Rate limits depend on your deployment. On Hadiq.io Cloud, limits are enforced per API key. When a limit is exceeded the server returns429 Too Many Requests. Hadiq.io also enforces token-based rate limits — if the LLM token budget for a user or group is exhausted, the API returns 429.
Self-hosted deployments inherit whatever limits you configure in your environment.
Versioning
The Hadiq.io API does not currently use a versioning prefix in the URL. Breaking changes are announced in the changelog.Quick-start example
The following example creates a chat session and sends a message, then reads back the response.Error responses
All errors use a standard JSON shape:Next steps
Authentication
Create an API key and learn how to use it in requests.
Chat
Send messages, manage sessions, and stream responses.
Search
Run semantic search across your connected knowledge base.
Document ingestion
Push documents directly into the index without a connector.