Creates a new webhook in the Pulsifi system.
Headers
- Accept :
application/json
- Content-Type :
application/json
- Authorization :
Bearer {access_token}
Body
name
nullable string RequiredThe name of the webhook.
url
nullable string (URL) RequiredThe URL to which the webhook will send data.
events
nullable array enum RequiredThe events that trigger the webhook.
secret
nullable string OptionalThe secret in the webhook headers, ensuring verification.
Response
200 OK.
Parameters
POST /partner/v1.0/webhooks
curl -X POST 'https://api.pulsifi.me/partner/v1.0/webhooks' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Webhook 1",
"url": "https://example.com/my/webhook/endpoint",
"events": [
"candidate_application_result_ready"
],
"secret": "string"
}'
Response
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partner_id": 1,
"name": "Webhook 1",
"url": "https://example.com/my/webhook/endpoint",
"events": ["candidate_application_result_ready"],
"status": "active",
"is_deleted": false,
"created_at": "2024-10-04T04:06:55.124Z",
"created_by": 1
}