---
title: "Create an inbox"
method: POST
path: "/v1/inboxes"
tags: ["Inboxes"]
---

# Create an inbox

`POST /v1/inboxes`

## Request

- Base URL: `https://api.send0.dev`
- URL: `https://api.send0.dev/v1/inboxes`
- Auth: HTTP bearer

Creates `name@<domain>` on the install's default mail domain (send0.email on send0.dev), or on `domain` if given. Omit `name` for a random address.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `name` string
  - `domain` string
  - `display_name` string, nullable
  - `send_policy` 'open' | 'reply_only' | 'approval'
  - `retention_days` integer: Days to keep message content (1 to 30, default 7). After that, bodies, extracted fields, attachments and the raw message are deleted and the message reads as `expired: true`; the rest of the message is deleted after 35 days.
  - `metadata` object
  - `expires_at` string, date-time

## Response `201`

Inbox

- Inbox
  - `object` 'inbox', required
  - `id` string, required
  - `address` string, required
  - `local_part` string, required
  - `domain` string, required
  - `display_name` string, nullable, required
  - `mode` 'live' | 'sandbox', required
  - `send_policy` 'open' | 'reply_only' | 'approval', required
  - `status` 'active' | 'suspended' | 'deleted', required
  - `retention_days` integer, required
  - `metadata` object, required
  - `expires_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `403`: Not allowed (scope, policy or account state)
- `404`: Not found, or not visible to this key
- `429`: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached

---

[API](https://skmtc.dev/send0/apis/send0-api.md) · [All operations](https://skmtc.dev/send0/apis/send0-api/llms.txt) · [OpenAPI document](https://skmtc.dev/send0/apis/send0-api/revisions/5b9775525cef?raw)
