Skip to main content
POST
/
api
/
runtime-security
/
scan
/
batch
Scan up to 32 items in one round-trip
curl --request POST \
  --url https://api.antidote.example.com/api/runtime-security/scan/batch \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "items": [
    {
      "text": "<string>",
      "direction": "input",
      "source_app": "<string>",
      "provider": "<string>",
      "model": "<string>",
      "metadata": {}
    }
  ]
}
'
{
  "results": [
    {
      "uuid": "<string>",
      "injection": {
        "score": 0.5,
        "meta": {}
      },
      "pii": {
        "count": 1,
        "categories": [
          "<string>"
        ],
        "findings": [
          {
            "type": "<string>",
            "subtype": "<string>",
            "score": 0.5,
            "snippet": "<string>",
            "start": 1,
            "end": 1,
            "extra": {}
          }
        ]
      },
      "redacted_text": "<string>",
      "latency_ms": 1,
      "text_length": 1,
      "blocked_reason": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Antidote workspace API key (ak_live_…). Use this header for the scan API and the OpenAI proxy routes. The required permission scope is runtime_security.scan for scan endpoints, runtime_security.view for read-only analytics, and runtime_security.manage for configuration changes.

Body

application/json
items
object[]
required
Required array length: 1 - 32 elements

Response

All items scored

results
object[]