Create

POST
/api/v1/webhooks

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Request body

application/json
  1. body
url*string

An https URL that resolves to a public address. Capy posts every event here.

Length1 <= length <= 2048
description?string
Lengthlength <= 255

Response body

WebhookEndpointCreated

application/json
  1. response
id*string
Match^whe_
Length15 <= length <= 30
url*string

An https URL that resolves to a public address. Capy posts every event here.

Length1 <= length <= 2048
description*|null
enabled*boolean
createdAt*string
updatedAt*string
secret*string

The 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"}
Open in Capy