Developer documentation

Build phone agents on zlicx.

Set up an agent, connect it to a phone line or your website, and run it from your own code.

Create an agent

curl
curl --request POST 'https://api.in.zlicx.ai/api/v1/agents' \
  --header 'x-api-key: YOUR_ZLICX_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Support Agent",
    "isActive": true,
    "templateId": "support"
  }'

Inside a call

Five stages, repeated for each reply.

How a call runs
  1. 01

    Hear

    Streams caller audio to speech-to-text and detects the end of the turn.

  2. 02

    Decide

    Sends the turn to your language model, with your instructions.

  3. 03

    Act

    Calls your tools, MCP servers or knowledge base when needed.

  4. 04

    Speak

    Plays the reply sentence by sentence, and stops if interrupted.

  5. 05

    Record

    Saves the transcript and analysis, then sends your webhook.

API basics

One base URL, one key.

Base URL
https://api.in.zlicx.ai/api/v1
Region
The API is hosted in our India region
Auth
Organisation API key in the x-api-key header
Permissions
Each key carries its own permissions, and each route checks them
response
{
  "success": true,
  "message": "Agents fetched successfully",
  "data": []
}
See every route