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

# webhookDryRun Mutation

Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.

Requires the AUTHENTICATED\_STAFF\_USER permission.

```graphql
webhookDryRun(
  objectId: ID!
  query: String!
): WebhookDryRun
```

Details

```graphql
type WebhookDryRun {
  payload: JSONString
  errors: [WebhookDryRunError!]!
}
```

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

### Arguments

<a id="object-id"></a>

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

The ID of an object to serialize.

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

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

The subscription query that defines the webhook event and its payload.

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

### Type

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

#### [`WebhookDryRun`](/api-reference/webhooks/objects/webhook-dry-run.md)

Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.

Requires the AUTHENTICATED\_STAFF\_USER permission.
