List available webhook event types
/api/v1/orgs/{org_id}/webhooks/eventsReturns the catalogue of webhook event types supported by LearnHouse along with their descriptions.
{}Register HTTP endpoints that receive event notifications from LearnHouse.
/api/v1/orgs/{org_id}/webhooks/eventsReturns the catalogue of webhook event types supported by LearnHouse along with their descriptions.
{}/api/v1/orgs/{org_id}/webhooksReturns all webhook endpoints configured for the given organization.
org_idintegerrequiredWebhookEndpointRead[] — List of webhook endpoints
idintegerrequiredwebhook_uuidstringrequiredorg_idintegerrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredis_activebooleanrequiredhas_secretbooleansourcestringzap_namestring | nullzap_idstring | nullcreated_by_user_idintegerrequiredcreation_datestringrequiredupdate_datestringrequired401 Authentication required403 User lacks permission to view webhooks for this organization404 Organization not found422 Validation Error — HTTPValidationError[
{
"id": 1,
"webhook_uuid": "string",
"org_id": 1,
"url": "https://example.com",
"description": "An example description",
"events": [
"string"
],
"is_active": false,
"has_secret": true,
"source": "manual",
"zap_name": "Example name",
"zap_id": "string",
"created_by_user_id": 1,
"creation_date": "string",
"update_date": "string"
}
]/api/v1/orgs/{org_id}/webhooksCreates a new webhook endpoint for the organization. The signing secret is only returned once upon creation and cannot be retrieved later; store it securely.
org_idintegerrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredWebhookEndpointCreatedResponse — Webhook endpoint created; signing secret included
webhook_uuidstringrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredis_activebooleanrequiredsecretstringrequiredcreated_by_user_idintegerrequiredcreation_datestringrequired401 Authentication required403 User lacks permission to manage webhooks for this organization404 Organization not found422 Validation Error — HTTPValidationError{
"webhook_uuid": "string",
"url": "https://example.com",
"description": "An example description",
"events": [
"string"
],
"is_active": false,
"secret": "string",
"created_by_user_id": 1,
"creation_date": "string"
}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}Returns details of a specific webhook endpoint by its UUID.
org_idintegerrequiredwebhook_uuidstringrequiredWebhookEndpointRead — Webhook endpoint details
idintegerrequiredwebhook_uuidstringrequiredorg_idintegerrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredis_activebooleanrequiredhas_secretbooleansourcestringzap_namestring | nullzap_idstring | nullcreated_by_user_idintegerrequiredcreation_datestringrequiredupdate_datestringrequired401 Authentication required403 User lacks permission to view this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError{
"id": 1,
"webhook_uuid": "string",
"org_id": 1,
"url": "https://example.com",
"description": "An example description",
"events": [
"string"
],
"is_active": false,
"has_secret": true,
"source": "manual",
"zap_name": "Example name",
"zap_id": "string",
"created_by_user_id": 1,
"creation_date": "string",
"update_date": "string"
}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}Updates mutable fields of a webhook endpoint (URL, subscribed events, active flag).
org_idintegerrequiredwebhook_uuidstringrequiredurlstring | nulldescriptionstring | nulleventsstring[] | nullis_activeboolean | nullWebhookEndpointRead — Webhook endpoint updated
idintegerrequiredwebhook_uuidstringrequiredorg_idintegerrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredis_activebooleanrequiredhas_secretbooleansourcestringzap_namestring | nullzap_idstring | nullcreated_by_user_idintegerrequiredcreation_datestringrequiredupdate_datestringrequired401 Authentication required403 User lacks permission to modify this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError{
"id": 1,
"webhook_uuid": "string",
"org_id": 1,
"url": "https://example.com",
"description": "An example description",
"events": [
"string"
],
"is_active": false,
"has_secret": true,
"source": "manual",
"zap_name": "Example name",
"zap_id": "string",
"created_by_user_id": 1,
"creation_date": "string",
"update_date": "string"
}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}Deletes a webhook endpoint along with all of its delivery logs.
org_idintegerrequiredwebhook_uuidstringrequired401 Authentication required403 User lacks permission to delete this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError{}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}/regenerate-secretRegenerates the signing secret for a webhook endpoint. The new secret is only returned once and must be stored securely.
org_idintegerrequiredwebhook_uuidstringrequiredWebhookEndpointCreatedResponse — Webhook signing secret regenerated
webhook_uuidstringrequiredurlstringrequireddescriptionstring | nulleventsstring[]requiredis_activebooleanrequiredsecretstringrequiredcreated_by_user_idintegerrequiredcreation_datestringrequired401 Authentication required403 User lacks permission to manage this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError{
"webhook_uuid": "string",
"url": "https://example.com",
"description": "An example description",
"events": [
"string"
],
"is_active": false,
"secret": "string",
"created_by_user_id": 1,
"creation_date": "string"
}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}/testSends a synthetic 'ping' event to the webhook endpoint to verify it is reachable and correctly configured.
org_idintegerrequiredwebhook_uuidstringrequired401 Authentication required403 User lacks permission to manage this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError{}/api/v1/orgs/{org_id}/webhooks/{webhook_uuid}/deliveriesReturns recent webhook delivery attempts and their outcomes for the specified endpoint, up to the requested limit.
org_idintegerrequiredwebhook_uuidstringrequiredlimitintegerWebhookDeliveryLogRead[] — List of webhook delivery log entries
idintegerrequiredwebhook_idintegerrequiredevent_namestringrequireddelivery_uuidstringrequiredrequest_payloadRequest Payload | nullresponse_statusinteger | nullresponse_bodystring | nullsuccessbooleanrequiredattemptintegerrequirederror_messagestring | nullcreated_atstringrequired401 Authentication required403 User lacks permission to view this webhook404 Webhook endpoint not found422 Validation Error — HTTPValidationError[
{
"id": 1,
"webhook_id": 1,
"event_name": "Example name",
"delivery_uuid": "string",
"request_payload": {},
"response_status": 0,
"response_body": "string",
"success": false,
"attempt": 0,
"error_message": "string",
"created_at": "string"
}
]