Authentication
Send your API key in theX-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 onstatusCode 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:
message text is for humans and may change, so don’t match on it.