This API allows users to query a webhook by its webhook ID.
| Property | Value |
|---|---|
| URL | {{APP_URL}}/api/v1/webhooks/{webhook_id} |
| HTTP Method | GET |
| Content Type | application/json |
| Authentication | APIKEY header |
| Parameter Name | Parameter Type | Required | Description |
|---|---|---|---|
webhook_id |
Integer | REQUIRED | Webhook ID |
Below is an example HTTP raw request for the API request.
GET {{APP_URL}}/api/v1/webhooks/1
Content-Type: application/json
APIKEY: {{APIKEY}}
On a successful request, the API will return a response like the following:
{
"status": true,
"message": null,
"data": {
"id": 1,
"description": "Webhook for customer ComToHome Admin",
"requestType": "POST",
"dataType": "JSON",
"endpoint": "https://c2hdev.requestcatcher.com/",
"data": null,
"subscribedEvent": "consignment.status.updated",
"securityType": "none",
"securityData": [],
"status": 1,
"customer": {
"id": 1
}
}
}
If the API request fails, the API will return an error response like the following:
{
"status": false,
"errors": [
{
"message": "Webhook not found"
}
]
}