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.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.
Base URL
Authentication
Every request must include a Personal Access Token in theAuthorization header:
| Ability | Description |
|---|---|
workspaces-read | Read workspaces the user belongs to |
workspaces-write | Create, update or delete workspaces |
workspace-users-read | List workspace members & invites |
workspace-users-write | Manage workspace members & invites |
templates-read | Read extraction templates |
templates-write | Create or modify extraction templates |
sessions-read | Read extraction sessions and results |
sessions-write | Create sessions, upload documents, run extractions |
Request Format
Content Type
All requests with a body should use JSON:Example Request
Pagination
List endpoints return paginated results. Use thepage query parameter to retrieve subsequent pages:
Rate Limits
Each IP address is limited to 100 requests per minute. Exceeding the limit returns 429 Too Many Requests.Errors
Errors are returned in JSON with an HTTP status code that reflects the problem:Status Codes
| Status | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | Deleted (no content) |
| 400 | Bad request / validation error |
| 401 | Missing or invalid token |
| 403 | Token lacks required ability |
| 404 | Resource not found |
| 422 | Unprocessable entity |
| 429 | Rate limit exceeded |
| 500 | Server error |
Quick Start
Make your first API call by listing your workspaces:If you receive a JSON array of workspaces, your token is working correctly.
