Skip to main content
An agent is the AI voice assistant that makes or answers your calls. These endpoints let you read your agents and rename or re-describe them from your own systems.

Authentication

Send your API key in the X-API-KEY header on every request, to the base URL https://api-eg.olimi.ai. See API Authentication. You only ever see and change the agents that belong to the company your API key is issued to.

Agent fields

Every endpoint returns agents with these fields:

Call types

Voice object

Responses also carry the agent’s detailed configuration, such as its prompt, knowledge base and call behaviour settings. Those fields are managed in the Dashboard and may change without notice, so rely only on the fields listed above.

Errors

Always branch on statusCode first. Most errors also carry a machine-readable errorCode:
Validation errors (422) have a different body. message is a list of what went wrong, and there’s no errorCode:
The message text is for humans and may change, so don’t match on it.