curl --request POST \
--url http://127.0.0.1:8787/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/webhooks/kayle",
"name": "<string>",
"enabled": true,
"subscribed_event_types": [
"verification.attempt.succeeded"
]
}
'{
"data": {
"endpoint": {
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"url": "<string>",
"enabled": true,
"subscribed_event_types": [
"verification.attempt.succeeded"
],
"created_at": "<string>",
"updated_at": "<string>",
"disabled_at": "<string>"
},
"signing_secret": "<string>"
},
"error": {}
}Create a webhook endpoint for the authenticated organization.
curl --request POST \
--url http://127.0.0.1:8787/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/webhooks/kayle",
"name": "<string>",
"enabled": true,
"subscribed_event_types": [
"verification.attempt.succeeded"
]
}
'{
"data": {
"endpoint": {
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"url": "<string>",
"enabled": true,
"subscribed_event_types": [
"verification.attempt.succeeded"
],
"created_at": "<string>",
"updated_at": "<string>",
"disabled_at": "<string>"
},
"signing_secret": "<string>"
},
"error": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.kayle.id/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The URL of the webhook endpoint. Must use https:// (http:// is only accepted for localhost in development).
"https://example.com/webhooks/kayle"
An optional display name for the webhook endpoint.
1 - 120Whether the endpoint should be enabled immediately. Defaults to true.
The event types this endpoint should receive.
verification.attempt.succeeded, verification.attempt.failed, verification.session.expired, verification.session.cancelled