BK Software
We do our best BK Software Ltd
0%

Webhooks

Webhooks let you receive real-time HTTP notifications when events occur in your account.

Registering a webhook

POST /v1/webhooks
{
  "url": "https://your-server.com/hook",
  "events": ["project.created", "invoice.paid", "api_key.revoked"],
  "secret": "your_signing_secret"
}

Verifying the signature

# Python example
import hmac, hashlib

def verify(payload, signature, secret):
    expected = hmac.new(secret.encode(), payload, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature)

Event types

EventTrigger
project.createdA new project is created
project.deletedA project is deleted
invoice.paidAn invoice is paid
api_key.revokedAn API key is revoked
user.invitedA team member is invited

Was this article helpful?