Create Inbox
**CLI:**
```bash
agentmail inboxes create --display-name "My Agent" --username myagent --domain agentmail.to
```
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an optional object.
username
Username of address. Randomly generated if not specified.
domain
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
Display name: Display Name <username@domain.com>.
client_id
Client ID of inbox.
metadata
Custom metadata to attach to the inbox.
Response
This endpoint returns an object.
pod_id
ID of pod.
inbox_id
The ID of the inbox.
email
Email address of the inbox.
updated_at
Time at which inbox was last updated.
created_at
Time at which inbox was created.
display_name
Display name: Display Name <username@domain.com>.
client_id
Client ID of inbox.
metadata
Custom metadata attached to the inbox.
Errors
400
Validation Error
422
Unprocessable Error
