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

# Get Result

> Get one extraction run result with data, audit information, and input document refs.

## Authentication & Scope

Requires the `sessions-read` ability.

## Request

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

### Path Parameters

| Parameter  | Type | Required | Description   |
| ---------- | ---- | -------- | ------------- |
| `resultId` | uuid | Yes      | The result ID |

## Response

`200 OK` – Result with extracted data and audit trail.

```json theme={null}
{
  "id": "990e8400-e29b-41d4-a716-446655440000",
  "extraction_session_id": "770e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "config_hash": "cfg_9eeae65063f17f55",
  "document_refs": [
    {
      "kind": "documentRef",
      "documentId": "880e8400-e29b-41d4-a716-446655440000",
      "workspaceId": "660e8400-e29b-41d4-a716-446655440000",
      "filename": "invoice.pdf",
      "sha256": "6de7f6f5894c9f3fd1f6f8a4d1b3115d0d9b4b19d7a8a661f9fe90f9c2d80c3b"
    }
  ],
  "title": "Invoice #INV-2024-001",
  "data": {
    "invoice_details": {
      "invoice_number": "INV-2024-001",
      "date": "2024-01-15",
      "total_amount": 8800
    }
  },
  "audit_data": {
    "invoice_details": {
      "invoice_number": {
        "reasoning": "Found invoice number in header section, formatted as 'Invoice Number: INV-2024-001'",
        "sources": [
          {
            "chunk_id": "aa0e8400-e29b-41d4-a716-446655440000",
            "text": "Invoice Number: INV-2024-001",
            "page": 1
          }
        ]
      },
      "total_amount": {
        "reasoning": "Calculated from subtotal $8,000 plus 10% tax ($800) = $8,800",
        "sources": [
          {
            "chunk_id": "aa0e8400-e29b-41d4-a716-446655440001",
            "text": "Total: $8,800",
            "page": 2
          }
        ]
      }
    }
  },
  "created_at": "2024-01-15T10:30:00Z",
  "completed_at": "2024-01-15T10:32:00Z"
}
```

### Response Structure

| Property        | Description                                                             |
| --------------- | ----------------------------------------------------------------------- |
| `document_refs` | Document snapshot used as run inputs                                    |
| `config_hash`   | Parsing/extraction config fingerprint used for cacheability and re-runs |
| `data`          | Clean extracted values organized by group                               |
| `audit_data`    | Reasoning and source references for each field                          |

<Tip>
  The `audit_data` is only populated when `reasoning_enabled: true` in the template config.
</Tip>

`404 Not Found` – Result does not exist or you don't have access.


## OpenAPI

````yaml get /extractions/results/{resultId}
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/results/{resultId}:
    get:
      tags:
        - Results
      summary: Get Result
      description: >-
        Retrieve a single extraction result with full data. Requires
        `sessions-read`.
      operationId: getResult
      parameters:
        - name: resultId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtractionResult'
        '404':
          description: Not Found
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.

````