Update Email Inbox
Beta/v1/messaging/email-inboxes/{id}Idempotent with Idempotency-Key header. Learn more
Edits an email inbox's from-name, status, agent configuration, and roster.
Every field except status is merged into the inbox's current settings: a field you omit — and an empty array you send — keeps the value it already has, so this endpoint can change a setting but cannot clear one back to unset. The inbox's address and domain are fixed at creation and cannot be changed here.
idstringEmail inbox ID.
include[]optional arrayenumValues:email_domainagent_configSub-objects to expand in the response. When omitted, sub-objects are returned as null.
statusstringenumValues:activedisabledWhether the inbox accepts mail.
active: inbound mail is threaded into a conversation.disabled: the inbox stays provisioned and keeps its history, but inbound mail is dropped without being threaded.
from_nameoptional stringDisplay name for the From header of outbound mail.
agent_config_idoptional stringThe agent to bind to this inbox to handle incoming mail.
agent_trigger_policyoptional stringenumValues:mentionkeywordalwaysHow the bound agent decides whether to run on incoming mail.
mention: runs only when the agent is @mentioned, matched against the trigger keywords below.keyword: runs when the message contains any of the trigger keywords.always: runs on every incoming message.
While no policy has been set, the agent runs on every incoming message, since email has no reliable @mention convention.
agent_trigger_keywordsoptional array of stringThe keywords that decide whether the agent runs on an incoming message.
Under the keyword policy a keyword matches anywhere in the message; under mention it only counts where it is prefixed with @.
group_idoptional stringThe messaging group (roster) whose members are seated on every conversation this inbox opens.
Must name a group in your own account. Changing it only affects conversations opened afterwards.
idstringEmail inbox ID.
objectstringenumValues:email_inboxResource type identifier.
statusstringenumValues:activedisabledWhether the inbox is currently accepting mail.
active: inbound mail is threaded into a conversation.disabled: the inbox stays provisioned and keeps its history, but inbound mail is dropped without being threaded.
The domain this inbox belongs to.
idstringEmail domain ID.
objectstringenumValues:email_domainResource type identifier.
domainstringThe fully-qualified domain name (e.g. support.acme.com).
statusstringenumValues:pendingverifiedfailedVerification status.
pending: registered and awaiting DKIM confirmation.verified: DKIM confirmed; the domain can send mail.failed: verification could not be completed.
Inboxes can only be created on a verified domain.
dkim_tokensarray of stringThe DKIM tokens that must be published in your DNS before the domain can be verified.
Publish each token as a CNAME record on the domain, then call the verify action to confirm them.
verified_atstring (date-time)nullableWhen the domain's DKIM verification was confirmed.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
addressstringThe full inbox address (e.g. support@acme.com).
forwarding_addressstringnullableA forwarding address on an OpenMRP-owned domain that also routes to this inbox.
Use this when your domain's mail is hosted elsewhere (e.g. Google Workspace, Microsoft 365) and you cannot point its MX records at OpenMRP: forward mail from address to this address instead, and it will still be threaded into a conversation.
from_namestringnullableThe display name used in the From header of outbound mail.
The agent that handles mail for this inbox.
The agent is seated on every conversation this inbox opens, so it can read the thread and draft or send replies.
idstringAgent definition ID.
objectstringenumValues:agent_definitionResource type identifier.
definition_typestringenumValues:systemcustomWhether the agent is provided by OpenMRP or created in this account.
system: provided by OpenMRP; cannot be edited or deleted.custom: created by a user in this account.
category_codestringCategory grouping for the agent (e.g. order_processing), used to organize agents in the UI.
trigger_typestringenumValues:scheduledmanualeventHow runs of this agent are initiated.
scheduled: runs on a cron schedule (seeconfig.trigger_config.cron_schedule).event: runs in response to platform events (seeconfig.trigger_config.event_filters).manual: runs only when explicitly invoked.chat: runs in response to a chat message; the run is linked to a conversation and posts its reply back into it.
namestringHuman-readable name of the agent.
slugstringURL-friendly identifier for the agent.
Unique within the account.
descriptionstringnullableDescription of what the agent does.
editabilitystringenumValues:editableread_onlyWhether this agent definition can be edited.
Always read_only for system definitions.
statusstringenumValues:activeinactiveWhether this agent is enabled for the current account.
Activation is per-account: a system agent shared across accounts can be active for one account and inactive for another. An inactive agent cannot be triggered.
Role defining the permissions the agent operates with.
The agent acts as its own actor, and everything it does is authorized against this role — it can never reach data or actions the role does not grant. An agent with no role cannot execute: its runs fail immediately.
null in this endpoint.configagent_definition_confignullableAgent-level configuration controlling LLM behavior and trigger settings.
null in this endpoint.Tools attached to this agent.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
agent_trigger_policystringnullableenumValues:mentionkeywordalwaysWhen the bound agent runs on incoming mail.
mention: only when the agent is @mentioned, matched against its trigger keywords.keyword: when the mail contains any of the configured trigger keywords.always: on every incoming message.
When no policy is set the agent runs on every incoming message, since email has no reliable @mention convention.
agent_trigger_keywordsarray of stringThe keywords that decide whether the agent runs on an incoming message.
Under the keyword policy a keyword matches anywhere in the message; under mention it only counts where it is prefixed with @.
group_idstringnullableThe messaging group (roster) whose members are added to every conversation this inbox opens.
Its members join each new email thread so the team can read, edit, and approve replies alongside the bound agent. Membership is captured when the thread opens, so later edits to the group only affect conversations opened after the change.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Email Inbox