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

# Create pod

> Create a new pod (an isolated sub-account for one of your end users or tenants). Pass your own `clientId` to map the pod to a record in your system and address it later without storing the OpenMail ID.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/pods
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/pods:
    post:
      summary: Create pod
      description: >-
        Create a new pod (an isolated sub-account for one of your end users or
        tenants). Pass your own `clientId` to map the pod to a record in your
        system and address it later without storing the OpenMail ID.
      operationId: createPod
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientId:
                  type: string
                  nullable: true
                  maxLength: 255
                  description: >-
                    Your own stable identifier for this pod (e.g. your
                    user/tenant ID). Must be unique within your account. Use it
                    in place of the pod ID on any pod or inbox endpoint.
                name:
                  type: string
                  nullable: true
                  maxLength: 255
                  description: Human-readable label shown in the console.
      responses:
        '201':
          description: Pod created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pod'
        '409':
          description: A pod with the same `clientId` already exists in your account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Pod:
      type: object
      properties:
        id:
          type: string
          description: OpenMail pod ID
        clientId:
          type: string
          nullable: true
          description: Your own identifier for the pod, if set.
        name:
          type: string
          nullable: true
          description: Human-readable label, if set.
        isDefault:
          type: boolean
          description: >-
            Whether this is the account's default pod. Every account has exactly
            one; it is created automatically and cannot be deleted.
        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

````