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
)

Webhook subscription to make a callback to the given address when some event happen.

Parameters Description

ParametersTypeDescription
webhook_urlOptional[str]

The URL to which notifications will be sent.

event_typeOptional[EventType]

Event type.

pool_idOptional[str]

ID of the pool for which the subscription was created.

idOptional[str]

Pool ID. Read-only field.

createdOptional[datetime]

When this pool was created. Read-only field.

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