API Reference
Complete REST API documentation for integrating document intelligence into your applications. Simple, powerful, and developer-friendly.
Base URL
https://api.datlas.eu/v1Authentication
Secure authentication methods to protect your API calls and data. Choose the method that best fits your application architecture.
API Key
Simple API key authentication for server-to-server calls
Backend integrations, automation scripts
Include in Authorization header as Bearer token
Authorization: Bearer dtls_sk_live_abc123...OAuth 2.0
Industry-standard OAuth 2.0 with PKCE for web applications
Web applications, mobile apps, third-party integrations
Authorization code flow with refresh tokens
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...JWT Tokens
Short-lived JWT tokens for enhanced security
Microservices, high-security environments
Request signed JWT tokens with limited scope
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOi...Core API Endpoints
Essential endpoints for document processing, status checking, and account management. All endpoints return JSON responses.
/api/v1/documentsUpload and process a document
Documents
Required
100/minute
Request Example:
{
"document": "base64_encoded_file",
"filename": "invoice.pdf",
"document_type": "invoice",
"metadata": {
"customer_id": "12345",
"priority": "high"
}
}Response Example:
{
"document_id": "doc_abc123",
"status": "processing",
"created_at": "2025-01-15T10:30:00Z",
"estimated_completion": "2025-01-15T10:32:00Z"
}/api/v1/documents/{id}Retrieve document processing status and results
Documents
Required
1000/minute
Request Example:
GET /api/v1/documents/doc_abc123Response Example:
{
"document_id": "doc_abc123",
"status": "completed",
"results": {
"invoice_number": "INV-2025-001",
"total_amount": 1250.00,
"currency": "EUR",
"due_date": "2025-02-15",
"vendor": "Acme Corp"
},
"confidence": 0.98,
"processing_time_ms": 2340
}/api/v1/webhooksConfigure webhook endpoints for processing notifications
Webhooks
Required
10/minute
Request Example:
{
"url": "https://your-app.com/webhook",
"events": ["document.completed", "document.failed"],
"secret": "your_webhook_secret"
}Response Example:
{
"webhook_id": "wh_xyz789",
"url": "https://your-app.com/webhook",
"events": ["document.completed", "document.failed"],
"created_at": "2025-01-15T10:30:00Z"
}/api/v1/usageRetrieve current usage statistics and limits
Account
Required
60/hour
Request Example:
GET /api/v1/usage?period=current_monthResponse Example:
{
"period": "2025-01",
"documents_processed": 1847,
"plan_limit": 5000,
"overage_documents": 0,
"api_calls": 23451,
"rate_limit_remaining": 998
}Official SDKs
Type-safe SDKs for popular programming languages. Handle authentication, error handling, and retries automatically.
JavaScript/TypeScript
Installation:
npm install @datlas/sdkUsage Example:
import { DatlasClient } from '@datlas/sdk';
const client = new DatlasClient({
apiKey: 'your_api_key'
});
const result = await client.documents.process({
file: documentFile,
type: 'invoice'
});Python
Installation:
pip install datlas-sdkUsage Example:
from datlas import Client
client = Client(api_key='your_api_key')
result = client.documents.process(
file=open('invoice.pdf', 'rb'),
document_type='invoice'
)Java
Installation:
implementation "com.datlas:datlas-sdk:1.5.1"Usage Example:
DatlasClient client = new DatlasClient("your_api_key");
DocumentRequest request = DocumentRequest.builder()
.file(new File("invoice.pdf"))
.documentType("invoice")
.build();
DocumentResponse response = client.documents().process(request);HTTP Status Codes
Standard HTTP status codes returned by the API with specific meanings for different response scenarios.
OK
Request successful, response contains requested data
Created
Resource created successfully (e.g., document uploaded)
Accepted
Request accepted for processing (asynchronous operations)
Bad Request
Invalid request format or missing required parameters
Unauthorized
Missing or invalid authentication credentials
Forbidden
Insufficient permissions for the requested operation
Not Found
Requested resource does not exist
Too Many Requests
Rate limit exceeded, retry after specified time
Internal Server Error
Server error, contact support if persistent
Need API Support?
Our developer support team is here to help with API integration questions, troubleshooting, and optimization guidance.
Interactive Docs
Try API calls directly in the browser with our interactive documentation
Developer Discord
Join our developer community for real-time help and discussions
Priority Support
Get dedicated technical support for complex integrations