curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/webhook \
--header 'Authorization: Bearer <token>'
{
"status": true,
"data": {
"_id": "<string>",
"url": "<string>",
"description": "<string>",
"status": "enabled",
"organizationId": "<string>",
"createdBy": "<string>",
"subscriptions": [
{
"_id": "<string>",
"webhookId": "<string>",
"agentId": {
"_id": "<string>",
"name": "<string>",
"description": "<string>"
},
"eventType": "pre-conversation",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"decryptedSecretKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Retrieve all webhooks for the organization or a specific webhook by ID
curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/webhook \
--header 'Authorization: Bearer <token>'
{
"status": true,
"data": {
"_id": "<string>",
"url": "<string>",
"description": "<string>",
"status": "enabled",
"organizationId": "<string>",
"createdBy": "<string>",
"subscriptions": [
{
"_id": "<string>",
"webhookId": "<string>",
"agentId": {
"_id": "<string>",
"name": "<string>",
"description": "<string>"
},
"eventType": "pre-conversation",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"decryptedSecretKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Optional webhook ID to get a specific webhook
Successful response
The response is of type object
.