CreateDocs.ai API
Integrate document generation and management into your applications.
Getting Started
- Create an account at createdocs.ai
- Navigate to Settings and generate an API key
- Include the key in every request as an HTTP header
- Start making API calls to generate documents
Authentication
All API requests require an API key sent in the X-API-Key header. You can also use the Authorization: Bearer <key> header.
API keys are prefixed with dt_ and scoped to specific permissions (e.g. DOCUMENTS_READ, AI_GENERATE).
Generate and manage keys from your dashboard settings.
Rate Limits
Rate limits are applied per API key on a 1-minute sliding window. Default limits depend on your plan:
- Free: 60 requests/minute
- Pro: 300 requests/minute
- Enterprise: Custom limits
Rate limit info is returned in response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
Code Examples
cURL - List Documents
curl -X GET "https://createdocs.ai/api/v1/documents?page=1&limit=10" \
-H "X-API-Key: dt_your_api_key_here"JavaScript (fetch)
const response = await fetch('https://createdocs.ai/api/v1/documents', {
headers: {
'X-API-Key': 'dt_your_api_key_here',
},
});
const { data, meta } = await response.json();
console.log(data);Python (requests)
import requests
response = requests.get(
"https://createdocs.ai/api/v1/documents",
headers={"X-API-Key": "dt_your_api_key_here"},
)
data = response.json()
print(data["data"])cURL - Generate Document
curl -X POST "https://createdocs.ai/api/v1/generate" \
-H "X-API-Key: dt_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"templateId": "your_template_id",
"inputData": {
"companyName": "Acme Corp",
"recipientName": "Jane Doe"
},
"saveDocument": true,
"title": "NDA - Acme Corp"
}'