curl --location 'https://api.weya.live/backend/api/webhooks' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Webhooks fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook",
"bearerToken": "YOUR_ENDPOINT_TOKEN",
"userId": "64e5f12345abcdef12345678",
"organizationId": "64e5f12345abcdef00000001",
"isActive": true,
"createdAt": "2026-07-20T12:45:00.000Z",
"updatedAt": "2026-07-20T12:45:00.000Z"
}
]
}
Webhooks
Get Webhooks
Retrieve the webhooks configured for your organization.
GET
/
api
/
webhooks
curl --location 'https://api.weya.live/backend/api/webhooks' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Webhooks fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook",
"bearerToken": "YOUR_ENDPOINT_TOKEN",
"userId": "64e5f12345abcdef12345678",
"organizationId": "64e5f12345abcdef00000001",
"isActive": true,
"createdAt": "2026-07-20T12:45:00.000Z",
"updatedAt": "2026-07-20T12:45:00.000Z"
}
]
}
Overview
List the webhooks in your organization, including those created by other users in it. A webhook is a URL that call outcomes are sent to: add it to a campaign under Track Call Outcomes (pushingCrms with type: "webhook"), and the result of each finished call is sent to it as a JSON POST request. See Create Webhook for how delivery works.
Prerequisites
- An API key for your workspace
Request
curl --location 'https://api.weya.live/backend/api/webhooks' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Webhooks fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook",
"bearerToken": "YOUR_ENDPOINT_TOKEN",
"userId": "64e5f12345abcdef12345678",
"organizationId": "64e5f12345abcdef00000001",
"isActive": true,
"createdAt": "2026-07-20T12:45:00.000Z",
"updatedAt": "2026-07-20T12:45:00.000Z"
}
]
}
Token sent as
Authorization: Bearer <token> with each request. Empty if none was set. Returned in plain text, so don’t log the response.Stored flag. It doesn’t stop deliveries; see Update Webhook.
Error Handling
- 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

