Zeeg’s AI Agent can make outbound phone calls on your behalf. Use the API to trigger calls immediately or schedule them for a specific time. This guide walks you through both scenarios.Documentation Index
Fetch the complete documentation index at: https://developer.zeeg.me/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following in place:- An AI agent created, published, and enabled in your Zeeg dashboard
- The agent’s UUID (found in the agent settings)
- An API token with the
outbound-calls:writescope
Triggering an Immediate Call
Send aPOST request to start a call right away. The AI agent will dial the specified phone number and use the provided context to drive the conversation.
Endpoint
| Field | Type | Description |
|---|---|---|
phoneNumber | string | Phone number in E.164 format (e.g., +4915112345678) |
email | string | Contact’s email address |
fullName | string | Contact’s full name |
| Field | Type | Description |
|---|---|---|
additionalData | string | Extra context for the AI agent to use during the call |
scheduledTime | string | Schedule the call for later (see Scheduling a Future Call) |
Phone numbers must be in E.164 format — a
+ followed by the country code and subscriber number with no spaces or dashes. For example: +4915112345678 (Germany) or +14155551234 (US).Scheduling a Future Call
To schedule a call for a later time, include thescheduledTime field in the same request. The value must be a future datetime in YYYY-MM-DD HH:mm:ss format.
Response
A successful request returns the created call object with a201 status code.
| Status | Description |
|---|---|
pending | Call is queued or scheduled |
completed | Call finished successfully |
failed | Call could not be completed |
Error Handling
| Status | Error | Description |
|---|---|---|
400 | Agent is not active | The agent must be published and enabled in the dashboard |
403 | Missing scope | Your API token does not have the outbound-calls:write scope |
404 | Agent not found | No agent exists with the provided UUID |
422 | Invalid phone number format | The phone number is not in valid E.164 format |
422 | Scheduled time in the past | scheduledTime must be a future datetime |
Integration Example
You can combine this API with workflow automation tools to trigger calls based on external events. For a step-by-step walkthrough using n8n, see the guide:Build a Workflow with n8n and Zeeg
Automate outbound calls by connecting Zeeg’s AI Agent API to n8n workflows.