cURL
curl --request POST \ --url https://cds.marmar.life/v1/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "url": "<string>", "events": [ "<string>" ] } '
{ "webhook": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "url": "<string>", "events": [ "assessment.completed" ], "status": "active", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }, "secret": "<string>" }
Creates a webhook with an auto-generated secret. The secret is only returned in this response.
API key obtained from the Tenant Dashboard. Use as Authorization: Bearer YOUR_API_KEY
Human-readable name for this webhook
1 - 128
URL to receive webhook deliveries
Event types to subscribe to (defaults to ["assessment.completed"])
Webhook created
Show child attributes
Auto-generated secret. Store securely - not shown again.