POST /v1/score/batch

Score up to 100 interactions in one call.

What this is

Batched variant of POST /v1/score. Up to 100 interactions per call, all for the same operator.

When to use

Request

curl -X POST https://api.cohesionauth.com/v1/score/batch \
  -H "X-API-Key: $COHESION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operator_id": "analyst-42",
    "domain": "financial",
    "interactions": [ { "session_id": "s1", "...": "..." }, { "session_id": "s2", "...": "..." } ]
  }'

Python

resp = client.score_batch(operator_id="analyst-42", domain="financial", interactions=[...])

TypeScript

const resp = await client.scoreBatch({ operator_id: "analyst-42", domain: "financial", interactions: [...] });

Response

{
  "results": [
    { "session_id": "s1", "jis": 74.1 },
    { "session_id": "s2", "jis": 74.4 }
  ],
  "count": 2,
  "operator_id": "analyst-42",
  "request_id": "req_01H...",
  "timestamp": "2026-04-22T18:22:10.432Z"
}

Limits

Errors

StatusMeaning
413Body exceeds 5 MB
422Interactions array empty or > 100

Next step

POST /v1/score for single, GET /v1/operator/:id/profile for the rolled-up view.