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

# My Invitations

> Get all pending invitations for the current user.

Returns invitations matching the user's email that are:
- Status: pending
- Not expired

Includes team name and inviter details for display.



## OpenAPI

````yaml GET /v1/users/me/invitations
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:
    get:
      tags:
        - Invitations
      summary: Get My Pending Invitations
      description: |-
        Get all pending invitations for the current user.

        Returns invitations matching the user's email that are:
        - Status: pending
        - Not expired

        Includes team name and inviter details for display.
      operationId: get_my_pending_invitations_v1_users_me_invitations_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_PendingInvitationForUser_
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_PendingInvitationForUser_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/PendingInvitationForUser'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
      type: object
      required:
        - data
        - pagination
      title: PaginatedResponse[PendingInvitationForUser]
    PendingInvitationForUser:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        team_id:
          type: string
          format: uuid
          title: Team Id
        team_name:
          type: string
          title: Team Name
        role:
          $ref: '#/components/schemas/UserRole'
        invited_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Invited By Email
        created_at:
          type: string
          format: date-time
          title: Created At
        expires_at:
          type: string
          format: date-time
          title: Expires At
      type: object
      required:
        - id
        - team_id
        - team_name
        - role
        - created_at
        - expires_at
      title: PendingInvitationForUser
      description: |-
        Schema for pending invitation shown to the invited user.

        Includes team details so user can see which team they're invited to.
    PaginationResponse:
      properties:
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - limit
        - total
        - total_pages
      title: PaginationResponse
      description: Pagination metadata in responses.
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````