Skip to main content
The Hadiq.io API gives you programmatic access to chat sessions, search, connectors, agents, and document ingestion. All endpoints accept and return JSON unless noted otherwise.

Base URLs

API prefix

Every endpoint is served under the /api path prefix. For example, the chat session endpoint is:

Authentication

All requests must include an Authorization header with a Bearer token:
See Authentication for instructions on creating API keys.

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 returns 429 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.