Skip to main content
Webhooks stream real-time events from Gork directly to your agent endpoints, orchestrators, or serverless functions.

Subscribed Event Types

Registering a Webhook

You can register webhooks via the Dashboard or programmatically via the API:
cURL
Response
Save the secret immediately. It is only returned once upon creation and is used to compute HMAC-SHA256 signatures.

Payload Schema (email.received)

sender classifies who is on the other end — human, agent, or automated — based on automation headers such as Auto-Submitted, X-Autoreply, and Precedence, plus out-of-office subject patterns. Use it to branch your workflow: an automated sender is usually an out-of-office reply, not a human waiting for an answer.

Security & Verification

Every webhook request contains the header:
  • X-Gork-Signature: t=1757248496,v1=a987ef...
See Verify webhook requests for reference implementations in Node.js and Python (plus SDK helpers).

Retries & Delivery Guarantees

If your endpoint returns any HTTP status outside of 200-299, Gork retries delivery using exponential backoff:
  1. Attempt 1: Immediate
  2. Attempt 2: 30 seconds
  3. Attempt 3: 2 minutes
  4. Attempt 4: 10 minutes
  5. Attempt 5: 1 hour
4xx responses are treated as terminal — they are your endpoint’s explicit rejection, so they are not retried. After 5 failed attempts the webhook is logged as failed in your organization dashboard.