POST/v1/webhook_endpoints

Webhooks

Register HMAC-signed event delivery for run.completed, budget.exceeded, wallet.low, and more.

Request
HTTP
POST
URL
/v1/webhook_endpoints
Auth
api_key
Try it
curl https://api.fightclub.pro/v1/webhook_endpoints \
  -H "Authorization: Bearer $FC_API_KEY" \
  -d '{"url":"https://yourapp.com/wh/fc","events":["budget.exceeded","run.completed"]}'

Parameters

NameTypeDescription
url*stringReceiver URL.
events*arrayEvent types to subscribe to.
descriptionstringFree-form label.

Response fields

NameTypeDescription
idstringWebhook endpoint ID (wh_*).
secretstringHMAC signing secret (returned once on create).

Errors

  • 401invalid_api_key, Missing or revoked key.
  • 400invalid_url, URL must be https.

See the full error reference.

Examples