Register a webhook endpoint
Registers an https endpoint. The host you register through decides its environment: an endpoint registered on sandbox.capvant.com only ever receives test deals; one registered on api.capvant.com receives every deal. New endpoints receive the full deal object in every delivery (payload: full) unless you choose reference.
Authorization
ApiKeyAuth Lender keys start with cv_live_; Partner keys start with cv_pk_. Shown once at creation, sent on every request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://sandbox.capvant.com/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{ "id": "string", "url": "http://example.com", "events": [ "deal.created" ], "active": true, "created_at": "2019-08-24T14:15:22Z", "last_success_at": "2019-08-24T14:15:22Z", "last_failure_at": "2019-08-24T14:15:22Z", "failure_count": 0, "payload": "full", "environment": "live", "secret": "string"}