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

# New invitation

> A new link to choose a password; the earlier ones stop working.



## OpenAPI

````yaml openapi/en/control.json POST /v1/users/{user_id}/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/users/{user_id}/invitation:
    post:
      summary: New invitation
      description: >-
        A new single-use link for the person to choose a password: for one who
        never used the first link, or

        who forgot the password. Earlier links stop working. Shown once.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: reissue_invitation_v1_users__user_id__invitation_post
      parameters:
        - in: path
          name: user_id
          required: true
          schema:
            format: uuid
            title: User Id
            type: string
          example: 0192f0a0-4e5f-7061-9c72-8d9e0f1a2b36
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationOut'
              example:
                token: Q2hvb3NlIGEgcGFzc3dvcmQgb25jZS4gTm90IGEgc2Vzc2lvbi4
                expires_at: '2026-10-01T12:00:00Z'
          description: The new link, shown once.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    InvitationOut:
      additionalProperties: false
      properties:
        expires_at:
          format: date-time
          title: Expires At
          type: string
        token:
          description: >-
            Shown once. The Console turns it into the link
            `<console>/console/convite#<token>`, which works once and until
            `expires_at`. Niadra keeps only a keyed hash of it.
          title: Token
          type: string
      required:
        - token
        - expires_at
      title: InvitationOut
      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
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````