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

# Accept Invitation

> Accept an invite link to join an organization.

The user's email (from JWT claims) is checked against the allowlist
if the organization is in restricted mode.



## OpenAPI

````yaml post /invitations/accept
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /invitations/accept:
    post:
      tags:
        - organizations
      summary: Accept Invitation
      description: |-
        Accept an invite link to join an organization.

        The user's email (from JWT claims) is checked against the allowlist
        if the organization is in restricted mode.
      operationId: accept_invitation_invitations_accept_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InviteAcceptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TokenRequest:
      properties:
        token:
          type: string
          title: Token
          description: Invite link token
      type: object
      required:
        - token
      title: TokenRequest
      description: Request model for invite token operations.
    InviteAcceptResponse:
      properties:
        organization_id:
          type: string
          title: Organization Id
          description: Organization ID
        organization_name:
          type: string
          title: Organization Name
          description: Organization name
        role:
          type: string
          title: Role
          description: Role granted
      type: object
      required:
        - organization_id
        - organization_name
        - role
      title: InviteAcceptResponse
      description: Response for POST /invitations/accept.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````