Skip to content

Create a webhook

View as Markdown

POST/v1/webhooksScope webhooks

Subscribes an HTTPS URL to request events. The response carries the signing secret once; store it to verify X-Goldmaster-Signature on every delivery.

Field Type Description
events required string[] Events to receive. See List webhook events. 1 to 20 items. One of ticket.created, ticket.status_changed, ticket.priority_changed, ticket.comment_added, ticket.attachment_added.
name required string Name to recognize the webhook. Unique in the workspace. 2 to 160 characters.
url required string HTTPS URL on a public address that receives the deliveries. Up to 1000 characters. A public https URL.
enabled boolean Whether deliveries start right away. Default: true.
Example
{
"name": "ERP sync",
"url": "https://erp.example.com/hooks/duty",
"events": [
"ticket.created",
"ticket.status_changed"
]
}

201 Created · data

Field Type Description
createdAt date-time When it was created.
enabled boolean Whether deliveries are active.
events string[] Events the webhook receives.
id integer Unique ID.
name string Name in the language of Accept-Language.
secret string Signing secret. Store it now: it is never shown again.
updatedAt date-time When it last changed.
url string HTTPS URL that receives the deliveries.
version string Payload version the webhook receives.
Example
{
"data": {
"id": 7,
"name": "ERP sync",
"url": "https://erp.example.com/hooks/duty",
"events": [
"ticket.created",
"ticket.status_changed"
],
"enabled": true,
"version": "v1",
"secret": "whsec_5b1f0e8c2a9d4e7f8a6b3c1d0e9f2a4b",
"createdAt": "2026-12-01T09:00:00Z",
"updatedAt": "2026-12-01T09:00:00Z"
}
}

Errors share one shape; see Errors for every key.

Terminal window
curl -X POST 'https://api.client.service-desk.goldmaster.io/v1/webhooks' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "ERP sync",
"url": "https://erp.example.com/hooks/duty",
"events": [
"ticket.created",
"ticket.status_changed"
]
}'