Test API for Advanced Extraction
AI Extraction
Test API for Advanced Extraction
1️⃣ Overview
Purpose:
Runs an advanced extraction test using inline content or a file identifier.
2️⃣ Endpoint
POST /noCo/api/v2/workspaces/{workspaceId}/extraction/advanced/test
3️⃣ Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | ✅ Yes | Identifier of the workspace |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
| Content-Type: application/json | ✅ Yes |
6️⃣ Request Body Schema
{
"content": "string",
"advancedSchema": {},
"elementId": "string"
}
7️⃣ Field Descriptions
Extraction Test Fields
| Field | Type | Required | Description |
|---|---|---|---|
| content | string | ✅ Yes | Inline content to test extraction |
| advancedSchema | object | ✅ Yes | JSON schema for advanced extraction |
| elementId | string | ❌ No | File ID for testing instead of content |
8️⃣ Example Request
curl -X POST https://{base_url}/noCo/api/v2/workspaces/{workspaceId}/extraction/advanced/test \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"content": "Sample invoice text",
"advancedSchema": {
"fields": []
}
}'
9️⃣ Behavior Summary
Performs an advanced extraction test using either inline content or a file reference.
POST
Test API for Advanced Extraction