Skip to main content

Webhooks

Trigger Afterlane automatically after your deploy succeeds.

Deploy trigger flow

The webhook only queues a verification run. The worker performs the browser checks separately.

The normal setup is:

  1. Copy the project webhook URL from the Webhook tab on the project detail page.
  2. Store AFTERLANE_PROJECT_ID and AFTERLANE_WEBHOOK_SECRET in your CI secrets.
  3. Fire the webhook after a successful deploy step.

What the webhook does

  • validates the project secret
  • queues a run with the webhook trigger
  • hands off execution to the worker

GitHub Actions example

- name: Trigger Afterlane verification
  if: success()
  run: |
    curl -X POST "https://afterlane.co/api/webhooks/deploy/${{ secrets.AFTERLANE_PROJECT_ID }}"       -H "Content-Type: application/json"       -H "X-Afterlane-Webhook-Secret: ${{ secrets.AFTERLANE_WEBHOOK_SECRET }}"       -d '{
        "provider": "github_actions",
        "branch": "${{ github.ref_name }}",
        "commitSha": "${{ github.sha }}",
        "repository": "${{ github.repository }}",
        "workflow": "${{ github.workflow }}"
      }'