Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://identity.contra.id/v1/webhook-destinations
Register a new endpoint to receive Contra events.
curl -X POST https://identity.contra.id/v1/webhook-destinations \ -H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \ -d '{ "url": "https://yourapp.com/contra/webhook", "version": "v3", "events": ["session.status_changed", "agent.revoked"] }'
url
version
v3
v2
v1
events
{ "uuid": "whd_b3f1…", "url": "https://yourapp.com/contra/webhook", "secret": "whsec_a1b2c3d4e5f6g7h8i9j0…", "version":"v3", "active": true }
secret