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
string
required
Bearer token for authentication.Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...string
required
Must be
application/jsonBody Parameters
string
required
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
string
required
Your Magpipe phone number to use as caller ID. Must be a number provisioned in your account.Example:
+16045551234string
required
UUID of the AI agent to handle the call.Example:
c72ea2b8-1234-5678-9abc-def012345678object
Optional key-value pairs to attach to the call. Available in webhooks and call logs.Example:
string
URL to receive call status webhooks. Overrides account-level webhook settings.Example:
https://yourapp.com/webhooks/callsResponse
boolean
Whether the call was successfully initiated.
string
Unique identifier for the call. Use this to track call status.
string
Initial call status. One of:
initiated- Call is being placedqueued- Call is queued for dialing
string
The caller ID number used.
string
The destination phone number.
string
The agent handling the call.
string
ISO 8601 timestamp of when the call was created.