# Notifications Configure and test webhook/email notifications for sync events. ## Get notification config Returns the notification configuration for the workspace. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). ## Update notification config Set webhook or email notification rules for sync events. #### Request Body **`notifications`** array required Array of notification rules (webhook URL, email, event types, etc.). ## Test notification delivery Send a test notification to verify delivery. #### Request Body **`notification_type`** string required Type to test (e.g., `webhook`, `email`). **`url`** string optional Webhook URL to test. ## Returns A notification config object containing a `notifications` array. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/notifications" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") config = client.knowledge_connectors.get_notifications( organization_id="org_xyz789", ) print(config) ``` ```python Python import requests org_id = "org_xyz789" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/connectors/notifications" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/notifications", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "notifications": [ { "type": "webhook", "url": "https://example.com/hooks/sync-events", "events": ["sync_succeeded", "sync_failed"] } ] } ``` ```json 4xx Error { "success": false, "error": { "code": "CONNECTOR_INVALID_CONFIG", "message": "The connector configuration is invalid.", "type": "client_error", "status": 400, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-12-22T15:30:00Z" } } ``` ## Related Resources - [Manage Jobs](/docs/api-reference/knowledge-connectors/jobs) - [Manage Connections](/docs/api-reference/knowledge-connectors/connections)