Update identity
update_identityChange mutable settings: name, daily send cap, voice, content retention, voicemail preferences, the text-message email copy, the taken-message email, blocked caller numbers, and the hosted phone agent (voice_mode hosted with a hosted_system_prompt lets Mailrun's AI carry calls; takes effect on the next call, and from that call the identity bills at the hosted per-minute rate, 22 cents versus 13 cents with your own agent, per second; any plan with phone may switch, a plan without phone is refused with channel_not_in_plan). Voicemail and its email notice are on by default and are the fallback when no voice.turn receiver answers, so normally leave them on. Email and phone bindings are immutable here (use the attach/detach and phone tools). email_agent changes the hosted email agent settings (as update_email_agent).
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>"
},
"name": "update_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| 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 clears it back to the default. Does not change the voicemail greeting. | |
| voice_mode | No | hosted: Mailrun's AI carries phone calls from hosted_system_prompt and bills at the hosted per-minute rate (22 cents versus 13 cents with your own agent, per second) from the next call. webhook: your voice.turn receiver answers each turn. | |
| email_agent | No | Hosted email agent settings, the same fields as update_email_agent; only the fields sent change. | |
| hosted_tier | No | quick: fastest replies. advanced: deeper reasoning for complex conversations. | |
| identity_id | Yes | Identity id from list_identities. | |
| 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 | null removes the per-identity cap. | |
| retain_content | No | ||
| blocked_callers | No | Caller numbers (E.164, e.g. +15125550123) whose inbound calls are refused before anything is charged. Replaces the whole list; null or [] clears it. Max 50. Caller ID can be spoofed, so this is a cost and abuse control, not authentication. | |
| hosted_greeting | No | Spoken first on inbound calls. Screened on save with hosted_system_prompt. | |
| sms_email_enabled | No | Email a copy of each text message received on the identity's number (off by default). | |
| voicemail_enabled | No | ||
| hosted_system_prompt | No | Instructions for the hosted phone agent. {name} and {number} are substituted. Screened on save with the stored or supplied hosted_greeting: high-risk content is refused hosted_content_rejected with the reason and nothing changes; borderline content is accepted and reviewed (hosted_screening in the result). | |
| message_email_enabled | No | Email the account owner when the hosted phone agent takes a message (on by default). The voice.message_taken webhook event is sent either way. | |
| sms_email_destination | No | Where the text-message copy goes: the account email, or the identity's own address (requires one). | |
| voicemail_email_enabled | No | ||
| outbound_voicemail_message | No | Spoken when an outbound call reaches voicemail. | |
| voicemail_email_destination | No | identity requires an email address on the identity. |