# AgentMail Update Domain

> AgentMail Update Domain is a free API for AI agents from AgentMail at mpp.api.agentmail.to, Free, status unknown (last checked 2026-10-12).

Updates configuration settings for a registered email domain within an AgentMail pod, such as enabling or disabling bounce and complaint feedback notifications.

## Facts

- Endpoint: PATCH https://mpp.api.agentmail.to/v0/pods/:pod_id/domains/:domain_id?utm_source=zero.xyz
- Price: Free
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: AgentMail
- Docs: https://docs.agentmail.to
- Website: https://agentmail.to
- Tags: email, inboxes, domains, drafts, threads, webhooks, messaging, ai, social
- Canonical page: https://www.zero.xyz/c/agentmail-domain-id-0bada1f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DYpiLVQuXq17-b9W108tD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmail-domain-id-0bada1f8 -d '<json body>'
```

Example prompt: Enable bounce and complaint feedback notifications for the domain 'acme.ai' in my AgentMail pod so that delivery issues get reported to my inboxes.

## When to prefer this

Use this endpoint when you need to change configuration options on an already-registered domain within an AgentMail pod — specifically to enable or disable bounce and complaint feedback notifications. It is not for registering new domains or verifying DNS records; those are handled by other endpoints.

## Known failure modes

- 404 Not Found if pod_id or domain_id does not exist
- 401 Unauthorized if Bearer token is missing or invalid
- 400 Bad Request if feedback_enabled is not a boolean
- 403 Forbidden if the caller does not have access to the specified pod or domain
- 422 Unprocessable Entity if the request body fails schema validation

## How this service works

Update Domain

## Output

Returns the updated Domain object including domain_id, pod_id, client_id, current verification status (e.g. VERIFIED), the feedback_enabled flag reflecting the new setting, a list of DNS verification records (TXT/CNAME/MX) with their statuses (MISSING/INVALID/VALID), and created_at/updated_at timestamps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "title": "UpdateDomainRequest",
 "properties": {
  "feedback_enabled": {
   "type": "boolean",
   "title": "FeedbackEnabled",
   "description": "Bounce and complaint notifications are sent to your inboxes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "Domain",
 "required": [
  "domain_id",
  "status",
  "feedback_enabled",
  "records",
  "updated_at",
  "created_at"
 ],
 "properties": {
  "pod_id": {
   "type": "string",
   "title": "PodId",
   "description": "ID of pod."
  },
  "status": {
   "enum": [
    "NOT_STARTED",
    "PENDING",
    "INVALID",
    "FAILED",
    "VERIFYING",
    "VERIFIED"
   ],
   "type": "string",
   "title": "VerificationStatus"
  },
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "VerificationRecord",
    "required": [
     "type",
     "name",
     "value",
     "status"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "The name or host of the record."
     },
     "type": {
      "enum": [
       "TXT",
       "CNAME",
       "MX"
      ],
      "type": "string",
      "title": "RecordType"
     },
     "value": {
      "type": "string",
      "description": "The value of the record."
     },
     "status": {
      "enum": [
       "MISSING",
       "INVALID",
       "VALID"
      ],
      "type": "string",
      "title": "RecordStatus"
     },
     "priority": {
      "type": "integer",
      "description": "The priority of the MX record."
     }
    }
   },
   "description": "A list of DNS records required to verify the domain."
  },
  "client_id": {
   "type": "string",
   "title": "ClientId",
   "description": "Client ID of domain."
  },
  "domain_id": {
   "type": "string",
   "title": "DomainId",
   "description": "The name of the domain. (e.g., \" your-domain.com\")"
  },
  "created_at": {
   "type": "string",
   "format": "date-time",
   "description": "Time at which the domain was created."
  },
  "updated_at": {
   "type": "string",
   "format": "date-time",
   "description": "Time at which the domain was last updated."
  },
  "feedback_enabled": {
   "type": "boolean",
   "title": "FeedbackEnabled",
   "description": "Bounce and complaint notifications are sent to your inboxes."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-domain-id-0bada1f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mpp.api.agentmail.to](https://www.zero.xyz/host/mpp.api.agentmail.to/llms.txt)
