Upload a document to create a new extract associated with a specific workflow.
Introduction to the Anesya API (0.8.1)
Welcome to the official Anesya API documentation.
This API allows you to interact with Anesya’s backend to create smart document extractions and retrieve structured data from them.
To start using the Anesya API, you first need to create an API token.
The API is secured using an API authentication token, which must be included in the Authorization header of each request.
Authorization: <YOUR_API_KEY>📌 Important: Do not share your tokens and never commit them to GitHub.
You can create your token on this page of the Anesya App. Each token has a defined lifetime: 1m, 3m, 6m, or inf (unlimited).
The API is accessible at the following environment:
https://api.anesya.app/
📌 Important: Always include a trailing
/at the end of each API URL.
| HTTP Code | Description |
|---|---|
200 | Everything worked fine |
201 | Resource successfully created |
202 | Resource accepted but not ready |
400 | Missing or invalid fields |
401 | Missing or invalid token |
403 | Insufficient credits |
404 | Resource not found |
Need help? Contact us at support@anesya.app.
Happy integrating!
https://api.anesya.app/
- Serveur Anesya
https://api.anesya.app/workflow/{id}/extract/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.anesya.app/workflow/{id}/extract/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: multipart/form-data' \
-F 'extracts[0][document]=(binary file)'Extract successfully created and linked to Workflow.
EU-1- Eu1FR-1- Fr1FR-2- Fr2FR-3- Fr3
CREATED- CreatedIN_PROGRESS- In ProgressFINISHED- FinishedERROR- Error
OCR- Document parsingCLASSIFICATION- Document classificationIMAGES- Document image analysisPARSING- Target data extractionLOCATION- Visual rendering of data
Key-value store for custom information related to the extract. Can be used to attach arbitrary structured data (e.g. identifiers, tags, integration info).
[ { "id": "300f339f-da71-4f9f-80f6-c25a63baae75", "document_name": "invoice.pdf", "document_url": "/document/3019eef7-3aaa-4f25-aaad-c570acaa32dc/?type=extract", "content_images": [ … ], "server": "FR-3", "content": "Invoice On 25/11/2024 ...", "extracted_data": null, "schema": "300f339f-da71-4f9f-80f6-c25a63baae75", "classifier": "300f339f-da71-4f9f-80f6-c25a63baae75", "classifier_result": "Invoice", "workflow": "300f339f-da71-4f9f-80f6-c25a63baae75", "workflow_session_id": 1758718492, "status": "CREATED", "extraction_step": "OCR", "extraction_time": 41.09, "credit_used": 3, "metadata": { … }, "created_at": "2025-06-12T14:56:10.682461Z" } ]