Calls
Create Phone Call
Initiate an outbound phone call with an AI agent
POST
Overview
Creates a new outbound phone call. The AI agent will call the specified phone number and handle the conversation based on its configuration.Calls are billed based on duration. See Pricing for details.
Request
Headers
Bearer token for authentication.Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Must be
application/jsonBody Parameters
The phone number to call in E.164 format.Example:
+14155551234Constraints:- Must start with
+followed by country code - 10-15 digits total
- Must be a valid, dialable phone number
Your Magpipe phone number to use as caller ID. Must be a number provisioned in your account.Example:
+16045551234UUID of the AI agent to handle the call.Example:
c72ea2b8-1234-5678-9abc-def012345678Optional key-value pairs to attach to the call. Available in webhooks and call logs.Example:
URL to receive call status webhooks. Overrides account-level webhook settings.Example:
https://yourapp.com/webhooks/callsResponse
Whether the call was successfully initiated.
Unique identifier for the call. Use this to track call status.
Initial call status. One of:
initiated- Call is being placedqueued- Call is queued for dialing
The caller ID number used.
The destination phone number.
The agent handling the call.
ISO 8601 timestamp of when the call was created.
Example Request
Example Response
Error Responses
Call Status Webhook
When the call status changes, a webhook is sent to your configured URL:Call Status Values
| Status | Description |
|---|---|
initiated | Call request received, dialing |
ringing | Recipient phone is ringing |
in-progress | Call is active |
completed | Call ended normally |
busy | Recipient was busy |
no-answer | No answer after timeout |
failed | Call failed to connect |
canceled | Call was canceled before connecting |