WebhookSubscription

toloka.client.webhook_subscription.WebhookSubscription | Source code

WebhookSubscription(
self,
*,
webhook_url: Optional[str] = None,
event_type: Union[EventType, str, None] = None,
pool_id: Optional[str] = None,
secret_key: Optional[str] = None,
id: Optional[str] = None,
created: Optional[datetime] = None
)

A subscription to an event in Toloka.

For examples, you can receive notifications when a pool is closed or a task's status changes. Learn more about notifications.

Parameters description

ParametersTypeDescription
idOptional[str]

The ID of the subscription. Read-only field.

webhook_urlOptional[str]

The URL to which notifications are sent.

event_typeOptional[EventType]

The event type.

pool_idOptional[str]

The ID of the pool that the subscription was created for.

createdOptional[datetime]

The UTC date and time when the subscription was created. Read-only field.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming