POST
/
api
/
v2
/
webhooks
curl --request POST \
  --url https://app.govly.com/api/v2/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "headers": {}
}'

This endpoint creates a new webhook subscription.

Request Body

url
string
required

The URL that will receive webhook events

events
string[]
required

Array of event types to subscribe to

headers
object

Optional custom headers to include with webhook requests

This endpoint is part of the legacy v2 API and will be deprecated in the future. Please migrate to the new enterprise API endpoints.