Creating Webhooks
Create webhooks viaPOST /v1/webhooks. The secret is auto-generated and returned only in the creation response:
secret securely—it won’t be shown again.
Managing Webhooks
| Endpoint | Description |
|---|---|
GET /v1/webhooks | List all webhooks |
GET /v1/webhooks/{id} | Get a specific webhook |
PATCH /v1/webhooks/{id} | Update name, URL, events, or status |
DELETE /v1/webhooks/{id} | Delete a webhook |
POST /v1/webhooks/{id}/regenerate-secret | Get a new secret (invalidates old) |
Status Values
active— Webhook receives deliveriespaused— Temporarily disableddisabled— Permanently disabled
Signature Verification
Each delivery includes headers:X-Marmar-Event: Event type (e.g.,assessment.completed)X-Marmar-Timestamp: Unix timestamp in secondsX-Marmar-Signature:v1=+ HMAC-SHA256 hex digestX-Marmar-Webhook-Id: ID of the webhook that triggered delivery