This API lists all webhooks.
| Property | Value |
|---|---|
| URL | {{APP_URL}}/api/v1/webhooks |
| HTTP Method | GET |
| Content Type | application/json |
| Authentication | APIKEY header |
This endpoint has no URL or content parameters.
Below is an example HTTP raw request for the API request.
GET {{APP_URL}}/api/v1/webhooks
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": 42,
"description": "Webhook for customer Clothing Store Inc.",
"requestType": "POST",
"dataType": "JSON",
"endpoint": "https://c2hdev.requestcatcher.com/",
"data": null,
"subscribedEvent": "consignment.label.created",
"securityType": "none",
"securityData": [],
"status": 1,
"customer": {
"id": 7
}
},
{
"id": 41,
"description": "Webhook for customer Clothing Store Inc.",
"requestType": "POST",
"dataType": "JSON",
"endpoint": "https://c2hdev.requestcatcher.com/",
"data": null,
"subscribedEvent": "consignment.status.delivered",
"securityType": "none",
"securityData": [],
"status": 1,
"customer": {
"id": 7
}
}
]
}
If the API request fails, the API will return an error response like the following:
{
"status": false,
"errors": [
{
"message": "Unknown Error"
}
]
}