POST /api/analyze/batch
Analyze up to five public legal documents in one request.
Request
http
POST https://themys.ca/api/analyze/batch
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
json
{
"items": [
{ "url": "https://example.com/terms" },
{ "url": "https://example.org/privacy" }
]
}
Send between one and five items. Each item may include a public URL or supplied legal-document text.
Response
The response returns results in the same order as the submitted items. One item failing does not prevent the other items from returning their results.
json
{
"results": [
{ "ok": true, "index": 0, "result": {} },
{ "ok": false, "index": 1, "error": "Unable to analyze this item" }
]
}
Review each item independently and verify important findings against the original document.