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

# Sammel Erstellen Postfaecher

> Erstellt Postfaches in bulk without returning passwords.

<script src="/locale-bridge.js" />


## OpenAPI

````yaml /openapi.de.json POST /v1/public/accounts/{account_id}/mailboxes/bulk
openapi: 3.1.0
info:
  title: Code API (Public)
  version: 1.0.0
servers:
  - url: https://api.hybridbox.io
security: []
paths:
  /v1/public/accounts/{account_id}/mailboxes/bulk:
    post:
      tags:
        - public-accounts
        - public-mailboxes
      summary: Sammel Erstellen Postfaecher
      description: Erstellt Postfaches in bulk without returning passwords.
      operationId: >-
        bulk_create_public_mailboxes_v1_public_accounts__account_id__mailboxes_bulk_post
      parameters:
        - in: path
          name: account_id
          required: true
          schema:
            format: uuid
            title: Account Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MailboxBulkCreateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailboxBulkCreateResponse'
          description: ''
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validierungsfehler
      security:
        - PublicBearerAuth: []
components:
  schemas:
    MailboxBulkCreateRequest:
      additionalProperties: false
      description: Anfragebody for bulk Postfach creation.
      properties:
        domain:
          description: Domain-UUID oder Domainname fuer die Mailboxen
          title: Domain
          type: string
        items:
          items:
            $ref: '#/components/schemas/MailboxBulkCreateItem'
          minItems: 1
          title: Artikel
          type: array
      required:
        - domain
        - items
      title: MailboxBulkCreateRequest
      type: object
    MailboxBulkCreateResponse:
      properties:
        created:
          items:
            $ref: '#/components/schemas/MailboxBulkCreatedItem'
          title: Erstellt
          type: array
        failed:
          items:
            $ref: '#/components/schemas/MailboxBulkFailedItem'
          title: Fehlgeschlagen
          type: array
      required:
        - created
        - failed
      title: MailboxBulkCreateResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    MailboxBulkCreateItem:
      additionalProperties: false
      description: Anfragebody item for bulk Postfach creation.
      properties:
        first_name:
          title: Vorname
          type: string
        last_name:
          title: Nachname
          type: string
        local_part:
          title: Lokaler Teil
          type: string
      required:
        - local_part
        - first_name
        - last_name
      title: MailboxBulkCreateItem
      type: object
    MailboxBulkCreatedItem:
      description: Successful bulk Postfach creation result.
      properties:
        index:
          title: Index
          type: integer
        mailbox:
          $ref: '#/components/schemas/MailboxDTO'
      required:
        - index
        - mailbox
      title: MailboxBulkCreatedItem
      type: object
    MailboxBulkFailedItem:
      description: Failed bulk Postfach creation result.
      properties:
        code:
          title: Code
          type: string
        index:
          title: Index
          type: integer
        message:
          title: Nachricht
          type: string
      required:
        - index
        - code
        - message
      title: MailboxBulkFailedItem
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Standort
          type: array
        msg:
          title: Nachricht
          type: string
        type:
          title: Fehler Typ
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    MailboxDTO:
      properties:
        aliases:
          description: Aliase für das Postfach
          items:
            $ref: '#/components/schemas/MailboxAliasDTO'
          title: Aliase
          type: array
        created_at:
          description: Zeitstempel für die Postfacherstellung
          title: Erstellt At
          type: string
        domain_id:
          description: Domäne UUID für das Postfach
          format: uuid
          title: Domain-ID
          type: string
        domain_name:
          description: Domänenname für das Postfach
          title: Domainname
          type: string
        first_name:
          description: Vorname des Postfachbenutzers
          title: Vorname
          type: string
        id:
          description: Postfach UUID
          format: uuid
          title: ID
          type: string
        last_name:
          description: Nachname des Postfachbenutzers
          title: Nachname
          type: string
        local_part:
          description: Lokaler Teil der Mailbox vor dem At-Zeichen
          title: Lokaler Teil
          type: string
        primary_email:
          description: E-Mail-Adresse des primären Postfachs
          title: primär E-Mail
          type: string
        quota:
          $ref: '#/components/schemas/MailboxQuotaDTO'
          description: Nutzung des Postfachkontingents
        status:
          description: Lebenszyklusstatus des Postfachs
          title: Status
          type: string
        updated_at:
          description: Zeitstempel der letzten Postfachaktualisierung
          title: Aktualisiert am
          type: string
        workspace_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Arbeitsbereich UUID für das Postfach
          title: Arbeitsbereichs-ID
        workspace_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Anzeigename des Arbeitsbereichs
          title: Arbeitsbereich Name
      required:
        - id
        - domain_id
        - primary_email
        - domain_name
        - local_part
        - first_name
        - last_name
        - status
        - quota
        - created_at
        - updated_at
      title: MailboxDTO
      type: object
    MailboxAliasDTO:
      properties:
        alias:
          description: Postfach-Alias-E-Mail-Adresse
          title: Alias
          type: string
        is_catch_all:
          default: false
          description: Ob dieser Alias ​​alle nicht übereinstimmenden lokalen Teile abfängt
          title: Ist Catch All
          type: boolean
      required:
        - alias
      title: MailboxAliasDTO
      type: object
    MailboxQuotaDTO:
      description: Kundenseitige Postfach quota DTO.
      properties:
        allowed:
          description: Zuschuss zur Aufbewahrung des Postfachs
          title: Erlaubt
          type: integer
        used:
          description: Postfachspeicher genutzt
          title: Gebraucht
          type: integer
      required:
        - used
        - allowed
      title: MailboxQuotaDTO
      type: object
  securitySchemes:
    PublicBearerAuth:
      bearerFormat: JWT or Hybridbox Service account token
      description: >-
        Public API bearer credential sent as `Authorization: Bearer <token>`.
        Use either an OAuth access token or a Hybridbox Service account token.
      scheme: bearer
      type: http

````