What you need
- A Matil account — sign up here
- An API key
- A deployment ID
Get your API key
Open the dashboard
Log in to the Matil Dashboard and go to Settings > API Keys.
Create a new key
Click Create New Key. Give it a name that helps you identify its purpose (e.g., “Development” or “Production”).
Store your API key in an environment variable. Never hardcode it in your source code or commit it to version control.
Find your deployment ID
Go to Deployments in the dashboard. Select the deployment you want to use and copy its ID. A deployment ID is a UUID like:01234567-89ab-cdef-0123-456789abcdef
Make your first request
Send a document to your deployment:Understand the response
A successful response looks like this:| Field | Description |
|---|---|
entry_id | Unique ID for this result. Use it to retrieve or correct the entry later. |
resource_type | Always "structure". |
resource_id | The structure used for extraction. |
resource_version_number | The version of the structure that was applied. |
data | The extracted data, structured as JSON. |
errors | Validation errors, if any. null when everything is correct. |
status | completed, completed_with_errors, or failed. |
time_ms | How long processing took, in milliseconds. |
price | Cost of this request. |
What’s next?
Deployments
Understand how deployments connect structures to API calls.
Document formats
Learn about all the ways you can send documents to Matil.
Processing modes
Sync, async, and batch processing explained.
Error handling
Handle errors gracefully in your integration.