Retrieve a paginated list of all available schemas.
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/schema/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.anesya.app/schema/?page=1&size=50' \
-H 'Authorization: YOUR_API_KEY_HERE'A paginated list of extract schemas.
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
{ "count": 50, "next": "https://api.anesya.app/schema/?page=3&size=50", "previous": "https://api.anesya.app/schema/?page=1&size=50", "results": [ { … } ] }
Request
Create a new extraction schema.
If you're unsure how to structure your schema, check out the guide : How to Build a JSON Extraction Schema.
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
- Serveur Anesya
https://api.anesya.app/schema/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.anesya.app/schema/ \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "Invoice schema",
"description": "Schema used for extracting data from customs invoices",
"additional_informations": "Common abbreviations: \"CB\" = credit card, \"TVA\" = VAT. Amounts use a comma as the decimal separator.\n",
"schema": {}
}'Extract schema successfully created.
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
{ "id": "300f339f-da71-4f9f-80f6-c25a63baae75", "name": "Invoice schema", "description": "Schema used for extracting data from customs invoices", "additional_informations": "Common abbreviations: \"CB\" = credit card, \"TVA\" = VAT. Amounts use a comma as the decimal separator.\n", "schema": {}, "created_at": "2025-06-12T14:56:10.682461Z", "updated_at": "2025-06-12T14:56:10.682461Z" }
- Serveur Anesya
https://api.anesya.app/schema/{id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.anesya.app/schema/{id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'Extract schema details.
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
{ "id": "300f339f-da71-4f9f-80f6-c25a63baae75", "name": "Invoice schema", "description": "Schema used for extracting data from customs invoices", "additional_informations": "Common abbreviations: \"CB\" = credit card, \"TVA\" = VAT. Amounts use a comma as the decimal separator.\n", "schema": {}, "created_at": "2025-06-12T14:56:10.682461Z", "updated_at": "2025-06-12T14:56:10.682461Z" }
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
- Serveur Anesya
https://api.anesya.app/schema/{id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.anesya.app/schema/{id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "Invoice schema",
"description": "Schema used for extracting data from customs invoices",
"additional_informations": "Common abbreviations: \"CB\" = credit card, \"TVA\" = VAT. Amounts use a comma as the decimal separator.\n",
"schema": {}
}'Extract schema successfully updated.
Free-form context to help the AI interpret the document (business jargon, abbreviations, locale/date/currency formats, vendor aliases, layout quirks). Use this when relevant details are missing from the file itself.
{ "id": "300f339f-da71-4f9f-80f6-c25a63baae75", "name": "Invoice schema", "description": "Schema used for extracting data from customs invoices", "additional_informations": "Common abbreviations: \"CB\" = credit card, \"TVA\" = VAT. Amounts use a comma as the decimal separator.\n", "schema": {}, "created_at": "2025-06-12T14:56:10.682461Z", "updated_at": "2025-06-12T14:56:10.682461Z" }
- Serveur Anesya
https://api.anesya.app/schema/{id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.anesya.app/schema/{id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'