Toloka documentation

find_webhook_subscriptions

toloka.client.TolokaClient.find_webhook_subscriptions

Finds all webhook-subscriptions that match certain rules

As a result, it returns an object that contains the first part of the found webhook-subscriptions and whether there are any more results. It is better to use the "get_webhook_subscriptions" method, they allow to iterate through all results and not just the first output.

Parameters Description

Parameters Type Description
event_type Optional[WebhookSubscription.EventType]

Event type.

pool_id Optional[str]

ID of the pool for which subscription information is requested.

id_lt Optional[str]

Subscriptions with an ID less than the specified value.

id_lte Optional[str]

Subscriptions with an ID less than or equal to the specified value.

id_gt Optional[str]

Subscriptions with an ID greater than the specified value.

id_gte Optional[str]

Subscriptions with an ID greater than or equal to the specified value.

created_lt Optional[datetime]

Subscriptions created before the specified date.

created_lte Optional[datetime]

Subscriptions created before or on the specified date.

created_gt Optional[datetime]

Subscriptions created after the specified date.

created_gte Optional[datetime]

Subscriptions created after or on the specified date.

sort Union[List[str], WebhookSubscriptionSortItems, None]

How to sort result. Defaults to None.

limit Optional[int]

Limit on the number of results returned. The maximum is 100 000. Defaults to None, in which case it returns first 50 results.