Authorization: Bearer ********************x-api-key: ********************{
"webhook": {
"name": "string",
"target_url": "string",
"secret": "string",
"active": true,
"include_customers_events": "string",
"events": [
"string"
]
}
}curl --location --request POST '/v2/webhooks/hooks' \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"webhook": {
"name": "string",
"target_url": "string",
"secret": "string",
"active": true,
"include_customers_events": "string",
"events": [
"string"
]
}
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"type": "targets",
"attributes": {
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"name": "string",
"target_url": "http://example.com",
"events": [
"string"
],
"active": true,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"properties": {
"exclude_body": true,
"include_customers_events": true
},
"failed_attempts": 0,
"failed_reason": "string",
"last_failed_at": "2019-08-24T14:15:22.123Z",
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}
}