---
title: "Create Inbox"
method: POST
path: "/v0/inboxes"
tags: ["Inboxes"]
---

# Create Inbox

`POST /v0/inboxes`

**CLI:**
```bash
agentmail inboxes create --display-name "My Agent" --username myagent --domain agentmail.to
```

## Request body

- InboxesCreateInboxRequest
  - `username` string, nullable — Username of address. Randomly generated if not specified.
  - `domain` string, nullable — Domain of address. Must be a verified domain, or any subdomain of a verified domain that has subdomains enabled (e.g., `bot.example.com`). Defaults to `agentmail.to`.
  - `display_name` string — Display name: `Display Name <username@domain.com>`.
  - `client_id` string — Client ID of inbox.
  - `metadata` InboxesMetadata — Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and string values are each limited to 256 characters. When updating metadata, send a key with a null value to remove that key.

## Response `200`

- InboxesInbox
  - `pod_id` string, required — ID of pod.
  - `inbox_id` string, required — The ID of the inbox.
  - `email` string, required — Email address of the inbox.
  - `display_name` string — Display name: `Display Name <username@domain.com>`.
  - `client_id` string — Client ID of inbox.
  - `metadata` InboxesMetadata — Custom key-value pairs attached to the inbox. Up to 256 keys. Keys and string values are each limited to 256 characters. When updating metadata, send a key with a null value to remove that key.
  - `updated_at` string, date-time, required — Time at which inbox was last updated.
  - `created_at` string, date-time, required — Time at which inbox was created.

## Other responses

- `400`
- `422`

## Changes

- **2026-07-15** `394ddcdd9c29` — 7 info
  - added the new optional request property `metadata`
  - added the non-success response with the status `422`
  - added the optional property `code` to the response with the `400` status
  - added the optional property `docs` to the response with the `400` status
  - …3 more
- **2026-03-31** `27965096e618` — 1 info
  - added the required property `email` to the response with the `200` status
- **2026-03-28** `8a5b5e92ae2d` — 1 breaking
  - removed the required property `email` from the response with the `200` status
- **2026-03-19** `7fdcd6b4651f` — 1 info
  - added the required property `email` to the response with the `200` status

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/post.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
