> ## Documentation Index
> Fetch the complete documentation index at: https://openmail-docs-cc-replies.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create inbox

> Create a new email inbox. Optionally set a sender display name.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/inboxes
openapi: 3.0.3
info:
  title: OpenMail API
  description: >-
    Email infrastructure API for AI agents. Create inboxes, send and receive
    email, and get real-time notifications via webhooks.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.openmail.sh
security:
  - bearerAuth: []
paths:
  /v1/inboxes:
    post:
      summary: Create inbox
      description: Create a new email inbox. Optionally set a sender display name.
      operationId: createInbox
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mailboxName:
                  type: string
                  minLength: 3
                  maxLength: 30
                  description: 'Inbox local part (default: random)'
                displayName:
                  type: string
                  maxLength: 200
                  description: Sender display name shown in the From header
                domain:
                  type: string
                  description: >-
                    Domain for the inbox address. Defaults to your account
                    domain (e.g. `openmail.sh`). Pass a verified custom domain
                    you own to create the inbox on it (e.g.
                    `agent-mail.example.com`). The domain must already be added
                    and verified for your account; the account default never
                    switches automatically.
      responses:
        '201':
          description: Inbox created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Inbox'
        '400':
          description: >-
            Invalid mailbox name, or `domain` is not a verified custom domain
            belonging to your account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Address already in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Plan inbox limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (100 inbox creations/day)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Inbox:
      type: object
      properties:
        id:
          type: string
          description: OpenMail inbox ID
        address:
          type: string
          format: email
          description: Full email address
        displayName:
          type: string
          description: Sender display name
          nullable: true
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````