Get a webhook
GET/v1/webhooks/{id}Scope webhooks
One webhook by its ID. The signing secret is never returned.
Path parameters
Section titled “Path parameters”| Name | Type | Description |
|---|---|---|
id required |
string |
ID of the webhook. |
Response
Section titled “Response”200 OK · 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. |
updatedAt |
date-time |
When it last changed. |
url |
string |
HTTPS URL that receives the deliveries. |
version |
string |
Payload version the webhook receives. |
{ "data": { "id": 7, "name": "ERP sync", "url": "https://erp.example.com/hooks/duty", "events": [ "ticket.created", "ticket.status_changed" ], "enabled": true, "version": "v1", "createdAt": "2026-12-01T09:00:00Z", "updatedAt": "2026-12-01T09:00:00Z" }}Errors
Section titled “Errors”Errors share one shape; see Errors for every key.
Code examples
Section titled “Code examples”curl 'https://api.client.service-desk.goldmaster.io/v1/webhooks/7' \ -H "Authorization: Bearer $DUTY_API_KEY"const response = await fetch('https://api.client.service-desk.goldmaster.io/v1/webhooks/7', { method: 'GET', headers: { Authorization: `Bearer ${process.env.DUTY_API_KEY}`, },});const body = await response.json();if (!response.ok) throw new Error(`${body.error}: ${body.message}`);console.log(body.data);import os
import requests
response = requests.request( "GET", "https://api.client.service-desk.goldmaster.io/v1/webhooks/7", headers={"Authorization": f"Bearer {os.environ['DUTY_API_KEY']}"}, timeout=30,)response.raise_for_status()print(response.json()["data"])package main
import ( "fmt" "io" "net/http" "os")
func main() { req, _ := http.NewRequest("GET", "https://api.client.service-desk.goldmaster.io/v1/webhooks/7", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("DUTY_API_KEY")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() data, _ := io.ReadAll(res.Body) fmt.Println(res.Status, string(data))}<?php$ch = curl_init('https://api.client.service-desk.goldmaster.io/v1/webhooks/7');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer ' . getenv('DUTY_API_KEY'), ],]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);echo $status, PHP_EOL, $response;using System.Net.Http.Headers;
using var client = new HttpClient();using var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.client.service-desk.goldmaster.io/v1/webhooks/7");request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("DUTY_API_KEY"));using var response = await client.SendAsync(request);Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");import java.net.URI;import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.client.service-desk.goldmaster.io/v1/webhooks/7")) .header("Authorization", "Bearer " + System.getenv("DUTY_API_KEY")) .method("GET", HttpRequest.BodyPublishers.noBody()) .build();var response = client.send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.statusCode() + " " + response.body());