Webhook
Example Callback
This is an example of an event notification callback endpoint that can receive event notifications. Implementing this endpoint is the responsibility of the API consumer.
These definitions are provided for reference when implementing your callback endpoint.
For an implementation guide, refer to the Events: Basic Usage Guide.
Body
required
application/json
Event notification payload
- Type: integeraccount
_id requiredID of the account associated with the event
- Type: integercallback
_id requiredID of the callback receiving the event
- datarequired
Event-specific data payload
- memberType: objectrequired
- Type: stringevent
_name requiredName of the event
- Type: stringFormat: date-timeoccurred
_at requiredTimestamp when the event occurred
- Type: stringsource
_identifier requiredPrimary identifier related to the event
- Type: integersubscription
_id requiredID of the subscription associated with the event
- Type: stringtrace
_id requiredInternal trace ID, useful for debugging
- Type: stringFormat: uuiduuidrequired
Unique identifier for the event notification
Responses
- 200
Callback received successfully
- 400
Bad request
Request Example for post/example/callback_example
{
"uuid": "",
"account_id": 100,
"occurred_at": "",
"event_name": "sf.member.created",
"callback_id": 345,
"subscription_id": 1,
"source_identifier": "",
"trace_id": "",
"data": {
"member": {
"id": 1,
"identifier": "",
"created_at": ""
}
}
}
No Body