Retrieve one webhook destination by its webhookUid.
Get Webhook
Summary
Retrieve one webhook destination by its webhookUid.
Prerequisites
- Authorization: Bearer w91_live_xxx
- Content-Type: application/json for JSON requests
Related documentation
Retrieves one webhook destination. webhookUid is the only public identifier for reading and updating a webhook.
/api/v2/webhooks/{webhookUid}Retrieve one webhook destination.
| Parameter | Type | Required | Description |
|---|---|---|---|
webhookUid | string | Required | Webhook UID returned as webhookUid by create and list. |
senderId | string | Optional | WhatsApp sender that owns the webhook. |
curl -X GET "https://graph.whats91.com/api/v2/webhooks/wh_abc?senderId=916268662275" \
-H "Authorization: Bearer w91_live_xxx"{
"success": true,
"message": "Webhook retrieved",
"data": {
"webhookUid": "wh_abc",
"uid": "wh_abc",
"name": "CRM delivery hook",
"endpointUrl": "https://crm.example.com/webhooks/whats91",
"phoneNumber": "916268662275",
"phoneNumberId": "1043189608869917",
"events": ["message.inbound.text", "message.status.delivered"],
"status": "ACTIVE",
"timeoutMs": 5000,
"retryEnabled": true,
"retryMaxAttempts": 3,
"verificationHeaderKey": "X-CRM-Webhook-Token",
"hasVerificationToken": true
},
"metadata": {
"apiVersion": "v2",
"requestId": "request-uuid"
}
}Warning
Get, list, and update responses never return the signing secret, the encrypted secret, the verification token, or the token hash. The signing secret is returned exactly once, on create.
SDK Examples
Use these examples as starting points for server-side implementations.
curl -X GET "https://graph.whats91.com/api/v2/webhooks/{webhookUid}" \
-H "Authorization: Bearer w91_live_xxx"const response = await fetch("https://graph.whats91.com/api/v2/webhooks/{webhookUid}", {
method: "GET",
headers: {
"Authorization": "Bearer w91_live_xxx"
}
});
const data = await response.json();
console.log(data);$ch = curl_init("https://graph.whats91.com/api/v2/webhooks/{webhookUid}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer w91_live_xxx"
]
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;import requests
response = requests.request(
"GET",
"https://graph.whats91.com/api/v2/webhooks/{webhookUid}",
headers={
"Authorization": "Bearer w91_live_xxx",
}
)
print(response.json())using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");
var request = new HttpRequestMessage(HttpMethod.Get, "https://graph.whats91.com/api/v2/webhooks/{webhookUid}");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());Related APIs
Webhook
Create and manage Whats91 Webhooks v2 event destinations with the canonical public API route.
Update Webhook
Change a webhook destination, rotate its verification token, or deactivate it.
Samples
Webhook management requests, responses, and event payload samples for common Whats91 webhook flows.
Examples
Practical webhook receiver examples and use cases for CRM, delivery tracking, and template operations.