Skip to main content
Welcome to the Raydocs REST API – a straightforward, token-based interface that lets you manage workspaces, extraction templates, sessions, documents, and results programmatically. The API exposes the same capabilities available in the dashboard: you can create extraction templates, upload documents, run extractions, and retrieve results with full audit trails.

Base URL

All endpoints documented in this reference are relative to that URL.

Authentication

Every request must include a Personal Access Token in the Authorization header:
Tokens can be created in your Raydocs dashboard (see the API Keys section). Each token is associated with one or more abilities / scopes that restrict what it can do. When your request attempts an operation outside the abilities attached to the token, the API responds with 403 Forbidden.

Request Format

Content Type

All requests with a body should use JSON:

Example Request

Pagination

List endpoints return paginated results. Use the page query parameter to retrieve subsequent pages:
Paginated responses include metadata:

Rate Limits

Each IP address is limited to 100 requests per minute. Exceeding the limit returns 429 Too Many Requests.
For high-volume integrations, batch operations where possible (e.g., batch session creation) to stay within rate limits.

Errors

Errors are returned in JSON with an HTTP status code that reflects the problem:

Status Codes

Quick Start

Make your first API call by listing your workspaces:
If you receive a JSON array of workspaces, your token is working correctly.