Update an agent
Requires scope: manage. Changes an agent's status, recipient lists, send limits, or whether its new mail is read for intent. A pause by our abuse-prevention system or for the agent's own bounce or complaint rate cannot be lifted here (403 agent_suspended), and pausing such an agent again keeps that reason. Archiving cannot be undone, so an archived agent's status cannot change (409 agent_archived), and a status change that meets an agent archived or paused meanwhile answers 409 too. A key tied to the agent, or an app connected by sign-in, cannot change allowlist_domains, blocklist_domains, daily_send_limit or hourly_send_limit (403): they hold the agent to what the workspace allows, so only a key that is not tied to an agent changes them. A test key cannot change an agent that has a live key tied to it, live mail (sent, scheduled or received) or a draft a live key made (403 live_mode_required).
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/agents/{id}
- Auth: HTTP bearer
Path parameters
Agent id or name.
Request body
Response
The updated agent.
Changes
No recorded changes to this operation across all 1 revision of this API.