Create identity
create_identityCreate an identity. Bare identities need only a name (free, active immediately). Provide email_local_part, email_domain and domain_mode together to provision a mailbox on a domain you have added (201 with status provisioning; follow meta.poll). dedicated_subdomain is not available yet. Voicemail and its email notice start on.
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": {
"idempotency_key": "<idempotency_key>",
"name": "<name>"
},
"name": "create_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| voice | No | Voice for calls. Relay conversations (hosted agent, or a voice.turn receiver) use it, or Google.en-US-Chirp3-HD-Kore when null. Calls without the relay and short notices use a Polly or Google pick, otherwise Polly.Joanna-Neural. Null keeps the default. Does not change the voicemail greeting. | |
| voice_mode | No | hosted: Mailrun's AI carries phone calls from hosted_system_prompt. webhook (default): your voice.turn receiver answers each turn. Any plan with phone may choose hosted; hosted calls bill at the hosted per-minute rate (22 cents versus 13 cents with your own agent, per second) from the next call. Refused with channel_not_in_plan only when the plan has no phone. | |
| domain_mode | No | root is supported; dedicated_subdomain answers feature_not_available. | |
| email_agent | No | Hosted email agent settings (as update_email_agent). A mode other than off needs the email fields too. | |
| hosted_tier | No | quick (default): fastest replies. advanced: deeper reasoning for complex conversations. | |
| email_domain | No | A domain from list_domains. | |
| ai_disclosure | No | Say the call is answered by an AI assistant on inbound hosted calls (outbound calls always say the assistant is an AI). | |
| daily_send_cap | No | Per-identity daily send brake; must not exceed the plan cap. | |
| retain_content | No | Retain email subjects/bodies, call turns and SMS bodies for 30 days (default false). SMS bodies remain readable for 26 hours after Mailrun receives the text even when false. | |
| hosted_greeting | No | Spoken first on inbound calls. Default "Hi, this is {name}. How can I help?" Screened on save with hosted_system_prompt. | |
| 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. | |
| email_local_part | No | Local part (letters, digits, . _ -; a new "+" address is refused because the mail server treats it as sub-addressing). Required together with email_domain and domain_mode. | |
| hosted_system_prompt | No | Instructions for the hosted phone agent. {name} and {number} are substituted. Screened on save with hosted_greeting for scam, impersonation (banks, government, utilities), collections abuse and deception: high-risk content is refused hosted_content_rejected with the reason; borderline content is accepted and reviewed (hosted_screening in the result). | |
| outbound_voicemail_message | No | Spoken when an outbound call reaches voicemail. Default "Hi, this is {name}. Please call us back at {number}." |