curl --request GET \
--url https://api.notchpay.co/webhooks \
--header 'Authorization: <api-key>'
{
"code": 200,
"status": "OK",
"message": "Webhook endpoints retrieved",
"totals": 5,
"last_page": 1,
"current_page": 1,
"selected": 5,
"endpoints": [
{
"id": "wh_123456789",
"url": "https://example.com/webhooks",
"description": "Webhook principal",
"events": [
"payment.complete"
],
"created_at": "2023-01-01T12:00:00.000Z",
"updated_at": "2023-01-02T12:00:00.000Z"
}
]
}
curl --request GET \
--url https://api.notchpay.co/webhooks \
--header 'Authorization: <api-key>'
{
"code": 200,
"status": "OK",
"message": "Webhook endpoints retrieved",
"totals": 5,
"last_page": 1,
"current_page": 1,
"selected": 5,
"endpoints": [
{
"id": "wh_123456789",
"url": "https://example.com/webhooks",
"description": "Webhook principal",
"events": [
"payment.complete"
],
"created_at": "2023-01-01T12:00:00.000Z",
"updated_at": "2023-01-02T12:00:00.000Z"
}
]
}
Webhook endpoints retrieved
The response is of type object
.
Was this page helpful?