Webhooks

Create a webhook trigger

POST
https://api.propexo.com/v1/webhooks/:webhook_id/triggers
Create a webhook trigger

Path parameters

webhook_id
string

Request

This endpoint expects an object.
trigger
enum
The event that will trigger the webhook
model
optional enum
The model for the webhook trigger to monitor. Only applies to DATA_UPDATE and DATA_NEW triggers

Response

This endpoint return an object.
result
object
POST
/v1/webhooks/:webhook_id/triggers
curl -X POST https://api.propexo.com/v1/webhooks/webhook_id/triggers \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"trigger": "DATA_UPDATE"
}'
Response
{
"result": {
"id": "id",
"created_at": "created_at",
"updated_at": "updated_at",
"url": "url",
"active": true,
"secret": "secret",
"system": "PRODUCTION",
"headers": [
{
"header": "header",
"value": "value"
}
],
"triggers": [
{
"id": "id",
"trigger": "trigger"
}
]
}
}