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

# Create Inbox

`POST /v0/inboxes`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/inboxes`
- Auth: HTTP bearer

**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 verified domain. Defaults to `agentmail.to`.
  - `display_name` string: Display name: `Display Name <username@domain.com>`.
  - `client_id` string: Client ID of inbox.

## 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.
  - `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`

---

[API](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
