Watch our quick guide to get started with the Monkt API
Simple and intuitive API endpoints for all operations
Token-based authentication for all API requests
Support for JSON, multipart, and URL-based inputs
Transform your documents programmatically using our powerful REST API. All API requests require authentication using your API token.
?page=1&page_size=20
Default: 20 items per page
Max: 100 items
?created__gte=2024-01-01
Use field__operator format
?ordering=-created
Prefix with - for descending
Include your API token in the Authorization header for all requests:
/api/transformations/
List all your transformations
curl -H "Authorization: Token your-api-token" \
https://monkt.com/api/transformations/
/api/transformations/
Upload files for transformation
curl -X POST \
-H "Authorization: Token your-api-token" \
-F "files=@/path/to/document.pdf" \
https://monkt.com/api/transformations/
/api/transformations/
Transform content from a URL
curl -X POST \
-H "Authorization: Token your-api-token" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article"}' \
https://monkt.com/api/transformations/
/api/transformations/{uuid}/
Get details of a specific transformation
curl -H "Authorization: Token your-api-token" \
https://monkt.com/api/transformations/{uuid}/
/api/transformations/{uuid}/
Delete a transformation
curl -X DELETE \
-H "Authorization: Token your-api-token" \
https://monkt.com/api/transformations/{uuid}/
/api/schemas/
List all your schemas
curl -H "Authorization: Token your-api-token" \
https://monkt.com/api/schemas/
/api/schemas/
Create a new schema
curl -X POST \
-H "Authorization: Token your-api-token" \
-H "Content-Type: application/json" \
-d '{
"name": "Invoice Schema",
"schema": {
"type": "object",
"properties": {
"invoice_number": {"type": "string"},
"amount": {"type": "number"},
"date": {"type": "string"}
},
"required": ["invoice_number", "amount"]
}
}' \
https://monkt.com/api/schemas/
/api/transformations/{uuid}/json/
Get JSON transformation (auto mode)
curl -H "Authorization: Token your-api-token" \
-o output.json \
https://monkt.com/api/transformations/{uuid}/json/
/api/transformations/{uuid}/json/{schema_uuid}/
Get JSON transformation with specific schema
curl -H "Authorization: Token your-api-token" \
-o output.json \
https://monkt.com/api/transformations/{uuid}/json/{schema_uuid}/
/api/prompts/
List all your prompts with filtering options
curl -H "Authorization: Token your-api-token" \
"https://monkt.com/api/prompts/?json_output=true&ordering=-created"
/api/prompts/
Create a new prompt
curl -X POST \
-H "Authorization: Token your-api-token" \
-H "Content-Type: application/json" \
-d '{
"name": "Extract Dates",
"prompt": "Extract all dates from the text in ISO format",
"json_output": true
}' \
https://monkt.com/api/prompts/
/api/transformations/{uuid}/prompt/{prompt_uuid}/
Apply a prompt to a transformation
curl -H "Authorization: Token your-api-token" \
-o output.txt \
https://monkt.com/api/transformations/{uuid}/prompt/{prompt_uuid}/
status=completed
words_count__gte=100
mime_type=application/pdf
created__gte=2024-01-01
name__icontains=invoice
created__gte=2024-01-01
ordering=-created
json_output=true
name__icontains=extract
ordering=-created