Skip to main content
POST
/
analysis-combined
Submit Combined Analysis
curl --request POST \
  --url https://api.manka.ai/v1/api/analysis-combined \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    null
  ],
  "callback_url": "<string>",
  "passwords": "<string>"
}
'
{
  "status": "processing",
  "task_id": "8b1c4e2f-3a5d-4f9e-b6a7-d8c9e0f1a2b3"
}

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.

Submits two or more bank statement PDFs for a combined asynchronous analysis. Useful when a borrower has multiple accounts (e.g. M-Pesa + bank) and you want a single consolidated view.
A callback_url is required for this endpoint — there is no polling fallback.

Request body

files
file[]
required
One or more bank statement PDFs. Repeat the files field once per file in the multipart form.
callback_url
string
required
URL that will receive the combined result. See Callback payload.
passwords
string
JSON-encoded array of passwords positionally matching files. Use an empty string for files that are not encrypted, e.g. ["", "secret", ""].

Response

Returns the initial acknowledgement from the analysis service. The combined result itself is delivered to callback_url when ready.
{
  "status": "processing",
  "task_id": "8b1c4e2f-3a5d-4f9e-b6a7-d8c9e0f1a2b3"
}

Error responses

StatusReason
400No files provided, callback_url missing, or unrecognisable PDF format
401Missing or invalid API token
402Insufficient analysis credits
500Internal error processing the combined analysis

Example

curl -X POST https://api.manka.ai/v1/api/analysis-combined \
  -H "Authorization: Bearer $MANKA_API_TOKEN" \
  -F "files=@equity.pdf" \
  -F "files=@mpesa.pdf" \
  -F 'passwords=["", "hunter2"]' \
  -F "callback_url=https://example.com/manka/webhook"