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/v1Authentication
Authentication is performed via the Authorization header using your API key.
Authorization: Bearer YOUR_API_KEYResponse 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
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/ocr | Process a document |
GET | /v1/ocr/models | List available models |
GET | /v1/api-keys | Manage API keys |
GET | /v1/usage | Retrieve usage statistics |
GET | /v1/health | Check 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.