curl -X POST 'https://api.anyformat.ai/v3/extractions/0699a1c2-e14c-7606-8000-2ee4fb17b4fd/verify/' \
-H 'Authorization: Bearer YOUR_API_KEY'
from anyformat.sdk import Client
client = Client(api_key="YOUR_API_KEY")
client.verify_extraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd")
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: "YOUR_API_KEY" });
await af.verifyExtraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd");
Corrections
Verify Extraction
Mark every field of an extraction as verified
POST
/
v3
/
extractions
/
{extraction_id}
/
verify
/
curl -X POST 'https://api.anyformat.ai/v3/extractions/0699a1c2-e14c-7606-8000-2ee4fb17b4fd/verify/' \
-H 'Authorization: Bearer YOUR_API_KEY'
from anyformat.sdk import Client
client = Client(api_key="YOUR_API_KEY")
client.verify_extraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd")
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: "YOUR_API_KEY" });
await af.verifyExtraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd");
Rate limit tier: general, 600 requests/min. See Rate limits.
Marks every field of one extraction as verified by a person and answers
204 No Content. Send no body. extraction_id is the id of an entry of results.extractions in Get run. Values you corrected with Edit field stay as they are.
This closes the review loop: read the results, correct the fields and rows, then verify. On a dataset document, the verified extraction also becomes the document’s ground truth, so its workflow accumulates accuracy.
An extraction with no fields, such as the main extraction of a split run, answers 204 and verifies nothing. Verify the extractions of its splits.
A document with an assigned verifier refuses every other user with 403 NOT_ASSIGNED_VERIFIER. The key acts as its owner.
Errors
| Status | error_code | When |
|---|---|---|
403 | NOT_ASSIGNED_VERIFIER | Another user is the assigned verifier of the document. |
403 | insufficient_api_key_scope | The API key has no write scope. |
404 | NOT_FOUND | params.resource_type is extraction (unknown, or in another organization). An extraction_id that is not a UUID also answers 404, without params. |
curl -X POST 'https://api.anyformat.ai/v3/extractions/0699a1c2-e14c-7606-8000-2ee4fb17b4fd/verify/' \
-H 'Authorization: Bearer YOUR_API_KEY'
from anyformat.sdk import Client
client = Client(api_key="YOUR_API_KEY")
client.verify_extraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd")
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: "YOUR_API_KEY" });
await af.verifyExtraction("0699a1c2-e14c-7606-8000-2ee4fb17b4fd");

