> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moonemail.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Create inbox

> Create a random receiving address for this team. Name is a label, not an email local-part. Reuse the idempotency key on retries.

Required permission: `inboxes:write`.



## OpenAPI

````yaml /openapi.json post /inboxes
openapi: 3.1.0
info:
  title: Moonemail API
  version: 0.1.0
  description: >-
    Generated request, response and authorization contract. Covers authenticated
    product endpoints, not public discovery, dashboard assets or Stripe inbound
    webhooks. Go handlers enforce state-dependent and cross-field business
    validation.
servers:
  - url: https://api.moonemail.co
security: []
paths:
  /inboxes:
    post:
      tags:
        - Inboxes
      summary: Create inbox
      description: >-
        Create a random receiving address for this team. Name is a label, not an
        email local-part. Reuse the idempotency key on retries.


        Required permission: `inboxes:write`.
      operationId: create_inbox
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Optional in REST; mandatory for the MCP sending tool. Reuse the same
            key and payload for retries.
          schema:
            type: string
            minLength: 1
            maxLength: 256
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
              required:
                - name
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  address:
                    type: string
                  status:
                    type: string
                    enum:
                      - enabled
                      - disabled
                  created_at:
                    type: string
                  aliases:
                    type: array
                    items:
                      type: string
                required:
                  - id
                  - name
                  - address
                  - status
                  - created_at
                additionalProperties: true
        default:
          description: API error
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - name
                  - message
                properties:
                  statusCode:
                    type: integer
                  name:
                    type: string
                  message:
                    type: string
      security:
        - bearerKey: []
components:
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: Moonemail API key; x-required-scope applies.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.