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 | Type | Description |
---|---|---|
id |
Optional[str] | The ID of the subscription. Read-only field. |
webhook_url |
Optional[str] | The URL to which notifications are sent. |
event_type |
Optional[EventType] | The event type. |
pool_id |
Optional[str] | The ID of the pool that the subscription was created for. |
created |
Optional[datetime] | The UTC date and time when the subscription was created. Read-only field. |