Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Receive GitHub webhook

POSThttps://api.butterix.com/v1/webhooks/github/:siteId

Called by GitHub (or a compatible Git service). No API authentication, but it must carry a valid X-Hub-Signature-256 signature (HMAC-SHA256 with the site's webhook secret).

  • push to the production branch → production deployment.
  • pull_request with opened / synchronize / reopened → preview deployment of that branch.
  • ping → { ok: true }; other events → { ignored: true }.

Path parameters

siteIdstringRequired

Site id (not the slug)

Headers

X-GitHub-EventenumRequired
Allowed values:
X-Hub-Signature-256stringRequired

Request

This endpoint expects an object.
refstringOptional
afterstringOptional
head_commitobjectOptional
messagestringOptional
actionstringOptional
pull_requestobjectOptional
numberintegerOptional
titlestringOptional
headobjectOptional
refstringOptional
shastringOptional

Response

A ping, or an ignored event
okbooleanOptional
ignoredbooleanOptional

Errors