SightRadardocs
API referenceBatch

Submit a batch job

Fire-and-forget bulk processing of up to 1000 URL-only photos. (POST /v1/batches)

POST/v1/batches
Auth
Bearer API key

Fire-and-forget bulk processing of up to 1000 URL-only photos. base64 is rejected in batch — use real-time endpoints for inline images. Results arrive per-photo via your registered webhook, or poll GET /v1/batches/{id}.

Example request

curl -X POST "https://api.sightradar.com/v1/batches" \
  -H "Authorization: Bearer $SR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"collection_id":"event-2026","op":"index","photos":[{"url":"https://example.com/photo.jpg","external_id":"photo-1"}]}'

Request body (application/json)

FieldTypeDescription
collection_id requiredstring
op required"index" | "match"
webhook_endpoint_idstringOptional; an endpoint id from POST /v1/webhooks.
photos requiredobject[]

Response body

FieldTypeDescription
batch_idstring
total_photosinteger
statusstring
messagestring

Status codes

StatusMeaning
202Batch accepted.
400Validation error (missing fields, base64 in batch, too large).
401Missing or invalid API key.
Last updated

On this page