Subscribe an endpoint
Returns the signing secret exactly once. The URL must be a public https endpoint; loopback and private ranges are refused.
AuthorizationBearer <token>
An access token from POST /oauth/token. Valid for one hour. Preferred, because a leaked request log then exposes an hour rather than a permanent credential.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
Callbacks
Shell
curl -X POST "https://sandbox.capvant.com/webhook-subscriptions" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'JSON
{ "id": "string", "url": "string", "events": [ "lead.created" ], "active": true, "created_at": "string", "last_success_at": "string", "last_failure_at": "string", "failure_count": 0, "secret": "string", "signature_header": "string", "note": "string"}