---
title: "Get webhooks"
method: GET
path: "/webhook"
tags: ["Webhooks"]
---

# Get webhooks

`GET /webhook`

Retrieve all webhooks for the organization or a specific webhook by ID

## Query parameters

- `webhookId` string

## Response `200`

Successful response

- object
  - `status` boolean
  - `data` union
    - Webhook
      - `_id` string — The unique identifier for the webhook
      - `url` string — The webhook endpoint URL
      - `description` string — The description of the webhook
      - `status` 'enabled' | 'disabled' — The status of the webhook
      - `organizationId` string — The organization ID
      - `createdBy` string — The user ID who created the webhook
      - `subscriptions` WebhookSubscriptionPopulated[] — A list of subscriptions for the webhook with populated agent details.
        - `_id` string — The unique identifier for the subscription
        - `webhookId` string — The ID of the webhook
        - `agentId` WebhookAgent
          - `_id` string — The ID of the agent
          - `name` string — The name of the agent
          - `description` string — The description of the agent
        - `eventType` 'pre-conversation' | 'post-conversation' | 'analytics-completed' — The type of event subscribed to
        - `createdAt` string, date-time — The date and time when the subscription was created
        - `updatedAt` string, date-time — The date and time when the subscription was last updated
      - `decryptedSecretKey` string — The decrypted signing secret for the webhook. Returned by both `GET /webhook` (list) and `GET /webhook?webhookId=<id>` (single). Use as the HMAC-SHA256 key when verifying the `X-Signature` header on incoming webhook deliveries.
      - `createdAt` string, date-time — The date and time when the webhook was created
      - `updatedAt` string, date-time — The date and time when the webhook was last updated
    - Webhook[]
      - `_id` string — The unique identifier for the webhook
      - `url` string — The webhook endpoint URL
      - `description` string — The description of the webhook
      - `status` 'enabled' | 'disabled' — The status of the webhook
      - `organizationId` string — The organization ID
      - `createdBy` string — The user ID who created the webhook
      - `subscriptions` WebhookSubscriptionPopulated[] — A list of subscriptions for the webhook with populated agent details.
        - `_id` string — The unique identifier for the subscription
        - `webhookId` string — The ID of the webhook
        - `agentId` WebhookAgent
          - `_id` string — The ID of the agent
          - `name` string — The name of the agent
          - `description` string — The description of the agent
        - `eventType` 'pre-conversation' | 'post-conversation' | 'analytics-completed' — The type of event subscribed to
        - `createdAt` string, date-time — The date and time when the subscription was created
        - `updatedAt` string, date-time — The date and time when the subscription was last updated
      - `decryptedSecretKey` string — The decrypted signing secret for the webhook. Returned by both `GET /webhook` (list) and `GET /webhook?webhookId=<id>` (single). Use as the HMAC-SHA256 key when verifying the `X-Signature` header on incoming webhook deliveries.
      - `createdAt` string, date-time — The date and time when the webhook was created
      - `updatedAt` string, date-time — The date and time when the webhook was last updated

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/c2d0eb64b01a/schema)
