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

# List Pending Invites

> List all pending workspace invitations.

## Authentication & Scope

Requires the `workspace-users-read` ability.

## Request

```http theme={null}
GET /workspaces/1/invites HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
```

### Path Parameters

| Parameter     | Type    | Required | Description      |
| ------------- | ------- | -------- | ---------------- |
| `workspaceId` | integer | Yes      | The workspace ID |

## Response

`200 OK` – An array of pending invitations.

```json theme={null}
[
  {
    "id": 1,
    "email": "pending@example.com",
    "role": "user",
    "status": "pending",
    "created_at": "2024-01-15T10:30:00Z"
  }
]
```

### Status Values

| Status    | Description                          |
| --------- | ------------------------------------ |
| `pending` | Invitation sent, awaiting acceptance |
| `expired` | Invitation has expired               |


## OpenAPI

````yaml get /workspaces/{workspaceId}/invites
openapi: 3.0.1
info:
  title: Raydocs API
  description: REST API for document extraction with AI-powered data parsing
  version: 1.0.0
servers:
  - url: https://api.raydocs.com
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Create and manage workspaces.
  - name: Workspace Users
    description: Manage users within a workspace.
  - name: Extraction Templates
    description: Define extraction schemas and settings.
  - name: Extraction Sessions
    description: Manage extraction jobs and documents.
  - name: Batch Operations
    description: Bulk operations on sessions.
  - name: Documents
    description: Upload and manage source documents.
  - name: Workflows
    description: Discover workflow runs and read their public outputs.
  - name: Results
    description: Access extraction results.
paths:
  /workspaces/{workspaceId}/invites:
    get:
      tags:
        - Workspace Users
      summary: List Invites
      description: List pending invitations. Requires `workspace-users-read`.
      operationId: listWorkspaceInvites
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Invite'
        '403':
          description: Forbidden
components:
  schemas:
    Invite:
      type: object
      properties:
        id:
          type: integer
        email:
          type: string
          format: email
        role:
          type: string
          enum:
            - admin
            - user
            - readonly
        status:
          type: string
          enum:
            - pending
            - accepted
        valid_until:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Personal Access Token created from the Raydocs dashboard.

        Include in the Authorization header: `Bearer <your_token>`

        See [API Keys](/api-reference/api-keys) for token creation and
        management.

````