Webhooks

Stoaken sends a signed HTTP POST when a release is submitted, published or rejected, so your pipeline can rebuild, notify or deploy.

Set up

Brand Admins add endpoints in Settings > Webhooks (or through the API and MCP). Choose the events, copy the signing secret (shown once), and use Send test to check your receiver. Webhooks are part of the Team plan.

Events

  • release.pending_approval
    Sent when
    A release is submitted for review.
  • release.published
    Sent when
    A release is approved and goes live.
  • release.rejected
    Sent when
    A reviewer rejects a release.
EventSent when
release.pending_approvalA release is submitted for review.
release.publishedA release is approved and goes live.
release.rejectedA reviewer rejects a release.
Body (release.published)
{
  "type": "release.published",
  "timestamp": "2026-10-08T09:30:00.000Z",
  "data": {
    "event_id": "…",
    "release_id": "…",
    "theme_id": "…",
    "brand_id": "…",
    "version": "1.4.0",
    "status": "published",
    "previous_status": "pending_approval",
    "is_exception": false,
    "changes": { "total": 6, "added": 1, "changed": 3, "renamed": 1, "removed": 1, "deprecated": 0, "no_longer_deprecated": 0, "breaking": 2 },
    "is_breaking": true
  }
}

Release events carry changes: the release counted by kind, the same way the app counts them (breaking is how many are removed or renamed). For the changes themselves, mode by mode, call GET /api/releases/{release_id}/changes.

Verify signatures

Deliveries follow Standard Webhooks: headers webhook-id, webhook-timestamp and webhook-signature (v1,<base64 HMAC-SHA256> of id.timestamp.body, keyed by the bytes after whsec_). Any Standard Webhooks library works, or:

verify.js (Node)
import { createHmac, timingSafeEqual } from 'node:crypto'

export function verify(secret, headers, rawBody) {
  const id = headers['webhook-id']
  const ts = Number(headers['webhook-timestamp'])
  if (Math.abs(Date.now() / 1000 - ts) > 300) return false // replay window
  const key = Buffer.from(secret.slice('whsec_'.length), 'base64')
  const expected = createHmac('sha256', key).update(`${id}.${ts}.${rawBody}`).digest()
  return headers['webhook-signature'].split(' ').some((part) => {
    const [version, sig] = part.split(',')
    const got = Buffer.from(sig ?? '', 'base64')
    return version === 'v1' && got.length === expected.length && timingSafeEqual(got, expected)
  })
}
Verify against the raw request body, before any JSON parsing.

Start a pipeline

Pick the tool under Which tool? when you add a webhook: Stoaken sets the request shape and the events for it (a deploy hook only takes Release published), and spots a known address when you paste one. These go out as:

  • GitLab
    Sent as
    Stoaken event
    Address
    https://gitlab.com/api/v4/projects/ID/ref/main/trigger/pipeline?token=…
  • Azure DevOps
    Sent as
    Stoaken event
    Address
    https://dev.azure.com/ORG/_apis/public/distributedtask/webhooks/NAME?api-version=6.0-preview
  • Vercel
    Sent as
    Stoaken event
    Address
    The Deploy Hook URL
  • Netlify
    Sent as
    Stoaken event
    Address
    https://api.netlify.com/build_hooks/ID
  • Cloudflare Pages or Workers
    Sent as
    Stoaken event
    Address
    The Deploy Hook URL
  • GitHub
    Sent as
    GitHub repository dispatch
    Address
    https://api.github.com/repos/OWNER/REPO/dispatches
  • Bitbucket
    Sent as
    Bitbucket Pipelines run
    Address
    https://api.bitbucket.org/2.0/repositories/WS/REPO/pipelines/
Which tool?Sent asAddress
GitLabStoaken eventhttps://gitlab.com/api/v4/projects/ID/ref/main/trigger/pipeline?token=…
Azure DevOpsStoaken eventhttps://dev.azure.com/ORG/_apis/public/distributedtask/webhooks/NAME?api-version=6.0-preview
VercelStoaken eventThe Deploy Hook URL
NetlifyStoaken eventhttps://api.netlify.com/build_hooks/ID
Cloudflare Pages or WorkersStoaken eventThe Deploy Hook URL
GitHubGitHub repository dispatchhttps://api.github.com/repos/OWNER/REPO/dispatches
BitbucketBitbucket Pipelines runhttps://api.bitbucket.org/2.0/repositories/WS/REPO/pipelines/

GitHub and Bitbucket need their own request body and an access token. Stoaken stores the token encrypted, never shows it again, and sends it only to that host’s API address. Those requests carry webhook-id but no Stoaken signature, because the host checks the token instead. GitHub receives event_type: stoaken-release-published with the release in client_payload. Bitbucket runs the custom pipeline stoaken-release with STOAKEN_EVENT, STOAKEN_RELEASE_ID and STOAKEN_VERSION. Pair a webhook with stoaken export in CI.

Chat and issue trackers

Stoaken can also write the message itself. Pick the app under Which tool? and paste the address it gives you:

  • Slack message
    Address
    https://hooks.slack.com/services/T…/B…/…
    Sends
    A Block Kit message with a link to the release. Any of the three events.
  • Microsoft Teams card
    Address
    https://….environment.api.powerplatform.com/powerautomate/…/invoke?…
    Sends
    An Adaptive Card from a Teams workflow (“When a Teams webhook request is received”). Any event.
  • Discord message
    Address
    https://discord.com/api/webhooks/ID/TOKEN
    Sends
    An embed, with mentions switched off. Any event.
  • Jira issue
    Address
    https://SITE.atlassian.net/rest/api/3/issue
    Sends
    A new issue in your project when a release is submitted for review.
  • Linear issue
    Address
    https://api.linear.app/graphql
    Sends
    A new issue for your team when a release is submitted for review.
Sent asAddressSends
Slack messagehttps://hooks.slack.com/services/T…/B…/…A Block Kit message with a link to the release. Any of the three events.
Microsoft Teams cardhttps://….environment.api.powerplatform.com/powerautomate/…/invoke?…An Adaptive Card from a Teams workflow (“When a Teams webhook request is received”). Any event.
Discord messagehttps://discord.com/api/webhooks/ID/TOKENAn embed, with mentions switched off. Any event.
Jira issuehttps://SITE.atlassian.net/rest/api/3/issueA new issue in your project when a release is submitted for review.
Linear issuehttps://api.linear.app/graphqlA new issue for your team when a release is submitted for review.

Messages read like Release v1.4.0 of Brand · Theme needs review (or is live, was rejected with the reviewer’s reason), with the change count and an Open in Stoaken link. Slack, Teams and Discord addresses carry their own secret, so treat them like passwords: anyone with one can post. Those requests carry webhook-id but no Stoaken signature. Teams needs a Workflows address: Office 365 connector addresses (webhook.office.com) stopped working in May 2026 and are refused.

Jira takes the email of the Atlassian account and an API token (sent as Basic auth), a project key and an issue type. A token with scopes needs read:jira-work and write:jira-work and the https://api.atlassian.com/ex/jira/CLOUD-ID/rest/api/3/issue address. Linear takes a personal API key and the team’s id. Both are stored encrypted, never shown again, and only sent to that address. Issue trackers only act on release.pending_approval: they don’t comment on or close the issue when the release is published or rejected. Send test checks the connection without creating an issue (Jira reads the project and its issue types; Linear looks up the team), and Linear answers that come back as errors with HTTP 200 count as failures.

Every format is pinned to its host’s address, in the app and by a database check, so a stored token or a message can only go where it was meant to.

Retries and health

A delivery counts as received on any 2xx response. Otherwise Stoaken retries with backoff. After repeated final failures an endpoint is switched off automatically; Settings > Webhooks shows why, and turning it back on resumes deliveries. Send test sends a ping event with the same signing.

Rotating secrets

Rotate secret shows a new secret once. For 24 hours deliveries carry two signatures (new and old), so you can update your receiver without missing events.

Was this page useful?