Outbound Webhooks

You can specify hooks to trigger certain actions upon when an even occurs. To do so, head to your Application's Settings page and find the Outbound webhooks section.

Outbound webhook

Click Add new webhook to open the modal form.

Create Outbound webhook

Fill out the form and click on Create outbound webhook button.

Special variables for payload

When the Request method is selected as Post, you can specify the request payload. This field accepts a raw string that will be send to the request URL. You can use the following variables to customize the request payload.

VariableDescription
$SK_NOWAn ISO 8601 formatted time string. The time is computed when sending the webhook.
$SK_NOW_UNIXThe unix timestamp. The time is computed when sending the webhook.
$SK_APP_IDThe application id.
$SK_ENVIRONMENTThe environment name. When triggering an outbound webhook on publish, this is the name of the environment that the deployment is published to. Otherwise, it is the name of the environment which the build configuration is taken from.
$SK_DEPLOYMENT_IDThe deployment id.
$SK_DEPLOYMENT_ENDPOINTThe endpoint to preview the deployment.
$SK_DEPLOYMENT_LOGS_ENDPOINTThe endpoint to preview the deployment logs. You will need to be authenticated to visit this URL.
$SK_DEPLOYMENT_STATUSA string indicating the deployment status. It's either success or failed.