Malaleem API
PUT /api/v1/gateway/webhook

Set your webhook URL

Change where the calling API key sends webhooks (`GET` the same path to read it). Must be an https URL on a public host; blank turns webhooks off. In-flight sessions follow the new address. Signed-in merchants can do the same with `PATCH /api/v1/merchant/api-keys/:id`. Both answer `{data: {object: "api_key", key_id, mode, label, webhook_url, status, merchant_code, merchant_name}}` — `merchant_code` is the six-digit code other merchants pay this one by (given on first ask), so a platform holding a merchant's key can learn it.

Parameters

webhook_url string · required

https://… endpoint that receives signed events.

label string

Rename the key.

curl -X PUT https://malaleem.com/api/v1/gateway/webhook \
  -H "Authorization: Bearer {key_id}:{secret}" \
  -H "Content-Type: application/json" \
  -d '{"webhook_url":"https://store.example/webhooks/malaleem"}'