cURL
curl --request PUT \ --url https://cds.marmar.life/v1/tenants/webhook \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --header 'X-Tenant-Code: <api-key>' \ --data ' { "webhookUrl": "<string>", "webhookSecret": "<string>" } '
{ "message": "Webhook configured successfully" }
Tenant slug returned during registration.
Tenant API key. The server also accepts the lowercase x-api-key header for convenience.
x-api-key
Providing null clears the existing configuration. Either both fields should be supplied or both should be set to null.
null
8
Webhook configuration updated
"Webhook configured successfully"