Simulate Webhook
Related workflow: Order lifecycle · Standard screening orders · Adding searches to orders
POST
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
postbackWebhookUrlas its postback URL, to run about one second later with up to five attempts. The handler does not look upid. eventselects the event type, for example ORDER_STATUS_CHANGE as order.updated, VOUCHER_CANCELED as voucher.canceled and MONITORING_REPORT_GENERATED as monitoring.report.generated. Wheneventis omitted, ORDER_STATUS_CHANGE (order.updated) is sent.
Related: Using Simulated Webhook · Event Types
apiKeyheader
apikey<token>application/json- body
id*stringThe dummy ID of the entity (order, invite, beamInput, or report)
event?stringThe 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*stringadditionalMetadata?objectOptional additional metadata to include in the webhook payload
Simulated notification queued (success: true).
application/json- response
success*booleancurl -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}