Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.manka.tz/llms.txt

Use this file to discover all available pages before exploring further.

This walkthrough submits a PDF for asynchronous analysis and retrieves the result.

Prerequisites

1. Confirm the API is up

curl https://api.manka.ai/v1/api/health-check
You should see:
{ "status": "ok", "latency": "12ms" }

2. Submit a statement

curl -X POST https://api.manka.ai/v1/api/analysis \
  -H "Authorization: Bearer $MANKA_API_TOKEN" \
  -F "file=@statement.pdf"
Response
{
  "status": "processing",
  "task_id": "3f7a1c2e-8b4d-4e9f-a1b2-c3d4e5f60718"
}
Save the task_id — you’ll need it for polling.

3. Poll for results

curl https://api.manka.ai/v1/api/analysis/3f7a1c2e-8b4d-4e9f-a1b2-c3d4e5f60718 \
  -H "Authorization: Bearer $MANKA_API_TOKEN"
The response moves through three terminal states:
{
  "status": "processing",
  "task_id": "3f7a1c2e-8b4d-4e9f-a1b2-c3d4e5f60718"
}
Skip polling entirely by passing a callback_url when submitting — Manka will POST the final payload to that URL. See Callback payload.

Next steps

Asynchronous Analysis

Full reference for /analysis and polling.

Synchronous Transactions

Get the raw transaction list in a single request.

Combined Analysis

Analyse two or more statements together.

Errors

The error response shape and common status codes.