API ReferenceWebhooks

Create a webhook

POST

Create a webhook. Label Studio provides several out-of-the box webhook events, which you can find listed here: Available Label Studio webhooks.

If you want to create your own custom webhook, refer to Create custom events for webhooks in Label Studio.

Label Studio makes two main types of events available to integrate with webhooks: project-level task events and organization events. If you want to use organization-level webhook events, you will need to set LABEL_STUDIO_ALLOW_ORGANIZATION_WEBHOOKS=true.

Request

This endpoint expects an object.
url
stringRequired
URL of webhook
id
integerOptional
organization
integerOptional
project
integerOptional
send_payload
booleanOptional
If value is False send only action
send_for_all_actions
booleanOptional
If value is False - used only for actions from WebhookAction
headers
map from strings to anyOptional
Key Value Json of headers
is_active
booleanOptional
If value is False the webhook is disabled
actions
list of enumsOptional
created_at
datetimeOptional
Creation time
updated_at
datetimeOptional
Last update time

Response

This endpoint returns an object
url
string
URL of webhook
id
integerOptional
organization
integerOptional
project
integerOptional
send_payload
booleanOptional
If value is False send only action
send_for_all_actions
booleanOptional
If value is False - used only for actions from WebhookAction
headers
map from strings to anyOptional
Key Value Json of headers
is_active
booleanOptional
If value is False the webhook is disabled
actions
list of enumsOptional
created_at
datetimeOptional
Creation time
updated_at
datetimeOptional
Last update time