> ## 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.

# Einladung erstellen

> Einladung für Konto erstellen

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


## OpenAPI

````yaml /openapi.de.json POST /v1/public/accounts/{account_id}/auth/invitations
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}/auth/invitations:
    post:
      tags:
        - public-accounts
        - public-account-auth
      summary: Einladung für Konto erstellen
      description: Erstellt eine Einladung im Kontobereich.
      operationId: >-
        create_public_account_invitation_v1_public_accounts__account_id__auth_invitations_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/InviteRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InviteResponse'
                  - $ref: '#/components/schemas/MaterializedInvitationAccessResponse'
                title: >-
                  Response Create Public Account Invitation V1 Public Accounts 
                  Account Id  Auth Invitations Post
          description: ''
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validierungsfehler
      security:
        - PublicBearerAuth: []
components:
  schemas:
    InviteRequest:
      description: Anforderungsschema zum Erstellen einer neuen Benutzereinladung.
      properties:
        assignments:
          items:
            $ref: '#/components/schemas/InvitationAssignmentRequest'
          minItems: 1
          title: Zuweisungen
          type: array
        email:
          description: Ziel-E-Mail-Adresse
          title: E-Mail
          type: string
        locale:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional locale für transactional invitation email
          title: Gebietsschema
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Notiz
      required:
        - email
        - assignments
      title: InviteRequest
      type: object
    InviteResponse:
      properties:
        accepted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: akzeptiert um
        accepted_subject_id:
          anyOf:
            - type: string
            - type: 'null'
          title: akzeptiert Subjekt ID
        assignments:
          items:
            $ref: '#/components/schemas/InvitationAssignmentResponse'
          title: Zuweisungen
          type: array
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: erstellt um
        email:
          title: E-Mail
          type: string
        expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: läuft ab um
        id:
          format: uuid
          title: ID
          type: string
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Notiz
        permission_context:
          $ref: '#/components/schemas/PermissionInspectabilitySnapshot'
        status:
          title: Status
          type: string
      required:
        - id
        - email
        - status
        - assignments
        - permission_context
      title: InviteResponse
      type: object
    MaterializedInvitationAccessResponse:
      properties:
        accepted_subject_id:
          title: akzeptiert Subjekt ID
          type: string
        assignment_count:
          title: Zuweisung Anzahl
          type: integer
        email:
          title: E-Mail
          type: string
        grant_count:
          title: Gewährung Anzahl
          type: integer
        group_membership_count:
          title: Gruppe Membership Anzahl
          type: integer
        mode:
          default: materialized
          title: Modus
          type: string
        permission_context:
          $ref: '#/components/schemas/PermissionInspectabilitySnapshot'
        role_assignment_count:
          title: Anzahl der Rollenzuweisungen
          type: integer
        status:
          default: accepted
          title: Status
          type: string
      required:
        - email
        - accepted_subject_id
        - assignment_count
        - group_membership_count
        - grant_count
        - role_assignment_count
        - permission_context
      title: MaterializedInvitationAccessResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    InvitationAssignmentRequest:
      description: >-
        Schema für eine einzelne Berechtigungszuweisung innerhalb einer
        Einladung.
      properties:
        capability_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Fähigkeit Schlüssel
        grant_kind:
          anyOf:
            - $ref: '#/components/schemas/GrantKind'
            - type: 'null'
        group_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Gruppe ID
        resource_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Ressource ID
        resource_type:
          anyOf:
            - $ref: '#/components/schemas/ResourceType'
            - type: 'null'
        role_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Rollenschlüssel
      title: InvitationAssignmentRequest
      type: object
    InvitationAssignmentResponse:
      description: >-
        Schema für eine einzelne Berechtigungszuweisung innerhalb einer
        Einladungsantwort.
      properties:
        assignment_kind:
          title: Zuweisung Art
          type: string
        capability_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Fähigkeit Schlüssel
        grant_kind:
          anyOf:
            - type: string
            - type: 'null'
          title: Gewährung Art
        group_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Gruppe ID
        id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: ID
        position:
          title: Position
          type: integer
        resource_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Ressource ID
        resource_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Ressource Typ
        role_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Rollenschlüssel
      required:
        - assignment_kind
        - position
      title: InvitationAssignmentResponse
      type: object
    PermissionInspectabilitySnapshot:
      description: >-
        Gemeinsamer Prüfbarkeits-Snapshot für die Benutzer-, Gruppen- und
        Einladungsverwaltung.
      properties:
        assigned_bundle_keys:
          items:
            type: string
          title: Zugewiesene Bundle-Schlüssel
          type: array
        direct_capability_keys:
          items:
            type: string
          title: Direct Fähigkeit Keys
          type: array
        owner_assignments:
          items:
            $ref: '#/components/schemas/OwnerAssignmentSnapshot'
          title: Eigentümer Zuweisungen
          type: array
        resolved_capability_keys:
          items:
            type: string
          title: aufgelöst Fähigkeit Keys
          type: array
        status:
          default: active
          title: Status
          type: string
        subject_id:
          default: ''
          title: Subjekt ID
          type: string
        subject_type:
          default: unknown
          title: Subjekt Typ
          type: string
      title: PermissionInspectabilitySnapshot
      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
    GrantKind:
      description: Arten der Genehmigungserteilung.
      enum:
        - capability
        - account_owner
        - super_admin
      title: GrantKind
      type: string
    ResourceType:
      description: Authorization resource und scope types.
      enum:
        - client
        - account
        - workspace
        - domain
        - dns_record
        - mailbox
        - redirect
        - forwarding
        - credential
        - tenant
        - route
        - proxy
      title: ResourceType
      type: string
    OwnerAssignmentSnapshot:
      description: Schema, das eine Kontoinhaberbeziehung angibt.
      properties:
        account_id:
          format: uuid
          title: Konto-ID
          type: string
      required:
        - account_id
      title: OwnerAssignmentSnapshot
      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

````