curl --location --request POST 'https://api.synci.io/api/v1/webhooks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "http://example.com",
"description": "string",
"enabled": true,
"type": "WEBHOOK",
"omit_sensitive_identifiers": true,
"events": [
"transactions.created"
],
"bank_accounts": [
0
]
}'{
"message": "Webhook endpoint created.",
"data": {
"id": 0,
"url": "string",
"description": "string",
"enabled": true,
"type": "WEBHOOK",
"omit_sensitive_identifiers": true,
"events": [
null
],
"bank_accounts": [
null
],
"health": {
"status": "HEALTHY",
"integrator_message": "string",
"failure_count": 0,
"last_attempt_at": "2019-08-24T14:15:22.123Z"
},
"secret": "string",
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
}