Skip to content

docs(webhooks): document API_CHECK_REQUEST_URL and API_CHECK_REQUEST_METHOD [RED-1432] - #878

Merged
carinaluise merged 5 commits into
mainfrom
carina/red-1432-webhook-request-vars-docs
Nov 26, 2026
Merged

carinaluise merged 5 commits into
mainfrom
carina/red-1432-webhook-request-vars-docs

Conversation

@carinaluise

Copy link
Copy Markdown
Contributor

Affected Components

  • Docs

Notes for the Reviewer

Adds the two webhook variables shipped in https://github.com/checkly/monorepo/pull/6948 and https://github.com/checkly/monorepo/pull/7034 (both on prod): what they hold, when they're empty and how the URL is escaped. Removes the paragraph that said they don't exist.

Part of RED-1432.

Testing

  • Checked against the code on monorepo main
  • Two real API check alerts on prod: URL, method and escaping in the webhook URL, query, header and body. The other cases come from the code and tests.
  • Anchor, link, frontmatter and snippet checks pass

@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Nov 26, 2026, 9:54 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@hlenke hlenke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge · Every claim I traced matches monorepo main; the three inline comments are optional wording fixes.

CI is green, the PR is mergeable, and main has not touched integrations/alerts/webhooks.mdx since this branch's merge base. #857 also edits this page (the RUN_LOCATION row), but on a different line, so either can land first.

Optional addition, not tied to a line: Test alert channel fills both variables from the example API check, so a test message shows GET https://api.checklyhq.com/v1/runtimes. One sentence saying so would save readers from wondering where that URL came from when they test a template.

Inline: 0 blockers, 0 important, 3 wording.

What I checked
  • Read the whole diff (one file, +13/−2) and the full page at the PR head.
  • gh pr checks 878: all checks pass. gh pr view: MERGEABLE, CLEAN. git log <base>..origin/main -- integrations/alerts/webhooks.mdx: no commits. Overlap: #857 edits the same file on another line.
  • Source, monorepo origin/main@1c75808be3 (includes the two PRs named in the description):
    • Webhook alert channel (apps/backend/api/src/common/services/alert-notification-service/channels/webhook/index.ts): the two variables are set only for API checks and URL monitors and left out for every other check type, so an account or check variable of the same name is used there. In the payload the URL gets its ", ', backtick, backslash, < and > percent-encoded; in the webhook URL, headers and query values it is inserted as stored. A missing or malformed stored request gives empty strings.
    • Its tests cover: last URL after a redirect, the percent-encoded %7B%7BBASE_URL%7D%7D/health form, HTML escaping with double braces (&amp;, &#x3D;), triple braces in JSON and Telegram bodies, and other check types leaving the names to account variables.
    • Go runner (apps/go-runner/check/api/api.go, secretsscrub.go): after a request error it stores the check's unrendered URL with secrets masked, empty when that URL does not parse; on a setup script failure it stores no request data. Query parameters are kept apart from the URL. {{GROUP_BASE_URL}} is replaced in the backend before the run (apps/backend/api/src/common/helpers/check-settings.ts).
    • platform/variables.mdx #overview lists the secret scrubbing exceptions the new bullet links to.
  • Could not verify: that ALERT_SSL alerts carry no request data and an empty CHECK_DESCRIPTION. The alert data is built from the check and its run data, and I did not find the SSL expiry path that creates it. The author reports two prod alerts for the main cases.
  • No end-to-end test: webhook delivery needs a failing check and an alert to be sent, which the local stack does not do on demand. I relied on the source and its unit tests instead.

Comment thread integrations/alerts/webhooks.mdx Resolved
Comment thread integrations/alerts/webhooks.mdx Resolved
Comment thread integrations/alerts/webhooks.mdx Resolved
carinaluise and others added 2 commits November 26, 2026 10:34
Co-authored-by: Hannes Lenke <hannes@lenke.at>
Co-authored-by: Hannes Lenke <hannes@lenke.at>
Co-authored-by: Hannes Lenke <hannes@lenke.at>
@carinaluise
carinaluise merged commit 55c3282 into main Nov 26, 2026
7 checks passed
@carinaluise
carinaluise deleted the carina/red-1432-webhook-request-vars-docs branch November 26, 2026 09:58

This branch was successfully deployed

1 active deployment
staging — 17cebab2 Deployed Nov 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants