SightRadardocs
API referenceWebhooks

Register a webhook endpoint

Register an HTTPS URL to receive per-photo batch results and verified collection-deletion completion events. (POST /v1/webhooks)

POST/v1/webhooks
Auth
Bearer API key

Register an HTTPS URL to receive per-photo batch results and verified collection-deletion completion events. We sign every delivery with HMAC-SHA256 over timestamp.body. If you omit secret, one is generated and returned once. Callback bodies are either BatchWebhookEvent or DeletionWebhookEvent.

Example request

curl -X POST "https://api.sightradar.com/v1/webhooks" \
  -H "Authorization: Bearer $SR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://api.example.com/sightradar/webhook"}'

Request body (application/json)

FieldTypeDescription
url requiredstringPublic HTTPS URL.
secretstringOptional signing secret; generated if omitted.

Response body

FieldTypeDescription
webhook_endpoint_idstring
urlstring
statusstring
secretstringReturned ONCE only when generated.
notestring

Status codes

StatusMeaning
200Endpoint registered.
400Invalid or non-HTTPS/private URL.
401Missing or invalid API key.
503Webhook encryption key not configured.
Last updated

On this page