List Webhook Endpoints
curl --request GET \
--url https://uat-api.clinkbill.com/api/webhook/endpoints \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/webhook/endpoints")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/webhook/endpoints"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/webhook/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 1,
"rows": [
{
"id": "whk_xxxxx",
"url": "https://example.com/api/clink/webhook",
"events": [
"session.complete",
"order.succeeded"
],
"enabled": true,
"signingSecret": "whsec_xxxxx",
"maskedSigningSecret": "whsec_...abcd",
"description": "Created through the API",
"createdAt": 1782112780956,
"updatedAt": 1782113780956
}
],
"code": 200,
"msg": "Success"
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}Webhook Endpoint Management
List Webhook Endpoints
Get webhook endpoints under the current merchant account.
GET
/
webhook
/
endpoints
List Webhook Endpoints
curl --request GET \
--url https://uat-api.clinkbill.com/api/webhook/endpoints \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/webhook/endpoints")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/webhook/endpoints"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/webhook/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 1,
"rows": [
{
"id": "whk_xxxxx",
"url": "https://example.com/api/clink/webhook",
"events": [
"session.complete",
"order.succeeded"
],
"enabled": true,
"signingSecret": "whsec_xxxxx",
"maskedSigningSecret": "whsec_...abcd",
"description": "Created through the API",
"createdAt": 1782112780956,
"updatedAt": 1782113780956
}
],
"code": 200,
"msg": "Success"
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Headers
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Query Parameters
Current page number. Defaults to 1.
Page size. Defaults to 20. The maximum is 100; larger values are capped at 100.
Required range:
x <= 100Filter by endpoint status.
Filter by exact endpoint URL.
Response
Webhook endpoints retrieved successfully