API Reference / Integrations
GET
/integrations/webhooksList webhook subscriptions
List your active webhook subscriptions.
🔒 JWT BearerTry in Console →
Purpose
Audit which event sinks are currently configured for your organization — useful for a settings page or to detect a missing subscription.
Authentication
Send your access token as a Bearer header: Authorization: Bearer <token>. Obtain it from Authenticate a user.
Request samples
bash
curl -X GET https://tourapi.nirajp.com.np/api/v1/integrations/webhooks \ -H "Content-Type: application/json"
Success response
Returns 200 OK with the shape below.
| Field | Type | Description |
|---|---|---|
| data[] | array | List of subscriptions |
| data[].id | number | Subscription id |
| data[].targetUrl | string | Delivery endpoint |
| data[].events | string[] | Subscribed events |
| data[].active | boolean | Whether it is currently receiving events |
json
{
"success": true,
"message": "Request successful.",
"data": [
{
"id": 3,
"targetUrl": "https://your-app.com/webhooks/booking",
"events": [
"booking.created",
"booking.cancelled"
],
"active": true
}
]
}Errors
All errors share the envelope { "success": false, "message": "..." }.
401No or invalid authentication token supplied.
json
{
"success": false,
"message": "Unauthorized"
}500An unexpected error occurred on our side. Retry; if it persists, contact support.
json
{
"success": false,
"message": "Internal server error"
}