---
title: "Register an inbound domain"
method: POST
path: "/api/v1/inbound"
tags: ["Inbound Email"]
---

# Register an inbound domain

`POST /api/v1/inbound`

## Request

- Base URL: `https://api.misar.io/mail`
- URL: `https://api.misar.io/mail/api/v1/inbound`
- Auth: HTTP bearer

Register a domain to receive inbound email. Returns MX record setup instructions. Maximum 25 domains.

## Request body

- object
  - `domain` string, required: Root domain e.g. example.com
  - `subdomain` string, required: Subdomain for receiving email e.g. 'inbound' → inbound.example.com
  - `webhook_url` string, uri, required: HTTPS URL to receive parsed email payloads

## Response `201`

Inbound domain registered

- object
  - `success` boolean
  - `data` InboundDomain
    - `id` string, uuid
    - `domain` string
    - `subdomain` string
    - `webhook_url` string, uri
    - `is_verified` boolean
    - `mx_verified` boolean
    - `status` 'pending' | 'active' | 'suspended'
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `instructions` object
    - `mx_record` string: MX record to add to your DNS
    - `note` string

## Other responses

- `400`: Validation error
- `401`: Invalid API key
- `403`: Insufficient scope — requires inbound, inbound:write, or admin
- `409`: Subdomain already in use
- `415`: Content-Type must be application/json
- `429`: Domain limit reached (maximum 25)

---

[API](https://skmtc.dev/misar/apis/misarmail-api.md) · [All operations](https://skmtc.dev/misar/apis/misarmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/misar/apis/misarmail-api/revisions/1141238bc092?raw)
