> ## 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 Session Results

> List all extraction results for a session.

## Authentication & Scope

Requires the `sessions-read` ability.

## Request

```http theme={null}
GET /extractions/sessions/770e8400-e29b-41d4-a716-446655440000/results HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
```

### Path Parameters

| Parameter   | Type | Required | Description    |
| ----------- | ---- | -------- | -------------- |
| `sessionId` | uuid | Yes      | The session ID |

## Response

`200 OK` – Array of extraction runs.

```json theme={null}
{
  "data": [
    {
      "id": "990e8400-e29b-41d4-a716-446655440000",
      "extraction_session_id": "770e8400-e29b-41d4-a716-446655440000",
      "status": "completed",
      "config_hash": "cfg_9eeae65063f17f55",
      "title": "Invoice #INV-2024-001",
      "created_at": "2024-01-15T10:30:00Z",
      "completed_at": "2024-01-15T10:32:00Z"
    }
  ]
}
```

### Result Status Values

| Status       | Description                       |
| ------------ | --------------------------------- |
| `created`    | Extraction run created and queued |
| `processing` | Extraction in progress            |
| `completed`  | Extraction finished successfully  |
| `failed`     | Extraction failed                 |


## OpenAPI

````yaml get /extractions/sessions/{sessionId}/results
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:
  /extractions/sessions/{sessionId}/results:
    get:
      tags:
        - Results
      summary: List Results
      description: List all extraction results for a session. Requires `sessions-read`.
      operationId: listResults
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExtractionResult'
        '403':
          description: Forbidden
components:
  schemas:
    ExtractionResult:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        extraction_session_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - created
            - parsing_pending
            - processing
            - completed
            - failed
        config_hash:
          type: string
          nullable: true
        document_refs:
          type: array
          items:
            $ref: '#/components/schemas/DocumentRef'
        data:
          type: object
          description: Extracted data matching the template schema
        audit_data:
          type: object
          description: Verification/reasoning traces and run audit payload
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
    DocumentRef:
      type: object
      required:
        - kind
        - documentId
        - workspaceId
      properties:
        kind:
          type: string
          example: documentRef
        documentId:
          type: string
          format: uuid
        workspaceId:
          type: integer
        filename:
          type: string
        mime:
          type: string
        size:
          type: integer
        sha256:
          type: string
        source:
          type: object
          properties:
            type:
              type: string
              enum:
                - upload
                - url
                - connector
            url:
              type: string
              nullable: true
        createdAt:
          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.

````