Place call
place_callPlace an outbound call (202 placing; follow meta.poll). Destinations limited to +1 numbers. For an identity with voice_mode hosted, Mailrun's AI carries the conversation from the identity's hosted_system_prompt plus the optional purpose for this call, and leaves outbound_voicemail_message if a machine answers; opening_text is then optional and only used if the hosted path is unavailable. Otherwise opening_text is required and spoken on connect: without an active voice.turn webhook receiver it is the whole call (spoken, then hang up); with one, the callee's replies go to it. Requires a stable idempotency_key; never redial with a new key on an uncertain outcome.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identity_id": "<identity_id>",
"idempotency_key": "<idempotency_key>",
"to": "<to>"
},
"name": "place_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | E.164, e.g. +14155550100. | |
| purpose | No | Hosted identities: what this call is about, appended to the hosted prompt for this call only. | |
| greeting | No | Hosted identities: overrides the default outbound greeting for this call. Keep it generic; no caller data. | |
| identity_id | Yes | Identity id from list_identities. | |
| opening_text | No | Spoken on connect on the webhook path; capped by the voice text limit. Optional for hosted identities. | |
| idempotency_key | Yes | Stable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict. |