---
title: "Get a webhook"
method: GET
path: "/NotificationWebHooks/{id}"
tags: ["NotificationWebHooks"]
---

# Get a webhook

`GET /NotificationWebHooks/{id}`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/NotificationWebHooks/{id}`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/NotificationWebHooks/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the details of the specified webhook.

## Path parameters

- `id` integer, required

## Response `200`

The requested webhook is in the response.

- ServiceChannelServicesMessagingNotificationsWebHooksWebHook
  - `Subscriptions` ServiceChannelServicesMessagingNotificationsWebHookSubscription[]
    - `Id` integer: The unique subscription ID. Generated automatically and cannot be modified.
    - `Name` string, required: The user-friendly name for the subscription.
    - `EventTypes` string[], required: The list of events to subscribe to. Events within one subscription should belong to one object.
    - `Rules` ServiceChannelServicesMessagingNotificationsNotificationSubscriptionsRules: The event rules used to receive events matching only certain criteria.
      - `Trades` string[]: The trades that the events should belong to.
      - `Categories` string[]: The categories that the events should belong to.
      - `Statuses` string[]: The statuses that the events should belong to.
  - `Id` integer: The unique webhook ID. Generated automatically and cannot be modified.
  - `ResetOptions` boolean
  - `Enabled` boolean: Defines if the webhook is active or inactive.
  - `Name` string, required: The user-friendly name for the webhook.
  - `Description` string: The description of the webhook.
  - `Url` string, required: The URL to which the events should be delivered.

## Other responses

- `400`: The requested data are not found. <br/>Error codes: 502 - Webhook not found
- `401`: The request is not authorized. <br/>Error codes: 504 - Missing or incorrect authentication credentials

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
