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

# Accept Invitation

> Accept a pending invitation and join the team.

Creates a team membership with the role specified in the invitation.



## OpenAPI

````yaml POST /v1/users/me/invitations/{invitation_id}/accept
openapi: 3.1.0
info:
  title: Data Raven API
  description: Cloud-to-cloud data transfer platform powered by RClone
  version: 0.5.0
servers: []
security: []
paths:
  /v1/users/me/invitations/{invitation_id}/accept:
    post:
      tags:
        - Invitations
      summary: Accept Invitation
      description: |-
        Accept a pending invitation and join the team.

        Creates a team membership with the role specified in the invitation.
      operationId: accept_invitation_v1_users_me_invitations__invitation_id__accept_post
      parameters:
        - name: invitation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Invitation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptInvitationResponse'
        '400':
          description: Invitation expired or not pending
        '403':
          description: Invitation is for different email
        '404':
          description: Invitation not found
        '409':
          description: Already a member of this team
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AcceptInvitationResponse:
      properties:
        team_id:
          type: string
          format: uuid
          title: Team Id
        team_name:
          type: string
          title: Team Name
        role:
          $ref: '#/components/schemas/UserRole'
        joined_at:
          type: string
          format: date-time
          title: Joined At
      type: object
      required:
        - team_id
        - team_name
        - role
        - joined_at
      title: AcceptInvitationResponse
      description: Response after accepting an invitation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserRole:
      type: string
      enum:
        - viewer
        - operator
        - admin
        - owner
      title: UserRole
      description: >-
        User roles within teams (hierarchical).


        - OWNER (4): Full control including team deletion

        - ADMIN (3): All operations except team deletion

        - OPERATOR (2): Day-to-day operations (run jobs, view logs), no
        setup/config

        - VIEWER (1): Read-only audit access
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````