You can use the below placeholders in webhook URL, request body
and header values. {% site_name %} will replace the placeholders
with the correct values.
$CODE |
The UUID code of the check. |
$NAME |
Name of the check. |
$NAME_JSON |
Name of the check, encoded as JSON string. If
the check's name contains a double quote, this would produce
invalid JSON:
{"name": "$NAME"}
But this would work:
{"name": $NAME_JSON}
|
$SLUG |
Check's slug. |
$NOW |
Current UTC time in ISO8601 format. Example:
"{% now_isoformat %}"
|
$STATUS |
Check's current status ("up" or "down"). |
$TAGS |
Check's tags, separated by spaces. |
$TAG1, $TAG2, … |
Value of the first tag, the second tag, … |
$BODY |
The request body of the most recent ping. Works only in the webhook's "Request Body" field. |
$BODY_JSON |
Same as $BODY, but encoded as JSON string. |
$EXITSTATUS |
The exit status value of the most recent ping. Default value: "-1". |
$JSON |
A JSON representation of the check.
The JSON document has the same fields as the
Get a Single Check
API response. You can nest $JSON in your own JSON structure, example:
{"now": "$NOW", "check": $JSON}
The resulting payload would be:
{"now": "{% now_isoformat %}", "check": {"name": "Foo", "slug": "foo", ... }}
|