> ## 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: []
tags:
  - name: pods
    description: Isolated sub-accounts for your end users or tenants
  - name: inboxes
    description: Email inboxes and their webhook configuration
  - name: messages
    description: Sending and listing messages
  - name: threads
    description: Conversation threads and read status
  - name: attachments
    description: Downloading and extracting text from attachments
paths:
  /v1/pods:
    post:
      tags:
        - pods
      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:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                clientId:
                  type: string
                  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.
                  nullable: true
                name:
                  type: string
                  maxLength: 255
                  description: Human-readable label shown in the console.
                  nullable: true
      responses:
        '201':
          description: Pod created
          content:
            application/json:
              schema:
                description: Pod created
                allOf:
                  - $ref: '#/components/schemas/Pod'
        '409':
          description: A pod with the same `clientId` already exists in your account
          content:
            application/json:
              schema:
                description: A pod with the same `clientId` already exists in your account
                allOf:
                  - $ref: '#/components/schemas/Error'
components:
  schemas:
    Pod:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: OpenMail pod ID
        clientId:
          type: string
          description: Your own identifier for the pod, if set.
          nullable: true
        name:
          type: string
          description: Human-readable label, if set.
          nullable: true
        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
      additionalProperties: true
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````