Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Simulate Webhook

Related workflow: Order lifecycle · Standard screening orders · Adding searches to orders

POST
/v1/orders/simulate-webhook

Trigger a simulated webhook to a provided URL with a specified event type.

Behavior

  • The notification is queued for the caller's active organization with postbackWebhookUrl as its postback URL, to run about one second later with up to five attempts. The handler does not look up id.
  • event selects the event type, for example ORDER_STATUS_CHANGE as order.updated, VOUCHER_CANCELED as voucher.canceled and MONITORING_REPORT_GENERATED as monitoring.report.generated. When event is omitted, ORDER_STATUS_CHANGE (order.updated) is sent.

Related: Using Simulated Webhook · Event Types

Authorization

apiKey
headerapikey<token>

Request Body

application/json
  1. body
id*string

The dummy ID of the entity (order, invite, beamInput, or report)

event?string

The event type to trigger.

Default"ORDER_STATUS_CHANGE"
Value in"ORDER_STATUS_CHANGE""ORDER_SCORE_CHANGE""ORDER_CUSTOM_SCORE_CHANGE""ORDER_DISPUTE_RESOLVED""ORDER_ERROR""VOUCHER_REDEEMED""VOUCHER_ACCEPTED""VOUCHER_STARTED""VOUCHER_CANCELED""VOUCHER_EXPIRED""VOUCHER_OPTED_OUT""BEAM_INPUT_CREATED""MONITORING_REPORT_GENERATED"
postbackWebhookUrl*string
additionalMetadata?object

Optional additional metadata to include in the webhook payload

Response Body

Simulated notification queued (success: true).

application/json
  1. response
success*boolean
Example Request
curl -X POST 'https://api.cerebrum.com/v1/orders/simulate-webhook' \  -H 'apikey: CEREBRUM_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "id": "0bb0f6f8-459f-482a-952e-7caf029517f6",  "postbackWebhookUrl": "https://example.com/webhook-endpoint"}'
Example Response
{  "success": true}