GitHub Webhook Payload Example

Use this GitHub webhook payload example to validate repository automation, CI triggers, and push event handling.

The sample demonstrates common event fields and headers you should inspect when debugging webhook failures.

Endpoint URL

https://hook-gt4z9s.fasthook.io/

Sample request (curl)

curl -X POST "https://hook-gt4z9s.fasthook.io/" \
  -H "Content-Type: application/json" \
  -H "X-GitHub-Event: push" \
  -H "X-Hub-Signature-256: sha256=***redacted***" \
  -d '{"ref":"refs/heads/main","repository":{"full_name":"acme/payments-api"}}'

Sample payload

{
  "ref": "refs/heads/main",
  "after": "5f6b7a",
  "repository": {
    "full_name": "acme/payments-api"
  },
  "pusher": {
    "name": "dev-user"
  }
}

Developer checks

  • Confirm `X-Hub-Signature-256` verification uses raw request body.
  • Filter by event type and branch before triggering heavy jobs.
  • Track GitHub delivery IDs to avoid duplicate automation runs.

Open full public hook page: /hooks/hook-github-demo