OCR Router

API Reference

Complete documentation for the DocsRouter API

API Reference

The DocsRouter API follows RESTful principles. It accepts JSON request bodies, returns JSON responses, and uses standard HTTP response codes.

Base URL

All API requests should be made to the following base URL:

https://api.docsrouter.com/v1

Authentication

Authentication is performed via the Authorization header using your API key.

Authorization: Bearer YOUR_API_KEY

Response Format

All responses follow a standard wrapper format (modeled after best practices like OpenAI's API):

{
  "id": "req_...",       // Unique request ID
  "object": "...",       // Object type (e.g., 'ocr.result', 'list')
  "created": 1234567890, // Unix timestamp
  ...                    // Payload fields
}

Endpoints

MethodEndpointDescription
POST/v1/ocrProcess a document
GET/v1/ocr/modelsList available models
GET/v1/api-keysManage API keys
GET/v1/usageRetrieve usage statistics
GET/v1/healthCheck API status

Rate Limits

The API implements rate limiting to ensure stability. Standard limits are:

  • Free Tier: 10 requests / minute
  • Paid Tier: 1000 requests / minute

Check the X-RateLimit-* headers in the response for your current status.

On this page