Format a webhook event
POST
/webhook/format-event
const url = 'https://example.com/webhook/format-event';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/webhook/format-event \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Responses
Section titled “Responses”Webhook event formatted.
Media typeapplication/json
An asynchronous event delivered to a registered webhook.
object
type
The event sent to the webhook.
string
caseId
The consultation identifier associated with the event.
string
userId
The Abi user identifier associated with the event.
string
Example
{ "type": "questionResolved", "caseId": "case12345", "userId": "abi12345"}