List Agents
Get the list of available agents. Agents are pre-configured AI assistants with custom instructions, tools, and knowledge sources. Use the agent's id with the agent-{id} model format in completions requests.
Responses
- application/json
- 401
Unauthorized - Invalid or missing API key
Request Example for get/chat/agents
curl https://ai.hatz.ai/v1/chat/agents \
--header 'X-API-Key: YOUR_SECRET_TOKEN'
{
"data": [
{
"id": "string",
"name": "string",
"description": null,
"instructions": "string",
"tools": null,
"sources": null
}
]
}