Why deployments?
Deployments give you a layer of indirection that makes your integration more robust:- Update without code changes. Publish a new structure version and assign it to the deployment. Your API calls don’t change.
- Separate environments. Use different deployments for development, staging, and production — each pointing to the right structure version.
- Track history. Every time you change which structure version a deployment uses, it’s recorded.
What’s inside a deployment?
| Component | Description |
|---|---|
| Deployment ID | A unique UUID you use in API calls. |
| Structure | The structure (and version) that this deployment uses for processing. |
| Name | A human-readable label for your reference. |
Deployments are created and managed in the Matil Dashboard. The API is used to process documents through them.
Using a deployment
Once you have a deployment ID, processing a document is a single API call:| Mode | Endpoint | Description |
|---|---|---|
| Sync | POST /v3/deployments/{id} | Blocks until processing completes. Returns the result directly. |
| Async | POST /v3/deployments/{id}/async | Returns immediately. Result delivered via webhook. |
| Batch | POST /v3/deployments/{id}/batch | Submit up to 100 items. Results delivered via webhook. |
Next steps
Structures
Learn how to define what data you want to extract.
Processing modes
Learn the details of sync, async, and batch processing.