> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mermail.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify email domain

> **Plans:** `Developer` · `Enterprise`

Asks Resend to re-check DNS and returns the updated domain object. `verified_at` is set when `status` becomes `verified`. Requires workspace **admin**. **Developer or Enterprise** required.

**Note:** This path is metered as **provision** (10 credits) because all `POST …/email-domains…` routes share that credit class.

**API credits:** 10 (provision).



## OpenAPI

````yaml /openapi/openapi.json post /api/v1/workspaces/{workspaceId}/email-domains/{domainId}/verify
openapi: 3.1.0
info:
  title: Mermail API
  version: 1.0.0
  description: >
    Programmatic Mermail API for scripts, agents, and integrations.


    ## Authentication


    Authorize with an API key from **Settings → API Keys**:


    ```

    x-api-key: sk-proj-…

    ```


    ## Plans


    Each endpoint page shows plan badges (**Public**, **All plans**, or
    **Developer+**). Free can call the core catalog; Developer-gated paths need
    Developer or Enterprise.


    ## Try it


    Every endpoint page includes an interactive playground. Click **Try it**,
    paste your API key into the `x-api-key` field, fill path/query/body fields
    (prefilled from examples), and send a live request to
    `https://console.mermail.app`. You can also copy the generated cURL /
    JavaScript / Python snippet.


    ## Credits


    | Class | Cost |

    | --- | ---: |

    | read | 1 |

    | write | 2 |

    | email_send | 5 |

    | provision | 10 |

    | ai_light | 15 |

    | ai_heavy | 25 |
  contact:
    name: Mermail
    email: contact@mermail.app
    url: https://mermail.app
servers:
  - url: https://console.mermail.app
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Public
    description: No authentication
  - name: Usage
    description: Credits and email quotas
  - name: Workspaces
    description: Workspaces, members, storage
  - name: Domains
    description: Custom email domains (Developer+)
  - name: Mailboxes
    description: Agent inboxes
  - name: Emails
    description: Send, list, search, folders
  - name: AI agent
    description: Mailbox agent chat
  - name: Task triage
    description: Task triagers (all plans)
  - name: RAG
    description: Knowledge documents and recall
  - name: Integrations
    description: Composio, Telegram, push
  - name: Affiliate
    description: Affiliate program
paths:
  /api/v1/workspaces/{workspaceId}/email-domains/{domainId}/verify:
    post:
      tags:
        - Domains
      summary: Verify email domain
      description: >-
        **Plans:** `Developer` · `Enterprise`


        Asks Resend to re-check DNS and returns the updated domain object.
        `verified_at` is set when `status` becomes `verified`. Requires
        workspace **admin**. **Developer or Enterprise** required.


        **Note:** This path is metered as **provision** (10 credits) because all
        `POST …/email-domains…` routes share that credit class.


        **API credits:** 10 (provision).
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: Workspace id
          schema:
            type: string
          example: ws_01abc
        - name: domainId
          in: path
          required: true
          description: Email domain id
          schema:
            type: string
          example: ed_01xyz
      responses:
        '200':
          description: Domain verification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomain'
              example:
                id: ed_01xyz
                workspace_id: ws_01abc
                domain: mail.acme.com
                provider: resend
                status: verified
                provider_domain_id: d_01
                region: us-east-1
                dns_records:
                  - type: TXT
                    name: resend._domainkey.mail.acme.com
                    value: p=MIGf…
                  - type: MX
                    name: mail.acme.com
                    value: feedback-smtp.us-east-1.amazonses.com
                last_error: null
                verified_at: '2026-07-15T11:00:00.000Z'
                created_at: '2026-07-15T10:00:00.000Z'
                updated_at: '2026-07-15T11:00:00.000Z'
        '401':
          description: Missing, invalid, expired, or revoked API key / token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '402':
          description: API credits exhausted for this workspace period
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Invalid request
        '403':
          description: Forbidden — plan gate, wrong workspace, or missing role
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Forbidden
        '404':
          description: Email domain not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Email domain not found
        '409':
          description: Missing provider domain id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Email domain is missing a Resend domain id
        '429':
          description: Rate limit exceeded (workspace RPM or email send limits)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Too many requests
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds until the rate limit window resets
      security:
        - apiKeyAuth: []
components:
  schemas:
    EmailDomain:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        domain:
          type: string
        provider:
          type: string
          example: resend
        status:
          type: string
          description: >-
            Provider/local status such as `pending`, `verified`, `deleting`,
            `deleted`
        provider_domain_id:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        dns_records:
          type: array
          items:
            type: object
            additionalProperties: true
          nullable: true
        last_error:
          type: string
          nullable: true
        verified_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Unauthorized
        code:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key (`sk-proj-…`) from Settings → API Keys. Required for sold API
        calls outside the Mermail console.

````