Create
POST
Creates an outbound webhook endpoint for a public https URL and returns it with its signing secret, shown only in this response. Requires org admin.
bearerAuthheader
AuthorizationBearer <token>An API key created in Capy under Settings → API.
application/json- body
url*stringAn https URL that resolves to a public address. Capy posts every event here.
Length
1 <= length <= 2048description?stringLength
length <= 255WebhookEndpointCreated
application/json- response
id*stringMatch
^whe_Length
15 <= length <= 30url*stringAn https URL that resolves to a public address. Capy posts every event here.
Length
1 <= length <= 2048description*|nullenabled*booleancreatedAt*stringupdatedAt*stringsecret*stringThe signing secret, shown once here and once more on rotate. Verify Capy-Signature with it.
curl -X POST "https://api.capy.ai/api/v1/webhooks" \ -H "Authorization: Bearer $CAPY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"<url>"}'{ "id": "stringstringstr", "url": "string", "description": "string", "enabled": true, "createdAt": "string", "updatedAt": "string", "secret": "string"}