# WebhookResource<!-- -->

Represents a webhook configuration.

Webhooks send HTTP POST requests to specified URLs when certain events occur (e.g., Actor run succeeds, fails, or times out).

### Hierarchy

* Omit\<Schemas\[WebhookResource], keyof
  <!-- -->
  WebhookResourceRePointed>
* WebhookResourceRePointed
  * *WebhookResource*

## Index[](#Index)

### Properties

* [actionType](#actionType)
* [condition](#condition)
* [createdAt](#createdAt)
* [description](#description)
* [doNotRetry](#doNotRetry)
* [eventTypes](#eventTypes)
* [githubIssue](#githubIssue)
* [googleDrive](#googleDrive)
* [googleMail](#googleMail)
* [headersTemplate](#headersTemplate)
* [id](#id)
* [ignoreSslErrors](#ignoreSslErrors)
* [isAdHoc](#isAdHoc)
* [isApifyIntegration](#isApifyIntegration)
* [isEnabled](#isEnabled)
* [lastDispatch](#lastDispatch)
* [modifiedAt](#modifiedAt)
* [payloadTemplate](#payloadTemplate)
* [requestUrl](#requestUrl)
* [shouldInterpolateStrings](#shouldInterpolateStrings)
* [slackMessage](#slackMessage)
* [stats](#stats)
* [title](#title)
* [userId](#userId)

## Properties<!-- -->[](#Properties)

### [](#actionType)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5998)optionalinheritedactionType

actionType?

<!-- -->

: string

Inherited from Omit.actionType

```
HTTP_REQUEST
```

Type of action the webhook performs: `HTTP_REQUEST`, `SLACK_MESSAGE`, `GOOGLE_MAIL`, `GOOGLE_DRIVE` or `GITHUB_ISSUE`.

### [](#condition)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L797)inheritedcondition

condition: [WebhookCondition](https://docs.apify.com/api/client/js/reference.md#WebhookCondition)

Inherited from WebhookResourceRePointed.condition

### [](#createdAt)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5982)inheritedcreatedAt

createdAt: Date

Inherited from Omit.createdAt

Format: date-time

```
2019-12-12T07:34:14.202Z
```

### [](#description)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6027)optionalinheriteddescription

description?

<!-- -->

: null | string

Inherited from Omit.description

```
this is webhook description
```

### [](#doNotRetry)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6013)optionalinheriteddoNotRetry

doNotRetry?

<!-- -->

: null | boolean

Inherited from Omit.doNotRetry

```
false
```

### [](#eventTypes)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L800)inheritedeventTypes

eventTypes: [WebhookEventType](https://docs.apify.com/api/client/js/reference.md#WebhookEventType)\[]

Inherited from WebhookResourceRePointed.eventTypes

### [](#githubIssue)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6031)optionalinheritedgithubIssue

githubIssue?

<!-- -->

: { body?

<!-- -->

: string; repository?

<!-- -->

: string; title?

<!-- -->

: string; userIntegrationId?

<!-- -->

: string }

Inherited from Omit.githubIssue

#### Type declaration

* ##### optionalbody?<!-- -->: string

  ```
  Actor run {{resource.id}} failed.
  ```

* ##### optionalrepository?<!-- -->: string

  ```
  apify/apify-docs
  ```

* ##### optionaltitle?<!-- -->: string

  ```
  Actor run failed
  ```

* ##### optionaluserIntegrationId?<!-- -->: string

  ```
  kLcd8Z4dzXN1z3QzS
  ```

### [](#googleDrive)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6030)optionalinheritedgoogleDrive

googleDrive?

<!-- -->

: { filename?

<!-- -->

: string; format?

<!-- -->

: null | string; transformation?

<!-- -->

: { fields?

<!-- -->

: string\[]; omit?

<!-- -->

: string\[] }; userIntegrationId?

<!-- -->

: string }

Inherited from Omit.googleDrive

#### Type declaration

* ##### optionalfilename?<!-- -->: string

  ```
  results
  ```

* ##### optionalformat?<!-- -->: null | string

  ```
  json
  ```

* ##### optionaltransformation?<!-- -->: { fields?<!-- -->: string\[]; omit?<!-- -->: string\[] }

  * ##### optionalfields?<!-- -->: string\[]

    ```
    [

          "title",

          "url"

        ]
    ```

  * ##### optionalomit?<!-- -->: string\[]

    ```
    [

          "html"

        ]
    ```

* ##### optionaluserIntegrationId?<!-- -->: string

  ```
  kLcd8Z4dzXN1z3QzS
  ```

### [](#googleMail)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6029)optionalinheritedgoogleMail

googleMail?

<!-- -->

: { attachmentFormat?

<!-- -->

: null | string; attachmentTransformation?

<!-- -->

: { fields?

<!-- -->

: string\[]; omit?

<!-- -->

: string\[] }; body?

<!-- -->

: string; emailTo?

<!-- -->

: string\[]; subject?

<!-- -->

: string; userIntegrationId?

<!-- -->

: string }

Inherited from Omit.googleMail

#### Type declaration

* ##### optionalattachmentFormat?<!-- -->: null | string

  ```
  csv
  ```

* ##### optionalattachmentTransformation?<!-- -->: { fields?<!-- -->: string\[]; omit?<!-- -->: string\[] }

  * ##### optionalfields?<!-- -->: string\[]

    ```
    [

          "title",

          "url"

        ]
    ```

  * ##### optionalomit?<!-- -->: string\[]

    ```
    [

          "html"

        ]
    ```

* ##### optionalbody?<!-- -->: string

  ```
  Actor run {{resource.id}} finished.
  ```

* ##### optionalemailTo?<!-- -->: string\[]

  ```
  [

        "bob@example.com"

      ]
  ```

* ##### optionalsubject?<!-- -->: string

  ```
  Actor run finished
  ```

* ##### optionaluserIntegrationId?<!-- -->: string

  ```
  kLcd8Z4dzXN1z3QzS
  ```

### [](#headersTemplate)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6023)optionalinheritedheadersTemplate

headersTemplate?

<!-- -->

: null | string

Inherited from Omit.headersTemplate

```
{\n "Authorization": "Bearer ..."}
```

### [](#id)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5977)inheritedid

id: string

Inherited from Omit.id

```
YiKoxjkaS9gjGTqhF
```

### [](#ignoreSslErrors)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6011)inheritedignoreSslErrors

ignoreSslErrors: boolean

Inherited from Omit.ignoreSslErrors

```
false
```

### [](#isAdHoc)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5991)optionalinheritedisAdHoc

isAdHoc?

<!-- -->

: null | boolean

Inherited from Omit.isAdHoc

```
false
```

### [](#isApifyIntegration)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6000)optionalinheritedisApifyIntegration

isApifyIntegration?

<!-- -->

: null | boolean

Inherited from Omit.isApifyIntegration

```
false
```

### [](#isEnabled)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5993)optionalinheritedisEnabled

isEnabled?

<!-- -->

: boolean

Inherited from Omit.isEnabled

```
true
```

### [](#lastDispatch)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L799)optionalinheritedlastDispatch

lastDispatch?

<!-- -->

: null | [WebhookLastDispatch](https://docs.apify.com/api/client/js/reference/interface/WebhookLastDispatch.md)

Inherited from WebhookResourceRePointed.lastDispatch

### [](#modifiedAt)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5987)inheritedmodifiedAt

modifiedAt: Date

Inherited from Omit.modifiedAt

Format: date-time

```
2019-12-13T08:36:13.202Z
```

### [](#payloadTemplate)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6021)optionalinheritedpayloadTemplate

payloadTemplate?

<!-- -->

: null | string

Inherited from Omit.payloadTemplate

```
{\n "userId": {{userId}}...
```

### [](#requestUrl)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6019)optionalinheritedrequestUrl

requestUrl?

<!-- -->

: null | string

Inherited from Omit.requestUrl

Format: uri

```
http://example.com/
```

URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).

### [](#shouldInterpolateStrings)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6002)optionalinheritedshouldInterpolateStrings

shouldInterpolateStrings?

<!-- -->

: null | boolean

Inherited from Omit.shouldInterpolateStrings

```
false
```

### [](#slackMessage)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6028)optionalinheritedslackMessage

slackMessage?

<!-- -->

: { channelId?

<!-- -->

: string; messageTemplate?

<!-- -->

: string; userIntegrationId?

<!-- -->

: string }

Inherited from Omit.slackMessage

#### Type declaration

* ##### optionalchannelId?<!-- -->: string

  ```
  C01234ABCDE
  ```

* ##### optionalmessageTemplate?<!-- -->: string

  ```
  Actor run {{resource.id}} finished.
  ```

* ##### optionaluserIntegrationId?<!-- -->: string

  ```
  kLcd8Z4dzXN1z3QzS
  ```

### [](#stats)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L798)optionalinheritedstats

stats?

<!-- -->

: null | [WebhookStats](https://docs.apify.com/api/client/js/reference/interface/WebhookStats.md)

Inherited from WebhookResourceRePointed.stats

### [](#title)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L6025)optionalinheritedtitle

title?

<!-- -->

: null | string

Inherited from Omit.title

```
Notify on failure
```

### [](#userId)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5989)inheriteduserId

userId: string

Inherited from Omit.userId

```
wRsJZtadYvn4mBZmm
```
