API reference

Webhook Endpoint

PropertyValue
ProtocolHTTPS only (TLS 1.2 or higher)
MethodPOST
Content-Typeapplication/json
Response RequiredYes (within 3-5 seconds)
Status Codes200, 4xx, or 5xx

Request Headers

HeaderRequiredExamplePurpose
AuthorizationNoCustom valueAuthentication if required by your endpoint
Content-TypeYesapplication/jsonSpecifies JSON payload
X-SCALAR-SignatureYessha256=abc123...HMAC-SHA256 signature for validation
Custom HeadersNoAs configuredYour custom headers (up to 5)

Request Body

The webhook payload contains a batch of events in the following structure:

{
  "eventBatchId": "string (UUID)",
  "eventSubscriptionId": "string (UUID)",
  "eventBatchTime": "string (ISO-8601)",
  "eventsData": [
    {
      "eventType": "string",
      "eventVersion": "integer",
      "eventData": {
        // Event-specific payload
      }
    }
  ]
}

Request Parameters Explained


eventBatchId: Unique identifier for this specific batch of events

  • eventSubscriptionId: Identifies which subscription this batch is for
  • eventBatchTime: UTC timestamp when the batch was sent
  • eventsData: Array of individual events in the batch

Response Requirements

Your webhook endpoint must respond with:

{
  "statusCode": 200 | 4xx | 5xx,
  "message": "string (optional)"
}

HTTP Status Codes:

Status CodeMeaningSCALAR Action
200SuccessMark delivery as successful, proceed to next batch
204No ContentTreat as successful delivery
4xxClient ErrorLog error, do NOT retry (indicates configuration issue)
5xxServer ErrorRetry delivery with exponential backoff
TimeoutNo ResponseRetry delivery with exponential backoff