> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/webhooks/llms.txt)
> Source: https://docs.saleor.io/api-reference/webhooks/objects/webhook

# Webhook Object

Webhook.

```graphql
type Webhook implements Node {
  id: ID!
  name: String
  identifier: String
  events: [WebhookEvent!]! @deprecated
  syncEvents: [WebhookEventSync!]!
  asyncEvents: [WebhookEventAsync!]!
  app: App!
  eventDeliveries(
    sortBy: EventDeliverySortingInput
    filter: EventDeliveryFilterInput
    before: String
    after: String
    first: Int
    last: Int
  ): EventDeliveryCountableConnection
  targetUrl: String!
  isActive: Boolean!
  secretKey: String @deprecated
  subscriptionQuery: String
  customHeaders: JSONString
}
```

<a id="fields"></a>

### Fields

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

The ID of webhook.

<a id="name"></a>

#### [`name`](#name) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

The name of webhook.

<a id="identifier"></a>

#### [`identifier`](#identifier) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

The unique identifier of the webhook, set by the app. Unique per app, null when not set.

Added in Saleor 3.23

<a id="sync-events"></a>

#### [`syncEvents`](#sync-events) ● [`[WebhookEventSync!]!`](/api-reference/webhooks/objects/webhook-event-sync.md)

List of synchronous webhook events.

<a id="async-events"></a>

#### [`asyncEvents`](#async-events) ● [`[WebhookEventAsync!]!`](/api-reference/webhooks/objects/webhook-event-async.md)

List of asynchronous webhook events.

<a id="app"></a>

#### [`app`](#app) ● [`App!`](/api-reference/apps/objects/app.md)

The app associated with Webhook.

<a id="event-deliveries"></a>

#### [`eventDeliveries`](#event-deliveries) ● [`EventDeliveryCountableConnection`](/api-reference/miscellaneous/objects/event-delivery-countable-connection.md)

Event deliveries.

<a id="webhook-event-deliveries-sort-by"></a>

##### [`sortBy`](#webhook-event-deliveries-sort-by) ● [`EventDeliverySortingInput`](/api-reference/webhooks/inputs/event-delivery-sorting-input.md)

Event delivery sorter.

<a id="webhook-event-deliveries-filter"></a>

##### [`filter`](#webhook-event-deliveries-filter) ● [`EventDeliveryFilterInput`](/api-reference/miscellaneous/inputs/event-delivery-filter-input.md)

Event delivery filter options.

<a id="webhook-event-deliveries-before"></a>

##### [`before`](#webhook-event-deliveries-before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come before the specified cursor.

<a id="webhook-event-deliveries-after"></a>

##### [`after`](#webhook-event-deliveries-after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come after the specified cursor.

<a id="webhook-event-deliveries-first"></a>

##### [`first`](#webhook-event-deliveries-first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="webhook-event-deliveries-last"></a>

##### [`last`](#webhook-event-deliveries-last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="target-url"></a>

#### [`targetUrl`](#target-url) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Target URL for webhook.

<a id="is-active"></a>

#### [`isActive`](#is-active) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

Informs if webhook is activated.

<a id="subscription-query"></a>

#### [`subscriptionQuery`](#subscription-query) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Used to define payloads for specific events.

<a id="custom-headers"></a>

#### [`customHeaders`](#custom-headers) ● [`JSONString`](/api-reference/miscellaneous/scalars/jsonstring.md)

Custom headers, which will be added to HTTP request.

Show deprecatedHide deprecated

<a id="events"></a>

#### [`events`](#events) ● [`[WebhookEvent!]!`](/api-reference/webhooks/objects/webhook-event.md)

DEPRECATED

Use `asyncEvents` or `syncEvents` instead.

List of webhook events.

<a id="secret-key"></a>

#### [`secretKey`](#secret-key) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

DEPRECATED

As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.

Used to create a hash signature for each payload.

<a id="interfaces"></a>

### Interfaces

<a id="node"></a>

#### [`Node`](/api-reference/miscellaneous/interfaces/node.md)

An object with an ID

<a id="returned-by"></a>

### Returned By

[`webhook`](/api-reference/webhooks/queries/webhook.md) query

<a id="member-of"></a>

### Member Of

[`App`](/api-reference/apps/objects/app.md) object  ● [`WebhookCreate`](/api-reference/webhooks/objects/webhook-create.md) object  ● [`WebhookDelete`](/api-reference/webhooks/objects/webhook-delete.md) object  ● [`WebhookUpdate`](/api-reference/webhooks/objects/webhook-update.md) object
