# WebhookDispatchCollectionClientAsync<!-- -->

Sub-client for the webhook dispatch collection.

Provides methods to manage webhook dispatches, e.g. list them. Obtain an instance via an appropriate method on the `ApifyClientAsync` class.

### Hierarchy

* [ResourceClientAsync](https://docs.apify.com/api/client/python/reference/class/ResourceClientAsync.md)
  * *WebhookDispatchCollectionClientAsync*

## Index[](#Index)

### Methods

* [\_\_init\_\_](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchCollectionClientAsync.md#__init__)
* [iterate](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchCollectionClientAsync.md#iterate)
* [list](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchCollectionClientAsync.md#list)

### Properties

* [resource_id](https://docs.apify.com/api/client/python/reference/class/WebhookDispatchCollectionClientAsync.md#resource_id)

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

### [](#__init__)\_\_init\_\_

* **\_\_init\_\_**(\*, base_url, public_base_url, http_client, resource_path, client_registry, resource_id, params, api_base_url): None

- Overrides [ResourceClientAsync.\_\_init\_\_](https://docs.apify.com/api/client/python/reference/class/ResourceClientAsync.md#__init__)

  Initialize the resource client.

  ***

  #### Parameters

  * ##### keyword-onlybase_url: str

    API base URL.

  * ##### keyword-onlypublic_base_url: str

    Public CDN base URL.

  * ##### keyword-onlyhttp_client: [HttpClientAsync](https://docs.apify.com/api/client/python/reference/class/HttpClientAsync.md)

    HTTP client for making requests.

  * ##### keyword-onlyresource_path: str

    Resource endpoint path (e.g., 'actors', 'datasets').

  * ##### keyword-onlyclient_registry: [ClientRegistryAsync](https://docs.apify.com/api/client/python/reference/class/ClientRegistryAsync.md)

    Bundle of client classes for dependency injection.

  * ##### optionalkeyword-onlyresource_id: str | None = <!-- -->None

    Optional resource ID for single-resource clients.

  * ##### optionalkeyword-onlyparams: [QueryParams](https://docs.apify.com/api/client/python/reference.md#QueryParams) | None = <!-- -->None

    Optional default parameters for all requests.

  * ##### optionalkeyword-onlyapi_base_url: str | None = <!-- -->None

    Base URL of the API itself, for clients of top-level resources. Defaults to `base_url`.

  #### Returns None

### [](#iterate)iterate

* **iterate**(\*, limit, offset, desc, chunk_size, timeout): AsyncIterator\[[WebhookDispatch](https://docs.apify.com/api/client/python/reference/class/WebhookDispatch.md)]

- Iterate over all webhook dispatches of a user.

  Simple `list` does only one API call, possibly not listing all items matching the criteria. This method returns an iterator that is capable of making multiple API calls to retrieve all items matching the criteria.

  <https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatches-collection/get-list-of-webhook-dispatches>

  ***

  #### Parameters

  * ##### optionalkeyword-onlylimit: int | None = <!-- -->None

    How many webhook dispatches to retrieve.

  * ##### optionalkeyword-onlyoffset: int | None = <!-- -->None

    What webhook dispatch to include as first when retrieving the list.

  * ##### optionalkeyword-onlydesc: bool | None = <!-- -->None

    Whether to sort the webhook dispatches in descending order based on the date of their creation.

  * ##### optionalkeyword-onlychunk_size: int | None = <!-- -->None

    Maximum number of webhook dispatches requested per API call when iterating across pages.

  * ##### optionalkeyword-onlytimeout: [Timeout](https://docs.apify.com/api/client/python/reference.md#Timeout) = <!-- -->'medium'

    Timeout for the API HTTP request.

  #### Returns AsyncIterator\[[WebhookDispatch](https://docs.apify.com/api/client/python/reference/class/WebhookDispatch.md)]

### [](#list)list

* async **list**(\*, limit, offset, desc, timeout): [ListOfWebhookDispatches](https://docs.apify.com/api/client/python/reference/class/ListOfWebhookDispatches.md)

- List all webhook dispatches of a user.

  <https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatches-collection/get-list-of-webhook-dispatches>

  ***

  #### Parameters

  * ##### optionalkeyword-onlylimit: int | None = <!-- -->None

    How many webhook dispatches to retrieve.

  * ##### optionalkeyword-onlyoffset: int | None = <!-- -->None

    What webhook dispatch to include as first when retrieving the list.

  * ##### optionalkeyword-onlydesc: bool | None = <!-- -->None

    Whether to sort the webhook dispatches in descending order based on the date of their creation.

  * ##### optionalkeyword-onlytimeout: [Timeout](https://docs.apify.com/api/client/python/reference.md#Timeout) = <!-- -->'medium'

    Timeout for the API HTTP request.

  #### Returns [ListOfWebhookDispatches](https://docs.apify.com/api/client/python/reference/class/ListOfWebhookDispatches.md)

  The retrieved webhook dispatches of a user.

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

### [](#resource_id)resource_id

resource_id: str | None

Inherited from [ResourceClientBase.resource_id](https://docs.apify.com/api/client/python/reference/class/ResourceClientBase.md#resource_id)

Get the resource ID.
