Skip to main content
POST
/
v3
/
deployments
/
{deployment_id}
/
async
Process (async)
curl --request POST \
  --url https://api.matil.ai/v3/deployments/{deployment_id}/async \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "documents": [
    {
      "text": "<string>",
      "type": "text",
      "metadata": {}
    }
  ],
  "webhook": {
    "url": "<string>",
    "secret": "<string>",
    "incremental": true
  },
  "metadata": {}
}
'
{
  "entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resource_version_number": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "status": "pending",
  "resource_type": "structure"
}

Authorizations

x-api-key
string
header
required

Headers

authorization
string | null
x-api-key
string | null
X-Tenant-ID
string | null

Path Parameters

deployment_id
string<uuid>
required

Body

application/json

Request for asynchronous document processing via deployment.

documents
(DocumentInputText · object | DocumentInputURL · object | DocumentInputBase64 · object | DocumentInputId · object)[]
required

List of documents to process

Minimum array length: 1

Direct text content for processing.

webhook
WebhookConfig · object
required

Webhook configuration for receiving results

metadata
Metadata · object

Optional client-provided metadata

Response

Successful Response

Response for async processing request creation.

entry_id
string<uuid>
required

ID of the pending entry

resource_id
string<uuid>
required

ID of the structure being processed

resource_version_number
integer
required

Version number of the structure

created_at
string<date-time>
required

When the request was received

status
string
default:pending

Initial status

resource_type
string
default:structure

Type of resource being processed