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

# Open an invitation

> Whose invitation it is and until when it works, before the person chooses a password.



## OpenAPI

````yaml openapi/en/control.json POST /v1/auth/invitation/preview
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/auth/invitation/preview:
    post:
      summary: Open an invitation
      description: >-
        Whose invitation this is, before the person chooses a password. 401
        alike for an unknown, used or

        expired link.


        **Authentication.** No authentication.
      operationId: preview_invitation_v1_auth_invitation_preview_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationTokenRequest'
            example:
              token: Q2hvb3NlIGEgcGFzc3dvcmQgb25jZS4gTm90IGEgc2Vzc2lvbi4
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationPreviewOut'
              example:
                email: nina@acme.example
                tenant_name: Acme
                expires_at: '2026-10-01T12:00:00Z'
          description: Whose invitation it is and until when it works.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    InvitationTokenRequest:
      additionalProperties: false
      properties:
        token:
          maxLength: 128
          minLength: 20
          title: Token
          type: string
      required:
        - token
      title: InvitationTokenRequest
      type: object
    InvitationPreviewOut:
      additionalProperties: false
      properties:
        email:
          title: Email
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        tenant_name:
          title: Tenant Name
          type: string
      required:
        - email
        - tenant_name
        - expires_at
      title: InvitationPreviewOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object

````