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

# Accept an invitation

> The invited person chooses a password; the link works once.



## OpenAPI

````yaml openapi/en/control.json POST /v1/auth/invitation
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:
    post:
      summary: Accept an invitation
      description: >-
        Sets the password of the invited person (12 characters or more) and
        spends the link. The person then

        signs in and sets up the authenticator app, like everyone.


        **Authentication.** No authentication.
      operationId: accept_invitation_v1_auth_invitation_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationAcceptRequest'
            example:
              token: Q2hvb3NlIGEgcGFzc3dvcmQgb25jZS4gTm90IGEgc2Vzc2lvbi4
              password: a long passphrase I can remember
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationAcceptOut'
              example:
                email: nina@acme.example
          description: The e-mail, for the sign-in that follows.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    InvitationAcceptRequest:
      additionalProperties: false
      properties:
        password:
          maxLength: 1024
          minLength: 12
          title: Password
          type: string
        token:
          maxLength: 128
          minLength: 20
          title: Token
          type: string
      required:
        - token
        - password
      title: InvitationAcceptRequest
      type: object
    InvitationAcceptOut:
      additionalProperties: false
      properties:
        email:
          description: The person's e-mail, for the sign-in that follows.
          title: Email
          type: string
      required:
        - email
      title: InvitationAcceptOut
      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

````