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

# Reparse Workspace Document

> Request parsing for a workspace document with a specific config hash.

Queue parsing (or return ready state) for a given `config_hash`.

## Authentication & Scope

Requires `documents-write`.

## Request

```http theme={null}
POST /workspaces/12/documents/880e8400-e29b-41d4-a716-446655440000/reparse HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Content-Type: application/json

{
  "config_hash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "force": true
}
```

## Response

* `202 Accepted` when parse is queued/processing
* `200 OK` when an existing parsing is already ready


## OpenAPI

````yaml post /workspaces/{workspaceId}/documents/{documentId}/reparse
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: Results
    description: Access extraction results.
paths:
  /workspaces/{workspaceId}/documents/{documentId}/reparse:
    post:
      tags:
        - Documents
      summary: Reparse Workspace Document
      description: >-
        Trigger (or reuse) parsing for a specific config hash. Requires
        `documents-write`.
      operationId: reparseWorkspaceDocument
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: integer
        - name: documentId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - config_hash
              properties:
                config_hash:
                  type: string
                  minLength: 64
                  maxLength: 64
                force:
                  type: boolean
                  default: false
                parser_version:
                  type: string
      responses:
        '200':
          description: Parsing already ready for provided config hash
        '202':
          description: Reparse queued or processing
        '403':
          description: Forbidden
        '422':
          description: Validation error
components:
  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.

````