Email Inboxes
email_inbox objectA routable email inbox on a verified domain.
Mail sent to this address is threaded into a conversation: the first message of a thread opens a new customer case, and later messages in the same thread join the conversation it already created. Replies to the customer go back out from this address, and the bound agent — if there is one — can draft or send them.
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.