curl -X GET 'https://api.anyformat.ai/v3/document-packets/069dcc2c-e14c-7606-8000-2ee4fb17b4e1/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
document_packet_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
url = f"https://api.anyformat.ai/v3/document-packets/{document_packet_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
packet = requests.get(url, headers=headers).json()
print(packet["status"], packet["latest_run_id"])
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"name": "contract-bundle",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:05:00.000Z",
"files": [
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2", "name": "contract.pdf" },
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3", "name": "annex-a.pdf" }
],
"latest_run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"metadata": { "customer_reference": "CR-2026-99001-ZTX" }
}
Get Document Packet
Retrieve one document packet: status, files, and its latest run id
curl -X GET 'https://api.anyformat.ai/v3/document-packets/069dcc2c-e14c-7606-8000-2ee4fb17b4e1/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
document_packet_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
url = f"https://api.anyformat.ai/v3/document-packets/{document_packet_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
packet = requests.get(url, headers=headers).json()
print(packet["status"], packet["latest_run_id"])
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"name": "contract-bundle",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:05:00.000Z",
"files": [
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2", "name": "contract.pdf" },
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3", "name": "annex-a.pdf" }
],
"latest_run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"metadata": { "customer_reference": "CR-2026-99001-ZTX" }
}
latest_run_id, and any metadata supplied at creation.
latest_run_id names the packet’s most recent run, and is null until the packet has run. It is the hop to results: follow it with GET /v3/runs/{run_id}/. The response embeds no run history. List a workflow’s runs with GET /v3/workflows/{workflow_id}/runs/.
metadata is the free-form JSON object the caller attached on create, and is null when the caller attached none. See Attaching metadata for how it flows through extraction.
An unknown id returns 404, as does a packet belonging to another organization.
curl -X GET 'https://api.anyformat.ai/v3/document-packets/069dcc2c-e14c-7606-8000-2ee4fb17b4e1/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
document_packet_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
url = f"https://api.anyformat.ai/v3/document-packets/{document_packet_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
packet = requests.get(url, headers=headers).json()
print(packet["status"], packet["latest_run_id"])
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"name": "contract-bundle",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:05:00.000Z",
"files": [
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e2", "name": "contract.pdf" },
{ "id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3", "name": "annex-a.pdf" }
],
"latest_run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"metadata": { "customer_reference": "CR-2026-99001-ZTX" }
}
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Path Parameters
Response
Successful Response
A packet with its per-file breakdown and latest run reference.
Unique identifier of the document packet (hyphenated UUID).
"069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
The workflow this packet belongs to (hyphenated UUID).
"0686bb97-8c30-70f0-8000-97669e000eb8"
Processing status. Non-terminal: not_started, queued, in_progress. Terminal: processed (success), error, cancelled.
not_started, queued, in_progress, processed, error, cancelled "processed"
Files in this packet.
Show child attributes
Show child attributes
Human-readable name of the packet.
Timestamp when the packet was created (ISO 8601).
Timestamp when the packet was last updated (ISO 8601).
Id of the packet's most recent run (hyphenated UUID); null until the packet has been run.
Free-form JSON supplied at packet creation. No schema is enforced; the extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text under __anyformat_free_text__. null when no metadata was attached.

