Skip to content

Webhooks

Receive a POST when a job completes: job.done.

Verify with HMAC using your secret.

Example (Python):

import hmac, hashlib

body = request.data
sig = request.headers.get('X-Signature')
calc = hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
assert hmac.compare_digest(sig, calc)