GET
/
webhook
Get webhooks
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

webhookId
string

Optional webhook ID to get a specific webhook

Response

200
application/json

Successful response

The response is of type object.