API Reference

Complete documentation of the Docutray REST API

API Reference

The Docutray API provides a complete set of endpoints for document processing, type management, and workflow automation.

Authentication

All API requests require authentication using an API Key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

You can generate API Keys from your organization's dashboard in Account > API Keys.

Base URL

All API endpoints use the following base URLs:

EnvironmentURL
Productionhttps://app.docutray.com
Staginghttps://staging.docutray.com

Available Endpoints

Navigate through the sidebar to explore all available API endpoints organized by functionality:

  • Document Conversion - Convert documents to structured data
  • Document Identification - Automatically identify document types
  • Document Types - Manage document type schemas
  • Knowledge Bases - Manage knowledge bases for RAG operations
  • Steps Execution - Execute workflow steps asynchronously

Response Format

All API responses follow a consistent JSON format:

{
  "success": true,
  "data": { ... }
}

Error responses include details about the failure:

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid document type"
  }
}

Rate Limits

API requests are rate-limited based on your subscription plan. Contact support for custom limits.

On this page