Skip to main content
POST
/
api
/
v1
/
call
/
dial
Start a Single Call
curl --request POST \
  --url https://sa.dialgen.ai/api/v1/call/dial \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+1234567890",
  "agentConfigId": "agent_123",
  "userId": "user_789",
  "contactId": "contact_101",
  "callerDetails": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "company": "Example Inc.",
    "metadata": {
      "customField": "value"
    }
  },
  "statusCallBackUrl": "https://api.your-crm.com/webhook/dialgen/call-complete"
}
'
{
  "message": "Call initiated successfully",
  "callId": "call_clxabc123...",
  "contactId": "contact_clx789ghi...",
  "status": "ONGOING"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain your API key from the Dialgen API Keys dashboard at https://sa.dialgen.ai/api-keys

Body

application/json
to
string
required

The E.164 formatted phone number to dial

Example:

"+1234567890"

agentConfigId
string
required

The ID of the agent to use

userId
string
required

The ID of the user owning the agent

contactId
string

Provide if the contact already exists

callerDetails
object

If contactId is not provided, this object is used to create/update the contact

statusCallBackUrl
string<uri>

The URL to send the call-status callback to

Response

Call initiated successfully

message
string
callId
string

The call identifier to track status

contactId
string

The contact identifier

status
enum<string>
Available options:
ONGOING,
SCHEDULED,
COMPLETED,
MISSED,
FAILED