API Docs / Operations / Webhooks / Create Webhook

Create Webhook

POST /tenants/{tenant}/webhooks

Adds a webhook and generates its secret. Every delivery carries X-Webhook-Signature (t={unix time},v1={hex HMAC-SHA256 of "{t}.{body}" with the secret}) and X-Webhook-Event.

Parameters

NameTypeDescription
tenant* path string

The tenant code (the organisation's URL stub)

The tenant code (the organisation's URL stub)

Request Body*

{
  "name": "string",
  "url": "string",
  "enabled": false,
  "events": [
    "TestWebhook"
  ]
}

Responses

201 Created
400 Bad Request
application/problem+json
401 Unauthorized – Invalid or missing API key
404 Not Found
application/problem+json