İçeriğe geç

Webhook Detayını Getir

GET /v1/webhooks/{USER_ID}/6758d401d1c93075ad08c3a6
GET /v1/webhooks/{USER_ID}/6758d401d1c93075ad08c3a6

Belirli bir webhook'un olay aboneliklerini ve hedef URL bilgisini getirir.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
USER_ID * pathstringİşlem yapan kullanıcının kimlik (ID) değeri. UUID formatındadır.--
fetch('https://api.kargomucuz.com/v1/webhooks/{USER_ID}/6758d401d1c93075ad08c3a6', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı
{
"status": false,
"message": "Kullanıcı webhook'u getirilemedi.",
"code": 500
}
401: Yetkisiz
{
"status": false,
"message": "Herhangi bir giriş sağlanmadı.",
"code": 500
}