# Kadoa Documentation > This file is very large and may be truncated. For an index of this content, please refer to https://docs.kadoa.com/llms.txt instead. # Answer an Agent question Source: https://docs.kadoa.com/api-reference/assistant/answer-question post /v5/agent/answer # Create or continue an Agent session Source: https://docs.kadoa.com/api-reference/assistant/create-or-continue-session post /v5/agent Creates a draft workflow-backed Assistant session. Explicit productType=realtime dispatches the Julie realtime lane after realtime notification settings are provisioned. # Get Agent pause state Source: https://docs.kadoa.com/api-reference/assistant/get-pause-state get /v5/agent/{sessionId}/pause-state # Get Agent strategy Source: https://docs.kadoa.com/api-reference/assistant/get-strategy get /v5/agent/data/{sessionId}/strategy Returns strategy null when the session exists but no build strategy is available yet. # Get Workflow Agent timeline Source: https://docs.kadoa.com/api-reference/assistant/get-workflow-timeline get /v5/agent/workflows/{workflowId}/timeline Returns user messages, Assistant messages, and clarification questions from the latest Lighthouse/Shelly or Julie customer thread. Internal and operations lanes are never selectable. # Interrupt an Agent session Source: https://docs.kadoa.com/api-reference/assistant/interrupt-session post /v5/agent/{sessionId}/interrupt # Resume an Agent session Source: https://docs.kadoa.com/api-reference/assistant/resume-session post /v5/agent/{sessionId}/resume Resumes with the persona persisted on the session, preserving Lighthouse versus Julie behavior. # Send a Workflow Agent message Source: https://docs.kadoa.com/api-reference/assistant/send-workflow-message post /v5/agent/workflows/{workflowId}/assistant/messages Bootstraps or reuses the workflow's customer Assistant session and enqueues update instructions without changing the workflow ID. # Stop an Agent session Source: https://docs.kadoa.com/api-reference/assistant/stop-session post /v5/agent/{sessionId}/stop # Delete data quality rules for a field Source: https://docs.kadoa.com/api-reference/data-quality/delete-field-rules delete /v4/workflows/{workflowId}/schema-validation-rules/{fieldName} Remove all data quality rules for a single schema field on a workflow # Get data quality rules Source: https://docs.kadoa.com/api-reference/data-quality/get-rules get /v4/workflows/{workflowId}/schema-validation-rules Retrieve the per-field data quality rules persisted on a workflow # Upsert data quality rules Source: https://docs.kadoa.com/api-reference/data-quality/upsert-rules put /v4/workflows/{workflowId}/schema-validation-rules Patch-merge the per-field data quality rules on a workflow; rules take effect on the next run # Introduction Source: https://docs.kadoa.com/api-reference/introduction Kadoa is built as an API-first platform. Everything you can do on your Kadoa Dashboard is also possible with our flexible API. ## Quickstart 1. Generate your API key from [Settings > General](https://www.kadoa.com/settings) 2. Create your first workflow on [Kadoa.com](https://www.kadoa.com/add) 3. Fetch the data by using our API. ## Authentication All API endpoints are authenticated using your workspace API key. ```json theme={null} "headers": { "x-api-key": "tk-your-api-key" } ``` > [!NOTE] > > **First time using the API?** You need to generate your API key first: > > 1. Go to [Settings > General](https://www.kadoa.com/settings) > 2. Click **Generate API Key** > 3. Copy and securely store your key (it starts with `tk-`) ## Unsupported workflows An endpoint answers `409` with the code `NOT_SUPPORTED_FOR_WORKFLOW` when it does not support the workflow it was given, and changes nothing: ```json theme={null} { "error": "NOT_SUPPORTED_FOR_WORKFLOW: workflow is not served by this entry point", "code": "NOT_SUPPORTED_FOR_WORKFLOW" } ``` A bulk operation reports such a workflow as its own result (`success: false`, `code: "NOT_SUPPORTED_FOR_WORKFLOW"`) and applies the action to the others. ## Temporarily unavailable workflows For some workflows, run, pause, resume and schedule changes (`updateInterval`, `schedules`, `timezone`, `weekdaysOnly` on `PUT /v4/workflows/{workflowId}/metadata`) are served by a separate workflow service. When it gives no answer, the endpoint says which of two things happened: * `503` with the code `NEXTGEN_UNAVAILABLE`: the request never reached the service, so nothing changed. Retry later. * `504` with the code `NEXTGEN_OUTCOME_UNKNOWN`: the request may have reached the service, so it may have been applied. For a run, check the workflow's runs before starting another one. Repeating a pause, resume or schedule change is safe: an applied change is not applied twice. ```json theme={null} { "error": "Next-gen workflows are unavailable. Please try again later.", "code": "NEXTGEN_UNAVAILABLE" } ``` A bulk operation reports each such workflow as its own result with one of those codes, or with `NEXTGEN_NOT_ATTEMPTED` when it was not sent because an earlier workflow of the same request got no answer (retry it). Its `summary` then also counts `unavailable`, `outcomeUnknown` and `notAttempted`. # Get all available locations Source: https://docs.kadoa.com/api-reference/locations/get-all-locations get /v4/locations # Get all data changes Source: https://docs.kadoa.com/api-reference/monitoring/get-all-changes get /v4/changes # Get data change by ID Source: https://docs.kadoa.com/api-reference/monitoring/get-change-by-id get /v4/changes/{changeId} # Create a new notification channel Source: https://docs.kadoa.com/api-reference/notifications/create-notification-channel post /v5/notifications/channels # Create a new notification settings Source: https://docs.kadoa.com/api-reference/notifications/create-notification-settings post /v5/notifications/settings # Delete a notification channel Source: https://docs.kadoa.com/api-reference/notifications/delete-notification-channel delete /v5/notifications/channels/{channelId} # Delete a notification settings Source: https://docs.kadoa.com/api-reference/notifications/delete-notification-settings delete /v5/notifications/settings/{settingsId} # Retrieve a specific event type details Source: https://docs.kadoa.com/api-reference/notifications/get-event-type get /v5/notifications/event-types/{eventType} # Retrieve all available notification event types Source: https://docs.kadoa.com/api-reference/notifications/get-event-types get /v5/notifications/event-types # Retrieve a specific notification channel Source: https://docs.kadoa.com/api-reference/notifications/get-notification-channel get /v5/notifications/channels/{channelId} # Retrieve all notification channels Source: https://docs.kadoa.com/api-reference/notifications/get-notification-channels get /v5/notifications/channels # Retrieve a specific notification settings Source: https://docs.kadoa.com/api-reference/notifications/get-notification-setting get /v5/notifications/settings/{settingsId} # Retrieve all notification settings Source: https://docs.kadoa.com/api-reference/notifications/get-notification-settings get /v5/notifications/settings # Test a notification settings with mock data Source: https://docs.kadoa.com/api-reference/notifications/test-notifications post /v5/notifications/test # Update a notification channel Source: https://docs.kadoa.com/api-reference/notifications/update-notification-channel put /v5/notifications/channels/{channelId} # Update a notification settings Source: https://docs.kadoa.com/api-reference/notifications/update-notification-settings put /v5/notifications/settings/{settingsId} # Create new schema Source: https://docs.kadoa.com/api-reference/schemas/create-schema post /v4/schemas/ Create a new data schema with specified fields and entity type # Delete schema Source: https://docs.kadoa.com/api-reference/schemas/delete-schema delete /v4/schemas/{schemaId} Delete a schema and all its revisions # List all schemas Source: https://docs.kadoa.com/api-reference/schemas/get-all-schemas get /v4/schemas/ Retrieve all schemas accessible by the authenticated user # Get schema by ID Source: https://docs.kadoa.com/api-reference/schemas/get-schema-by-id get /v4/schemas/{schemaId} Retrieve a specific schema by its unique identifier # Update existing schema Source: https://docs.kadoa.com/api-reference/schemas/update-schema put /v4/schemas/{schemaId} Update schema metadata or create a new revision with updated fields # Create support issue Source: https://docs.kadoa.com/api-reference/support/create-support-issue post /v4/support/issues Create a new support ticket linked to a workflow or data change # List support issues Source: https://docs.kadoa.com/api-reference/support/get-support-issues get /v4/support/issues Retrieve all support issues for the current customer # Get issue states Source: https://docs.kadoa.com/api-reference/support/get-support-states get /v4/support/states Retrieve the available states for support issues # Update support issue Source: https://docs.kadoa.com/api-reference/support/update-support-issue patch /v4/support/issues/{issueId} Update the priority or status of an existing support issue # Apply template update Source: https://docs.kadoa.com/api-reference/templates/apply-update post /v4/templates/{templateId}/apply Apply a template version's settings to linked workflows # Create template Source: https://docs.kadoa.com/api-reference/templates/create-template post /v4/templates/ Create a new template for reusing prompts, schemas, and settings across workflows # Create template version Source: https://docs.kadoa.com/api-reference/templates/create-version post /v4/templates/{templateId}/versions Publish a new version of a template with prompt, schema, validation, and notification settings # Delete template Source: https://docs.kadoa.com/api-reference/templates/delete-template delete /v4/templates/{templateId} Archive a template (soft delete) # Get template Source: https://docs.kadoa.com/api-reference/templates/get-template get /v4/templates/{templateId} Retrieve a template by ID, including its version history # Link workflows to template Source: https://docs.kadoa.com/api-reference/templates/link-workflows post /v4/templates/{templateId}/link Link one or more workflows to a template # List template schemas Source: https://docs.kadoa.com/api-reference/templates/list-schemas get /v4/templates/{templateId}/schemas Retrieve all schemas linked to a template # List templates Source: https://docs.kadoa.com/api-reference/templates/list-templates get /v4/templates/ Retrieve all templates for the current team # List template workflows Source: https://docs.kadoa.com/api-reference/templates/list-workflows get /v4/templates/{templateId}/workflows Retrieve all workflows linked to a template # Preview schema change Source: https://docs.kadoa.com/api-reference/templates/preview-schema-change post /v4/templates/{templateId}/preview-schema-change Preview the data a schema change would produce for one linked workflow, without applying the template or running the workflow # Save workflow as template Source: https://docs.kadoa.com/api-reference/templates/save-from-workflow post /v4/templates/from-workflow Create a new template from an existing workflow's configuration # Unlink workflows from template Source: https://docs.kadoa.com/api-reference/templates/unlink-workflows post /v4/templates/{templateId}/unlink Unlink one or more workflows from a template # Update template Source: https://docs.kadoa.com/api-reference/templates/update-template put /v4/templates/{templateId} Update a template's name or description # Create a variable Source: https://docs.kadoa.com/api-reference/variables/create-a-variable post /v4/variables/ Create a new key-value variable. Keys must be unique within the team/user scope. Variables can be referenced in workflow prompts using @variableKey syntax. # Delete a variable Source: https://docs.kadoa.com/api-reference/variables/delete-a-variable delete /v4/variables/{variableId} Permanently delete a variable by its ID. A secret bound to a connector returns 409 Conflict. # Get a variable Source: https://docs.kadoa.com/api-reference/variables/get-a-variable get /v4/variables/{variableId} Retrieve a specific variable by its ID. # List all variables Source: https://docs.kadoa.com/api-reference/variables/list-all-variables get /v4/variables/ Retrieve all variables in the current team/user scope (max 100). # Update a variable Source: https://docs.kadoa.com/api-reference/variables/update-a-variable patch /v4/variables/{variableId} Update an existing variable. At least one field (key, value, or dataType) must be provided. # Create a new workflow Source: https://docs.kadoa.com/api-reference/workflows/create-a-new-workflow post /v4/workflows Create a workflow from natural-language instructions, an existing schema, an inline schema, raw-data output options, or a published template. # Create workflow data export Source: https://docs.kadoa.com/api-reference/workflows/create-workflow-data-export get /v4/workflows/{workflowId}/data/export Materializes the full result set as CSV, JSON, or Parquet to object storage and returns a self-authenticating URL that can be opened by external clients (Claude Desktop, Claude for Excel, code execution sandboxes, browsers) without an Authorization header. The URL is HMAC-signed and bound to the exportId, workflowId, format and expiry. # Create a workflow trigger Source: https://docs.kadoa.com/api-reference/workflows/create-workflow-trigger post /v4/workflows/{workflowId}/triggers Create a trigger that fires when the source workflow emits an event. The target must share the source ownership scope (same team for team workflows, or the same user for personal workflows) and must not be a realtime workflow. Superadmins are subject to the same scope check on the public endpoint. # Delete a workflow Source: https://docs.kadoa.com/api-reference/workflows/delete-a-workflow delete /v4/workflows/{workflowId} # Delete a trigger Source: https://docs.kadoa.com/api-reference/workflows/delete-workflow-trigger delete /v4/workflows/{workflowId}/triggers/{triggerId} # Download workflow data export Source: https://docs.kadoa.com/api-reference/workflows/download-workflow-data-export get /v4/workflows/{workflowId}/data/exports/{exportId} Streams a file previously materialized via GET /v4/workflows/{workflowId}/data/export. Sets Content-Disposition: attachment so browsers trigger a download. # Get a list of workflows Source: https://docs.kadoa.com/api-reference/workflows/get-all-workflows get /v4/workflows Retrieves a list of workflows with pagination and search capabilities # Get the workflow run history Source: https://docs.kadoa.com/api-reference/workflows/get-the-workflow-history get /v4/workflows/{workflowId}/history # Get workflow by ID Source: https://docs.kadoa.com/api-reference/workflows/get-workflow-by-id get /v4/workflows/{workflowId} Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions. # Get workflow data by ID Source: https://docs.kadoa.com/api-reference/workflows/get-workflow-data-by-id get /v4/workflows/{workflowId}/data # Get workflow quality metrics Source: https://docs.kadoa.com/api-reference/workflows/get-workflow-quality-metrics get /v4/workflows/{workflowId}/quality-metrics Returns the data quality metric results for a workflow run, plus the run's total data quality issue count. Metrics are only available once the run has finished, before that the endpoint returns `{ "results": null, "issueCount": null }`. Each metric result carries a `status`: - `OK`: the metric was computed, see `data` for it's details. - `PENDING`: the metric has not been computed yet. - `NOT_APPLICABLE`: the metric cannot be computed for this workflow, see `message`. - `ERROR`: the metric computation failed, see `message`. # Get a specific trigger Source: https://docs.kadoa.com/api-reference/workflows/get-workflow-trigger get /v4/workflows/{workflowId}/triggers/{triggerId} # List destinations delivering this workflow's results Source: https://docs.kadoa.com/api-reference/workflows/list-workflow-connectors get /v4/workflows/{workflowId}/connectors Returns the team's destinations that deliver this workflow after each run. Only deliverable destinations are listed (enabled, verified, not revoked). # List workflow triggers Source: https://docs.kadoa.com/api-reference/workflows/list-workflow-triggers get /v4/workflows/{workflowId}/triggers Get the triggers where the specified workflow is the source (`triggers`) and the triggers where it is the target (`incoming`). Outgoing rows are always returned; each carries `targetWorkflowName` when the caller can access the target. Incoming rows are returned only when the caller can access the source workflow, and each carries `sourceWorkflowName`. `count` is the outgoing trigger count. # Pause a workflow Source: https://docs.kadoa.com/api-reference/workflows/pause-a-workflow put /v4/workflows/{workflowId}/pause # Resume or unpause a workflow Source: https://docs.kadoa.com/api-reference/workflows/resume-a-workflow put /v4/workflows/{workflowId}/resume Unpauses a paused workflow, or resumes a preview/error workflow. # Run a workflow Source: https://docs.kadoa.com/api-reference/workflows/run-a-workflow put /v4/workflows/{workflowId}/run # Schedule a workflow Source: https://docs.kadoa.com/api-reference/workflows/schedule-a-workflow put /v4/workflows/{workflowId}/schedule # Update workflow metadata Source: https://docs.kadoa.com/api-reference/workflows/update-workflow-metadata put /v4/workflows/{workflowId}/metadata # Update a trigger Source: https://docs.kadoa.com/api-reference/workflows/update-workflow-trigger patch /v4/workflows/{workflowId}/triggers/{triggerId} Update trigger properties (eventType, enabled) # Agent Source: https://docs.kadoa.com/docs/agent What Kadoa's agent does, its two chats, and when it needs you Kadoa's agent builds and maintains your workflows. You describe the data you need. The agent finds the source, writes the extraction, tests it, and keeps it running when sites change. ## Two chats Select **Agent** on any page to open it. The panel has two chats, and switching between them changes what the agent works on. ![The agent panel side by side: a private Workspace chat with a source research request, and the This workflow chat that everyone on the team can see](https://mintcdn.com/kadoa/v7EEuXHZHS8J6dQ7/images/assistant/agent-scopes.png?fit=max\&auto=format\&n=v7EEuXHZHS8J6dQ7\&q=85\&s=aa5341cdbdd3955efe2766ae139c73fc) | | Workspace | This workflow | | - | - | - | | Who sees it | Only you | Everyone on your team | | What it covers | All of your team's workflows | One workflow | | Use it to | Research sources, create workflows (also many at once), and ask questions across workflows | Change, fix, or debug this workflow, and answer the agent's questions about it | | History | Your own chats, under **History** | One shared chat per workflow | On a workflow page, the panel opens on **This workflow**. A dot on **Agent** means a workflow is waiting for your reply. ## What the agent does * Finds the source, if you don't give a URL. * Proposes a schema and picks [key fields](/docs/workflows/key-fields), or uses the fields you name. * Writes the extraction code and tests it on a free preview. * Repairs the workflow when a run breaks or a site changes. You can also reach the agent from code or from your AI tool over [MCP](/docs/sdk/mcp). Build and repair requests go to the same agent. ## How runs work The agent writes each workflow's extraction code once. Every run executes that code, so runs are repeatable and do not depend on a new AI guess each time. The agent steps in again only when you ask for a change or when a run needs a repair. ## When the agent needs you * **Reply needed**: the agent has a question. Answer it in the workflow's chat. * **Preview ready**: check the sample and approve it. See [Preview and approval](/docs/ui/workflows/human-in-the-loop). If the agent cannot fix a problem, it hands the problem to [Kadoa support](/docs/support-center). ## Learn more * [Work with the agent](/docs/workflows/agent): step-by-step tasks in the dashboard, from code, and over MCP. * [AI personalization](/docs/ui/ai-personalization): rules the agent follows on every new workflow. # API keys Source: https://docs.kadoa.com/docs/api-keys Personal API keys and service accounts for the SDK and REST API The SDK and REST API sign in with an API key, sent in the `x-api-key` header or passed to the SDK client. The hosted MCP server does not need one: you sign in with your Kadoa account instead. Only the local stdio MCP server reads a key, from `KADOA_API_KEY`. There are two kinds of key: | | Personal API key | Service account key | | - | - | - | | Acts as | You | A service account | | Belongs to | You, in one team | The service account, in one team | | Access | Your role in that team | The service account's role | | Use it for | Your own scripts and tools | Automations, integrations, shared jobs | Every key works in exactly one team. A key cannot read or change another team, and the `x-team-id` header cannot select one. Store keys in a secret manager. Never paste a key into a prompt or a chat. ## Personal API keys A personal key lets you call the API as yourself. Actions made with it appear under your name. * Open **Settings > API key** and generate the key. Any member of the team can, whatever their role. * You have at most one active key per team. Generating again replaces it: the previous key stops working immediately. * Keys start with `kpat-`. The key is shown once, when you generate it. Afterwards Kadoa shows only its prefix, when it was created, and when it was last used. * Your key has your role in the team. A Viewer's key is read-only. Being an organization owner or a Kadoa administrator does not widen it. * If you leave the team or an admin removes you, your key for that team is revoked. * Revoking the key in **Settings > API key** leaves you without one until you generate a new key. Keys created before personal keys were tied to a team keep working. Each moved to the team it resolved to before, and a key that could not be matched to a single team keeps its previous behavior. ## Service accounts A service account is a named machine identity that belongs to one team. Use one per integration, so you can give it only the access it needs and revoke it on its own. Open **Settings > Service accounts** to manage them. Only Owners and Admins of the team can, signed in with their own account. API keys, including an Admin's own, cannot create or change service accounts, keys or connectors. * Each account has a name (up to 64 characters) and a role: Admin, Member or Viewer. The role is required when you create the account. A Viewer account can only read; a Member account can create and change data; an Admin account can also manage team members. * Two accounts may share a name. Each has its own identity, shown with your members as a service account. * An account can hold several active keys, so you can rotate without downtime: create the new key, switch your system over, then revoke the old one. * Keys start with `ksa-`. Like personal keys, they are shown once, and afterwards only their prefix and last use are visible. * Changing an account's name or role applies to its existing keys at once. * Actions made with a key appear under the service account. The [Activity log](https://www.kadoa.com/activity-log) shows which actions were automated and which were manual. ### The default service account Every team has one default service account with the Admin role. It owns the team's shared key, which you generate and view on the default account in **Settings > Service accounts**. The shared key starts with `tk-`. Generating the shared key again replaces it and invalidates the old one; it does not affect any other account. The default account cannot be renamed, changed to another role or deleted. ### Deleting a service account Deleting an account revokes all its keys and its [MCP service connector](/docs/sdk/mcp-service-connector). Workflows and other items it owned move to the team's default service account, so they keep running. Its past actions keep its name in the [Activity log](https://www.kadoa.com/activity-log), marked as a deleted service account. ## When access ends | Event | Keys affected | | - | - | | You regenerate a key | The previous key of that kind stops working immediately | | You revoke a key | That key only | | A member is removed from the team | Their personal key for that team | | A service account is deleted | All keys of that account | | Two Kadoa users are merged during an SSO migration | The merged users' personal keys. Generate a new one after signing in with the new account | | A team is archived | All its keys stop working. Unarchiving the team restores exactly those keys | # Change detection Source: https://docs.kadoa.com/docs/change-detection How Kadoa decides what changed between runs, and what a change looks like Every time a workflow runs, Kadoa compares the new data with the previous run. Each record that differs is reported as **added**, **removed**, or **updated**. Scheduled workflows compare one run with the last. [Monitors](/docs/monitors) do the same continuously. ## How records are matched To spot an update, Kadoa first works out which record in the new run is the same record as before. It does this in three passes: 1. Identical records are unchanged. Whitespace differences don't count. 2. Records with the same key are compared field by field. Any difference makes the record updated. 3. Everything left is added (new in this run) or removed (gone from this run). ### Key fields A key field is a record's identity, such as a product URL, SKU, or posting ID. The agent picks key fields when it builds the schema. See [Key fields](/docs/workflows/key-fields). ```json theme={null} // Previous run { "id": "12345", "title": "Product A", "price": "$100" } // Current run: same id, so this is one updated record { "id": "12345", "title": "Product A Pro", "price": "$150" } ``` * Every key field must match for two records to count as the same. * If a key value itself changes, the record shows up as one removal and one addition. * Use scalar `STRING`, `NUMBER`, or `LINK` fields as keys. Without a key field, Kadoa only recognizes exact copies. A record whose price changed shows up as one removal and one addition. ## What a change looks like ### In the dashboard 1. Open the workflow and select **History** in the side rail. 2. Select a **Data changed** entry. It shows how many records were added (+), removed (−), and updated (Δ). 3. The table switches to that change, with each row marked +, −, or Δ. Filter by type with the menu at the top left. Select **Back to latest data** to return. ![The History panel with a Data changed entry selected, and the table showing added and removed rows](https://mintcdn.com/kadoa/v7EEuXHZHS8J6dQ7/images/monitoring/data-changes.png?fit=max\&auto=format\&n=v7EEuXHZHS8J6dQ7\&q=85\&s=103db717fed8e60d0137a095ef2ff684) Monitors also show a screenshot of the page before and after each change. See [See what changed](/docs/monitors#see-what-changed). ### Review changes on source PDFs When a workflow records where it read a changed value, you can see that location in the source PDF. 1. In the workflow's **History**, open a **Data changed** entry. 2. In the **Data** view, select the row you want to review. 3. Select **PDF** above the table. ![PDF comparison highlighting net sales changing from 49.1 million to 48.2 million US dollars](https://mintcdn.com/kadoa/7BNCOg2gi5QBs2AR/images/monitoring/pdf-change-highlights.png?fit=max\&auto=format\&n=7BNCOg2gi5QBs2AR\&q=85\&s=42fcd5b9c28cbef0cacd2d2d165cf23f) For an updated record, Kadoa highlights changed fields with recorded locations. When both PDFs have highlights, **Before** and **After** appear side by side. For an added or removed record, Kadoa highlights every field with a recorded location on the available side. If Kadoa has no PDF locations for the selected change, select **Screenshot** when a page screenshot is available. ### As an event Changes arrive as `workflow_data_change` events on your [notification channels](/docs/notifications). Each event carries a `differences` array: ```json theme={null} { "differences": [ { "type": "changed", "fields": [ { "key": "title", "previousValue": "Old Title", "value": "New Title" } ] } ] } ``` * `type` is `added`, `removed`, or `changed`. * `fields` lists the record's fields. `previousValue` appears on `changed` records only. The full payload, including `summary` and `metadata`, is in the [webhook payload reference](/docs/destinations/webhooks#payload-reference). ## Choose which changes alert you You decide which fields, values, and change types trigger an alert. See [Filter data change alerts](/docs/notifications#filter-data-change-alerts). ## Get past changes Every change stays in the workflow's **History**. Select the **Data** tab to list only data changes. From code, the `/v4/changes` endpoint returns past changes. Filter by date range: ```bash theme={null} GET https://api.kadoa.com/v4/changes?startDate=2024-11-01T00:00:00Z&endDate=2024-11-30T23:59:59Z ``` See [Get all changes](/api-reference/monitoring/get-all-changes) for every parameter. # Compliance Center Source: https://docs.kadoa.com/docs/compliance-center View compliance rules and access audit tools for your team's workflows The Compliance Center gives your team visibility into the compliance rules applied to your workflows and quick access to audit tools. To open it, go to **Settings** → **Compliance** in your dashboard sidebar. For compliance concepts, certifications, and our policy, see [Compliance Overview](/docs/security/compliance). ## Quick Access The Compliance Center provides shortcuts to key audit tools: | Tool | Description | | - | - | | **Workflow History** | Opens a static snapshot of all workflows for inventory audits | | **Activity Log** | Opens a time-series record of user actions and workflow runs | ## Compliance Rules The Compliance Center displays the [automated compliance rules](/docs/security/compliance#automated-compliance-rules) currently applied to your team's workflows, along with their current status (enabled or disabled). ![Compliance rules in the Compliance Center](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/compliance-rules.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=73976d25bcee99fea968dce827280f20) > [!NOTE] > > Compliance rules are configured by Kadoa on your behalf. To enable, disable, or update rules, please [contact support](https://www.kadoa.com/contact). ## Workflow Exceptions Kadoa can waive a rule for a single workflow when your organization has approved it, for example when you own the source site. The rule stays in force for every other workflow. These rules can be waived: * robots.txt Check * Source Blacklisting * Captcha Enforcement * Proxy Restrictions Compliance Review, PII Detection, and TOS rules can't be waived. Each exception has a reason. Once it is revoked, the rule applies to the workflow again from the next run. Every grant and revoke appears in the workflow's **History** and in the [Activity Log](#activity-log), with the rule and the reason. Filter the Activity Log by the `COMPLIANCE_EXCEPTION_GRANTED` and `COMPLIANCE_EXCEPTION_REVOKED` event types to list them. When a run's compliance check skips a waived rule, the check lists it under **Waived by exception**. To see which rules are waived for a workflow, call `GET /v4/team/{teamId}/compliance-rules?workflowId={workflowId}`. Each waived rule includes a `waivedForWorkflow` object with its `reason` and `grantedAt`. In the Kadoa MCP server, pass `workflowId` to the `list_compliance_rules` tool. > [!NOTE] > > To request or revoke an exception, [contact support](https://www.kadoa.com/contact). ## Compliance Information When enabled, a custom compliance reminder is displayed to users when they create a new workflow. This helps ensure team members are aware of your organization's data sourcing policies before starting any extraction. ![Compliance reminder shown during workflow creation](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/compliance-reminder.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=1ecef8449813aba2fc3420bd6228e021) ## Approval Flow When Compliance Review is enabled, all new workflows require approval from a Compliance Officer before they can be activated: 1. A user creates a new workflow 2. The workflow enters a **Pending Approval** state during preview 3. The assigned Compliance Officer receives a notification 4. The officer reviews the workflow configuration and preview data 5. The officer approves or rejects the workflow with feedback 6. If approved, the workflow becomes active ![Compliance approval flow](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/compliance-approval-flow.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=8d12c09d18766210ce1b92359c1d58a4) ## Reporting & Audit Log The Compliance Center provides quick access to two reporting tools: ### Workflow History A static snapshot of all workflows, useful for inventory audits. Includes: * Data sources accessed or attempted * User who created/modified workflows * Version history and configuration changes * Number of records extracted ### Activity Log A time-series record of all platform activity. You can filter by: * Workflow * User * Date range * Event type Export filtered data for compliance reviews from the [Activity Log](https://www.kadoa.com/activity-log). ## Compliance Officer Role Admins can assign the **Compliance Officer** role to team members: 1. Go to **Settings** → **Members** 2. Click the **...** menu next to the member you want to update 3. Select **Edit member** 4. Change their role to **Compliance Officer** 5. Click **Save** Available roles: Member, Admin, Compliance Officer, Viewer. Compliance Officers have: * Read-only access to all workflows and execution logs * Access to compliance reports and audit trails * Ability to approve or reject workflows (when Compliance Review is enabled) ## Learn More * [Compliance Overview](/docs/security/compliance) * [Members and roles](/docs/ui/team-management) * [Security Introduction](/docs/security/introduction) # Data quality Source: https://docs.kadoa.com/docs/data-quality Check every run against per-field rules and built-in platform metrics, and edit the rules in the dashboard, the SDK, or the API. Data quality checks flag problems in your workflow data at the end of every run. You see the results for each run and edit the rules in the dashboard, the SDK, or the API. ## How data quality works Two layers of checks run at the end of every workflow run: * **Rules** are per-field checks for each schema field, such as the format of a string. Kadoa generates a default set of rules for each workflow, based on your data. You can change them at any time. * **Platform metrics** are built-in metrics that Kadoa computes for you, such as completeness. They need no configuration. ## View data quality results You view results in the dashboard. 1. Open a workflow from [Workflows](https://www.kadoa.com/dashboard). 2. Select **Data quality** in the side rail. ![The Data quality panel on a template-linked workflow: a Controlled by banner, two field rules with no issues, then the completeness and suspicious values checks](https://mintcdn.com/kadoa/v7EEuXHZHS8J6dQ7/images/data-quality-v2/panel.png?fit=max\&auto=format\&n=v7EEuXHZHS8J6dQ7\&q=85\&s=386fa944d2d7c304b92e6f5a682fef8d) The panel shows the results for the selected run. Below the template banner, if there is one, it has two areas: * Field rules: one card per field that has rules, with its checks summarized. * Platform metrics: checks Kadoa runs on every workflow, such as completeness. While the panel is open, the table shows only rows with data quality issues. On each field card: * Below the field name, chips summarize its checks, for example **Required**, **Unique**, or a range such as **1–20000**. * On the right, **No issues** means every rule passed on this run. Failing checks turn red and show how many rows fail. Select a platform metric card to open its detail view. ## Edit a field's rules > [tab] Dashboard > > 1. Open the workflow and select **Data quality** in the side rail. > > 2. Select the field's card. For a field without rules, select **Add rules**, then select the field. > > 3. Set the rules. For what each rule checks, see [Rules](#rules). > > 4. Select **Save changes**. > > ![The rules dialog for a url field: type STRING, presence at 100 percent, a Defined format with the URL pattern, and uniqueness at 80 percent](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/data-quality-v2/form.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=f57a8ed1e647bc97d2dbdeaf8dba452b) > > > [!NOTE] > > > > Rule changes take effect on the **next** run. The results shown now stay the same until another run finishes. > [tab] SDK & API > > You need an API key, the SDK (`npm install @kadoa/node-sdk` or `pip install kadoa-sdk`), and a workflow with a schema. Rules are keyed by schema field name. > > Fields in the request replace their existing rules. Fields you leave out keep theirs. Every rule carries `editedBy` and `editedAt`, which identify the type of editor and the time of the edit. You can send an optional `editedByLabel` for a user edit. The API, template versions and quality metric results return labels only for user edits. API clients send `editedBy: "user"`. Send `editedAt` as UTC ending in `Z`. > > ```typescript Node SDK theme={null} > import { KadoaClient } from "@kadoa/node-sdk"; > > const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); > const workflowId = "WORKFLOW_ID"; > > // Every rule records who set it and when > const edited = { > editedBy: "user", > editedAt: new Date().toISOString(), > } as const; > > const rules = await client.dataQuality.upsertRules(workflowId, { > title: { > kind: "STRING", > presence: { target: 100, ...edited }, > maxLength: { value: 120, ...edited }, > }, > link: { > kind: "STRING", > format: { > kind: "FORMAT", > source: { kind: "PRESET", preset: "url" }, > ...edited, > }, > }, > }); > > console.log(Object.keys(rules)); // ["title", "link"] > ``` > > ```python Python SDK theme={null} > from datetime import datetime, timezone > > from kadoa_sdk import KadoaClient, KadoaClientConfig > > client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) > workflow_id = "WORKFLOW_ID" > > # Every rule records who set it and when. The API expects UTC ending in "Z" > edited = { > "editedBy": "user", > "editedAt": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"), > } > > rules = client.data_quality.upsert_rules( > workflow_id, > { > "title": { > "kind": "STRING", > "presence": {"target": 100, **edited}, > "maxLength": {"value": 120, **edited}, > }, > "link": { > "kind": "STRING", > "format": { > "kind": "FORMAT", > "source": {"kind": "PRESET", "preset": "url"}, > **edited, > }, > }, > }, > ) > > print(list(rules)) # ['title', 'link'] > ``` > > ```bash REST API theme={null} > curl -X PUT "https://api.kadoa.com/v4/workflows/WORKFLOW_ID/schema-validation-rules" \ > -H "x-api-key: YOUR_API_KEY" \ > -H "Content-Type: application/json" \ > -d '{ > "title": { > "kind": "STRING", > "presence": { "target": 100, "editedBy": "user", "editedAt": "2026-09-22T10:00:00Z" }, > "maxLength": { "value": 120, "editedBy": "user", "editedAt": "2026-09-22T10:00:00Z" } > }, > "link": { > "kind": "STRING", > "format": { > "kind": "FORMAT", > "source": { "kind": "PRESET", "preset": "url" }, > "editedBy": "user", > "editedAt": "2026-09-22T10:00:00Z" > } > } > }' > ``` > > The response is the merged ruleset of the whole workflow. Rule edits apply on the next run. For the rules each `kind` accepts, see [Rule shapes](#rule-shapes). ## Read the rules of a workflow In the dashboard, the field cards in the **Data quality** panel show the rules. With the SDK or the API, read them like this: ```typescript Node SDK theme={null} import { KadoaClient } from "@kadoa/node-sdk"; const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); const workflowId = "WORKFLOW_ID"; // null when the workflow has no rules const rules = await client.dataQuality.getRules(workflowId); for (const [field, fieldRules] of Object.entries(rules ?? {})) { console.log(field, fieldRules.kind, fieldRules.presence?.target); } ``` ```python Python SDK theme={null} from kadoa_sdk import KadoaClient, KadoaClientConfig client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) workflow_id = "WORKFLOW_ID" # None when the workflow has no rules rules = client.data_quality.get_rules(workflow_id) for field, field_rules in (rules or {}).items(): print(field, field_rules["kind"], field_rules.get("presence", {}).get("target")) ``` ```bash REST API theme={null} curl -X GET "https://api.kadoa.com/v4/workflows/WORKFLOW_ID/schema-validation-rules" \ -H "x-api-key: YOUR_API_KEY" ``` ## Remove the rules of one field Other fields keep their rules. > [tab] Dashboard > > 1. Open the workflow and select **Data quality** in the side rail. > 2. Select the field's card. > 3. Select **Delete rule**. > [tab] SDK & API > > ```typescript Node SDK theme={null} > import { KadoaClient } from "@kadoa/node-sdk"; > > const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); > const workflowId = "WORKFLOW_ID"; > > // Other fields keep their rules > const remaining = await client.dataQuality.deleteFieldRules( > workflowId, > "link", > ); > > console.log(Object.keys(remaining)); // ["title"] > ``` > > ```python Python SDK theme={null} > from kadoa_sdk import KadoaClient, KadoaClientConfig > > client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) > workflow_id = "WORKFLOW_ID" > > # Other fields keep their rules > remaining = client.data_quality.delete_field_rules(workflow_id, "link") > > print(list(remaining)) # ['title'] > ``` > > ```bash REST API theme={null} > curl -X DELETE "https://api.kadoa.com/v4/workflows/WORKFLOW_ID/schema-validation-rules/link" \ > -H "x-api-key: YOUR_API_KEY" > ``` ## Template-managed workflows When a workflow is linked to a template that owns its data quality rules, the workflow inherits the rules from the template. You cannot edit them on the workflow. The panel shows **Controlled by** with the template name, as in the screenshot in [View data quality results](#view-data-quality-results). To change the rules, edit the template and apply the new version to this workflow. Or unlink the workflow from its template and edit the rules directly. With the SDK or API, editing the rules of a template-linked workflow returns `409` with code `TEMPLATE_CONTROLLED_FIELD`. ## Rules Each schema field can have its own validation rules, specific to the field's data type. ### Type The type defines which rules are available. The default matches the schema's data type, but you can cast values to another type for validation. ### Presence Presence sets the minimum percentage of rows where the field must have a value. If fewer rows than the target have a value, Kadoa flags the field. ### Uniqueness Uniqueness sets the minimum percentage of values that must be unique in the column. If fewer rows than the target are unique, Kadoa flags the field. ### String fields You can validate strings against one of three format kinds. Only one applies at a time. * **Free text**: any value is allowed. Optionally match a character set, such as "Alphanumeric", and cap the minimum or maximum length. * **Defined format**: match a pattern preset, such as "URL", or add a custom regular expression. * **Option from a list**: match an options preset, such as "Language (2-letter)", or add a custom list of allowed values. > [!NOTE] > > Selecting **Customize** on any preset prefills the custom regex or list. Use it as a starting point and adjust it. Independently of the format, strings can bound their **HTML element count**: the number of HTML elements the value contains (`

Foo

bar` counts 1). Set a minimum of 1 to require raw HTML markup, or a maximum of 0 to forbid it. ### Number fields * **Maximum decimal places**: the maximum allowed number of decimal places, such as "0" for whole numbers. * **Range**: the minimum and maximum allowed values. You can set either or both. ## Rule shapes In the SDK and API, the `kind` of a field selects its rule shape. Kadoa casts the field's values to that type before evaluation. | Kind | Rules | | - | - | | `STRING` | `presence`, `uniqueness`, `minLength`, `maxLength`, `minHtmlElements`, `maxHtmlElements`, `format` | | `NUMBER` | `presence`, `uniqueness`, `minimum`, `maximum`, `maxDecimalPlaces` | | `DATE` | `presence`, `uniqueness`, `minimum`, `maximum` (a fixed `YYYY-MM-DD` date or a preset relative to the run date) | | `OBJECT` | `presence`, `uniqueness`, `additionalProperties`, and `properties` with the rules of each sub-field | | `ARRAY` | `presence`, `uniqueness`, `minItems`, `maxItems`, and `items` with the rules applied to every element | | `OTHER` | `presence`, `uniqueness` | `presence` and `uniqueness` take a `target` of 0, 20, 40, 60, 80, or 100 percent. A string `format` is one of three kinds: * `FREE_TEXT` with a charset preset * `FORMAT` with a pattern preset or a custom regular expression * `LIST` with a list preset or custom values The Node SDK exports these shapes as types, starting from `DataQualityRules`. The Python SDK takes and returns them as plain dicts. ## Platform metrics Platform metrics are built-in and need no configuration. Select a metric's card in the panel to open its detail view. ### Completeness Completeness reports whether Kadoa found as many rows as the source suggests. It compares the actual row count against the expected row count for the run, and reports: * Actual vs expected row count * Any qualifying signals detected from the source, such as pagination information * Whether a configured limit capped the result The detail view shows the contributing signals. ### Suspicious values Suspicious values inspects each row for values that do not fit with the rest of the row, such as implausible or out-of-domain values. It reports how many columns have any flagged values, with examples. The detail view shows the flagged columns with example values. ## When changes take effect * Validation runs at the end of every workflow run. * Kadoa saves rule edits right away, but they apply only from the **next** run. Edits do not change the results of the current run. ## Limits * A rule tree nests at most 4 levels deep and holds at most 200 rules. ## Related * [Data quality API reference](/api-reference/data-quality/get-rules) * [Notifications](/docs/notifications): get a **Data quality issues** alert when a run's data quality issues change # Build a dataset Source: https://docs.kadoa.com/docs/datasets Build a dataset across many different sources with a single shared template A dataset collects the same kind of record, in the same structure, from many websites. This guide builds a jobs dataset from company career pages in five stages: research sources, create a template, test it on a few sources, scale to all of them, and deliver the data. You can also [let Kadoa build it](#let-kadoa-build-it). ## 1. Research sources Ask Kadoa's agent to find sources in Workspace chat. It searches the web and lists candidate URLs, with what each page shows. 1. Select **Agent** in the bottom-right corner of any page, then select **Workspace**. 2. Describe the data, for example *"Find career pages of European fintech companies that list open roles."* Pick the sources you want. A workflow run confirms what each one holds. ![A Workspace chat answering a request for European fintech career pages: ten candidate URLs, each marked as company-run or job board, with what each page shows](https://mintcdn.com/kadoa/v7EEuXHZHS8J6dQ7/images/assistant/workspace-research.png?fit=max\&auto=format\&n=v7EEuXHZHS8J6dQ7\&q=85\&s=4be09a346e941ea1cbecdb3f0f65c5ac) ## 2. Create the template A [template](/docs/templates) holds what every source shares: the setup prompt, schema, key field, data quality rules, and schedule. Create it in one of two ways: * **From scratch**: select **Templates** in the sidebar, then **Create template**. Turn on the parts the template should manage and fill them in. See [Create a template](/docs/templates#create-a-template). * **From one source**: build a workflow for one career page with **Add workflow**, and fix the sample with the agent until it's right. Then open the workflow menu (**...**), select **Save as template**, choose the parts every source should share, and select **Create template**. Use this when you want to see real data first. Before you test, check the template against [Template best practices](/docs/templates/best-practices): * The setup prompt says what a record is, such as "Each row is one job posting." It has no URLs. * Each field has a short description and the narrowest type, such as `DATE` for the posted date. * The [key field](/docs/workflows/key-fields) is stable, such as the posting URL. * Data quality rules are ones every source can pass. ![The template editor with a name, the Setup prompt and Schema parts turned on](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/templates/template-editor.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=9bda29674dfc9c2b1c5a7323289ff10d) ## 3. Test on a few sources A clean ten-row preview does not prove a full run holds up. Test the template on a few sources that look different from each other, such as one company site and one job board. **1. Create the test workflows** Select **Add workflow**, select **Template** below the prompt, and pick your template. Under **Workflow-specific instructions**, add the source URL. Repeat for each test source. **2. Approve and run** Approve each preview and let each workflow finish one full run. **3. Compare with the live sites** Check that the row count matches the site, required fields are filled, and the agent reached the detail pages the schema needs. **4. Fix the template** Change the template, publish the new version, and apply it to the test workflows. See [Publish and apply a new version](/docs/templates#publish-and-apply-a-new-version). > [!NOTE] > > A setup prompt change only reaches workflows built after it. Settle the prompt during testing, before you scale. ## 4. Scale to all sources When the test sources look right, create one workflow per remaining website. Each one links to the template, so a new template version reaches every source when you apply it. > [tab] Dashboard > > In Workspace chat, name the template and the websites in one message, for example *"Create workflows from the Job Postings template for acme.com/careers, globex.com/jobs, and initech.com/open-roles."* The agent creates one workflow per website and reports any failures. > [tab] SDK & API > > Loop over your list and pass `templateId` with each URL. Space the requests out and keep a list of failures, so a retry picks up only those sources. > > ```typescript Node SDK theme={null} > const careerPages = [ > "https://acme.com/careers", > "https://globex.com/jobs", > // one URL per company > ]; > const failed: string[] = []; > > for (const url of careerPages) { > try { > await client.workflow.create({ urls: [url], templateId: "TEMPLATE_ID" }); > } catch { > failed.push(url); > } > // Space out the requests > await new Promise((resolve) => setTimeout(resolve, 2000)); > } > > console.log("Retry these:", failed); > ``` > > The REST API takes the same fields on `POST /v4/workflows`. See [Create from a template](/docs/workflows/create/sdk#create-from-a-template). > [tab] MCP > > Ask your AI tool, for example: > > ```text theme={null} > > Create a workflow from the Job Postings template for each of these career pages: acme.com/careers, globex.com/jobs, initech.com/open-roles > ``` > > Your AI tool calls `create_workflow` with the `templateId` for each website. Each new workflow stops at a preview for you to approve. The template's **Linked workflows** tab lists every source and the version it runs. ![A Job Postings Template page listing two linked workflows on v2, each with an Unlink button](https://mintcdn.com/kadoa/zP0ciqAKcbuKDagz/images/templates/linked-workflows.png?fit=max\&auto=format\&n=zP0ciqAKcbuKDagz\&q=85\&s=c6608ce80b445e687dacc221c67c8fc0) ## 5. Deliver to your tools Send the dataset to the tools you already use. This example uses Snowflake. [Integrations](/docs/destinations/overview) lists the other destinations. A destination belongs to your team and can deliver all of its workflows or a selected set. Set it up once for the whole dataset. **1. Request the destination** Open any workflow and select **Pipeline** in the side rail. Choose **Deliver**, select **Add** under **Destinations**, then select **Set up** next to Snowflake. Fill in the prefilled Support Center request and submit it. **2. Import the share** Import the share in Snowsight and send Kadoa the verification code. [Snowflake](/docs/destinations/snowflake) has the steps and the role you need. **3. Query the views** Each run arrives about 5 minutes after it completes. Each workflow has its own read-only views, named in `WORKFLOW_SCHEMA_VERSIONS`. Optional views include `TPL___LATEST` for template data. ![The Deliver tab of the Pipeline panel with a connected Snowflake destination that delivers about 5 minutes after each run](https://mintcdn.com/kadoa/OUUNs4rDwUaNuNby/images/workflows/pipeline-deliver.png?fit=max\&auto=format\&n=OUUNs4rDwUaNuNby\&q=85\&s=ae20a3732f42573d4aa8359b57835351) ## Keep the dataset healthy * Data quality rules in the template guard every linked workflow at once. See [Data quality](/docs/data-quality). * Check each new source's first full run against the live site. * Subscribe a channel to **Workflow health** to hear about failed runs. Set it as a team default in **Settings > Notifications**, or add it to the template. See [Notifications](/docs/notifications). ## Let Kadoa build it Kadoa can build and maintain the dataset for you as a managed service, starting with a free sample. [Contact sales](https://www.kadoa.com/contact/sales) to begin. To hand off only the setup, select **Let support set it up** when you name several websites in **Add workflow**. # Amazon S3 Source: https://docs.kadoa.com/docs/destinations/amazon-s3 Deliver data from completed runs to your S3 bucket Kadoa configures the destination for you through the [Support Center](/docs/support-center). ## Before you begin * An AWS account with permission to create a bucket and edit its bucket policy. * Kadoa's AWS principal ARN, provided by Support. Your bucket policy grants access without sharing AWS keys. * A bucket in any AWS region. Kadoa uses SSE-S3 encryption by default. If your bucket requires SSE-KMS, contact Support before you request the destination. ## Prepare the bucket **1. Create a bucket** Create an S3 bucket in your preferred AWS region. **2. Grant Kadoa access** Add this bucket policy. Replace ``, ``, and `` with your values. Use a prefix with no leading or trailing slash, for example `kadoa`. ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "" }, "Action": ["s3:PutObject", "s3:DeleteObject", "s3:AbortMultipartUpload", "s3:ListBucket"], "Resource": ["arn:aws:s3::://*", "arn:aws:s3:::"] } ] } ``` ## Request the destination Send these details through the [Support Center](/docs/support-center): | Detail | Example | | - | - | | Bucket name | `` | | Region | `` | | Prefix | `kadoa` | | Encryption | SSE-S3 (default) or SSE-KMS | | Formats | Parquet, JSONL, JSON, CSV | | Workflow health files | On (default) or off | ## Verify the first delivery After a workflow run completes, list the delivered files: ```bash theme={null} aws s3 ls "s3:////" --recursive ``` * Confirm one file per selected format exists for that run. * Confirm each data file's row count matches the same run in the dashboard. * Run the workflow again. With the [default path template](/docs/destinations/data-destinations#file-layout-and-path-template), confirm that the new run has a new folder. ## What's next > [card] [Load into Snowflake with Snowpipe](/docs/destinations/snowflake#load-cloud-storage-exports-with-snowpipe) > > Load files from your bucket with a Snowpipe that you manage. > [card] [How data destinations work](/docs/destinations/data-destinations) > > See delivery timing, formats, file paths, and workflow health files. > [card] [Google Cloud Storage](/docs/destinations/google-cloud-storage) > > Deliver completed-run data to a Cloud Storage bucket. # How data destinations work Source: https://docs.kadoa.com/docs/destinations/data-destinations What Kadoa delivers, when, and where to see it A destination delivers data from completed runs to storage you own or a data platform you use. Destinations belong to your workspace and can deliver all of its workflows or a selected set. Kadoa configures every destination for you through the [Support Center](/docs/support-center). ## When Kadoa delivers Kadoa delivers data to Amazon S3, Google Cloud Storage, and SFTP immediately after a workflow run completes. Data delivery to Snowflake and Databricks is expected within minutes after completion. ## Formats Amazon S3, Google Cloud Storage, and SFTP support these file formats. | Format | Use case | | - | - | | Parquet | Compressed columnar data for analytics and warehouse loads | | JSONL | One JSON record per line for streaming and line-based processing | | JSON | A JSON document with a metadata envelope for APIs | | CSV | Comma-separated values for spreadsheets and systems that require flat files | ## File layout and path template The default path template is: ```text theme={null} {teamId}/{workflowId}/{runDatetimeSafe}-{runId}/data ``` If you set a prefix, Kadoa adds it before this path. For each run, Kadoa writes one file for each selected format. With the default template, each run has a unique path. This prevents overwrites of files from other runs. | Token | Description | Example | | - | - | - | | `{teamId}` | Your team UUID | `a1b2c3d4-5e6f-7a8b-9c0d-e1f2a3b4c5d6` | | `{workflowId}` | Workflow identifier | `b2c3d4e5-6f7a-8b9c-0d1e-f2a3b4c5d6e7` | | `{runId}` | Run identifier | `c3d4e5f6-7a8b-9c0d-1e2f-a3b4c5d6e7f8` | | `{runDatetimeSafe}` | Run finish time in UTC without colons, safe for filenames | `2025-01-15_10-30-00Z` | | `{runDatetime}` | Run finish time in UTC in ISO 8601 format | `2025-01-15T10:30:00.000Z` | | `{runDate}` | Run finish date in UTC | `2025-01-15` | | `{runStartDatetimeSafe}` | Run start time in UTC without colons, safe for filenames | `2025-01-14_23-30-00Z` | | `{runStartDatetime}` | Run start time in UTC in ISO 8601 format | `2025-01-14T23:30:00.000Z` | | `{runStartDate}` | Run start date in UTC | `2025-01-14` | The default template uses the run finish time. To group exports by the run start date, use a start token in your path template: ```text theme={null} {teamId}/{workflowId}/{runStartDate}/{runId}/data ``` ## Additional fields Additional fields add source labels or workflow details to every exported record. They are available in CSV, JSONL, and JSON files, but not Parquet. Each field has a name you choose and a fixed value or a variable. Kadoa replaces variables with the details of the workflow or run. | Field name | Configured value | Example value in the file | | - | - | - | | `source` | `Kadoa` | `Kadoa` | | `workflowName` | `{workflowName}` | `Product Monitor` | | `runTimestamp` | `{runDatetime}` | `2025-01-15T10:30:00.000Z` | In additional fields, `{runDate}` and `{runDatetime}` use the run start time. The JSON metadata envelope's `executedAt` also uses the start time. Supported variables: * `{teamId}` * `{workflowId}` * `{workflowName}` * `{runId}` * `{runDate}` * `{runDatetime}` ## Workflow health files Health files let you monitor workflow status from your Amazon S3, Google Cloud Storage, or SFTP destination. They are enabled by default for Amazon S3 and Google Cloud Storage, and disabled for SFTP. Kadoa can enable or disable health files for your destination. When enabled, Kadoa writes one JSON file for each of these [events](/docs/notifications): * `workflow_finished`: a scheduled workflow finishes. * `workflow_failed`: a scheduled or realtime workflow fails. * `workflow_recovered`: a realtime workflow recovers. File path: ``` /workflow-health/date=2025-01-15/.json ``` ```json theme={null} { "schemaVersion": 1, "eventId": "", "eventType": "workflow_failed", "status": "failed", "eligibleAt": "2025-01-15T10:30:00.000Z", "workflow": { "id": "", "name": "Product Monitor" }, "runId": "" } ``` `runId` is present only when the event belongs to a run. ## View your destinations See which destinations deliver a workflow's results without contacting support: * **In the dashboard**: the **Deliver** section of the [Pipeline](/docs/ui/workflows/pipeline) panel lists connected destinations first, or open the workflow's **Download** dropdown. * **Via the API**: [List workflow destinations](/api-reference/workflows/list-workflow-connectors) returns each destination's name, provider, target (bucket URI, SFTP host, or warehouse share), and file formats. Only deliverable destinations are listed (enabled, verified, not revoked). ## Request, change, or disable a destination To request a new destination for a workflow, open the workflow's [Pipeline](/docs/ui/workflows/pipeline) panel, choose **Deliver**, click **Add** under Destinations, and click **Set up** next to the destination. The [Support Center](/docs/support-center) request opens prefilled with the workflow and the details we need; fill them in and submit. For a change or to disable a destination, submit a Support Center request that names the destination, what you want to change, and the new value. ## Glossary **Destination:** The configuration that sends completed-run data to your storage or data platform. **Delivery:** One transfer or publication for one run. **Run:** One occurrence of a workflow, scheduled or started on demand. **Workflow:** The configured process that collects and structures your data. **Team:** The Kadoa workspace that owns workflows and destinations. # Databricks Source: https://docs.kadoa.com/docs/destinations/databricks Query data from completed runs through Delta Sharing Kadoa configures the destination for you through the [Support Center](/docs/support-center). ## Before you begin > [tab] Databricks workspace > > * A Unity Catalog-enabled workspace with compute for queries. > * Permission to create a catalog from a share: metastore admin, or `CREATE CATALOG` with `USE PROVIDER` or provider ownership. > > Get your sharing identifier in the workspace where you will query the data: > > ```sql theme={null} > select current_metastore(); > ``` > > Send the full value, including the cloud and region: `::`. > [tab] Open Delta Sharing client > > You need a compatible Delta Sharing client and a contact who can receive credentials securely. > A Databricks workspace is not required. ## Request the destination Send these details through the [Support Center](/docs/support-center): | Detail | Value | | - | - | | Access method | Databricks workspace or open Delta Sharing client | | Sharing identifier | Workspace only: `::` | | Credential contact | Open client only: contact for the activation link | | Activity log | On (default) or off | Activity sharing includes available historical events. ## Import the share > [tab] Databricks workspace > > **1. Find the share** > > Open **Catalog** > gear icon > **OpenSharing** > **Shared with me**. > Older workspaces call it **Delta Sharing**. > Select the Kadoa provider and the share whose name starts with `KADOA_SHARE_`. > A new share can take up to one minute to appear. > > **2. Create a catalog** > > Select **Mount to catalog** > **Create a new catalog**. > Enter a name such as `kadoa`. Select **Create**. > > **3. Grant access** > > Give readers `USE CATALOG` on the catalog, `USE SCHEMA` on its schemas, and `SELECT` on the shared tables. > [tab] Open Delta Sharing client > > Open the activation link. Select **Download Credential File**. You can download the file only once. Kadoa does not store it. > Store the file securely. Restrict access to authorized readers. > > Tokens expire within 365 days of creation. Contact Support before expiry. > If you lose the file, request a replacement from Support. > > For Python, install `delta-sharing`. List the shared tables using the path to your credential file: > > ```python theme={null} > import delta_sharing > > profile = "" > client = delta_sharing.SharingClient(profile) > print(client.list_all_tables()) > ``` > > Use the returned share, schema, and table names to read a table: > > ```python theme={null} > df = delta_sharing.load_as_pandas( > f"{profile}#.." > ) > ``` > > For large tables, use a [Spark client](https://docs.databricks.com/aws/en/opensharing/read-data-open#apache-spark-read-shared-data) instead of loading the table into pandas. ## Verify the first delivery Data reaches Databricks within minutes after a workflow run completes. 1. Find your `workflow_id` in `WORKFLOW_RUNS`. Select the delivered run and note its `job_id`. 2. Match its `workflow_id`, `schema_version`, and `schema_fingerprint` in `WORKFLOW_SCHEMA_VERSIONS`. Read `versioned_table_name`. 3. Read that table with a `job_id` filter. Compare the row count with the same run in the Kadoa dashboard. In Databricks, select your catalog and the schema whose name starts with `TEAM_`. Run this query: ```sql theme={null} select count(*) as row_count from where job_id = ''; ``` With the Python client, use the earlier example to read `WORKFLOW_RUNS` and `WORKFLOW_SCHEMA_VERSIONS`. Then load the versioned table and count the run's rows: ```python theme={null} print(df.loc[df["job_id"] == ""].shape[0]) ``` ## Query the shared tables | Table | Contains | | - | - | | `WORKFLOW_RUNS` | Delivered runs, schema versions, row counts, and timestamps | | `WORKFLOW_SCHEMA_VERSIONS` | Workflow IDs and their generated table names | | `WORKFLOW_SCHEMA_FIELDS` | Field names, types, and positions in `field_index` | | `WF___V` | Workflow data for one schema version | | `WF___LATEST` | Workflow data for the latest schema version | Get exact table names from `WORKFLOW_SCHEMA_VERSIONS`. Do not substitute a workflow ID into a table name. Each data table can contain multiple runs. Filter by `job_id` to query one run. Older schema versions remain available in versioned tables. Other tables include `ACTIVITY_LOG` when enabled and `TPL___LATEST` for shared template data. ## What's next > [card] [Snowflake](/docs/destinations/snowflake) > > Query shared secure views. > [card] [How data destinations work](/docs/destinations/data-destinations) > > Review destination behavior. # Email Source: https://docs.kadoa.com/docs/destinations/email Send workflow notifications to one or more email addresses An email channel sends notifications to a list of addresses. Create one channel per audience, for example one for the data team and one for on-call. ## Create an email channel 1. Go to **Settings > Notifications**. 2. Under **Channels**, select **Create channel** and choose **Email**. 3. Add one or more recipients. If you add several, give the group a name. 4. Save the channel. > [tab] Single recipient > > ![The Create channel dialog with Email selected and one recipient address](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-ui.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=cbc3e43b88a9e340b32aa57067322e25) > [tab] Group of recipients > > ![The Create channel dialog with Email selected, several recipients, and a group name](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-ui-group.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=cda7622628669bdd28eea2e1351ed4e9) You can also create a channel while you add a notification. Then subscribe the channel to events for the team or for one workflow. See [Notifications in the UI](/docs/notifications). ## Set up with code `EMAIL: true` sends to your account email. Pass `recipients` to send to other addresses. ```typescript title="Node SDK" theme={null} import { KadoaClient } from "@kadoa/node-sdk"; const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); // Use your account email await client.notification.setupForWorkflow({ workflowId: "YOUR_WORKFLOW_ID", events: ["workflow_finished", "workflow_failed"], channels: { EMAIL: true }, }); // Or specify custom recipients await client.notification.setupForWorkflow({ workflowId: "YOUR_WORKFLOW_ID", events: ["workflow_data_change"], channels: { EMAIL: { name: "team-alerts", recipients: ["team@company.com", "alerts@company.com"], }, }, }); ``` ```python title="Python SDK" theme={null} from kadoa_sdk import KadoaClient, KadoaClientConfig from kadoa_sdk.notifications import SetupWorkflowNotificationSettingsRequest client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) # Use your account email client.notification.setup_for_workflow( SetupWorkflowNotificationSettingsRequest( workflow_id="YOUR_WORKFLOW_ID", events=["workflow_finished", "workflow_failed"], channels={"EMAIL": True}, ) ) # Or specify custom recipients client.notification.setup_for_workflow( SetupWorkflowNotificationSettingsRequest( workflow_id="YOUR_WORKFLOW_ID", events=["workflow_data_change"], channels={ "EMAIL": { "name": "team-alerts", "recipients": ["team@company.com", "alerts@company.com"], } }, ) ) ``` For the REST API, see [Create notification channel](/api-reference/notifications/create-notification-channel). ## What each email contains Each event type has its own email layout. Data change emails can also include an [AI summary](/docs/notifications#ai-summary) and a CSV attachment. Choose these under [notification content](/docs/notifications#notification-content). > [tab] workflow_data_change > > ![Data change email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-data-change.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=4e3ae6f8c1c23f968268059bd7b3e672) > [tab] workflow_finished > > ![Workflow finished email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-finished.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=0f66b43ae2c9f685412497934cc1dd04) > [tab] workflow_failed > > ![Workflow failed email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-failed.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=ef5dafc8b7353989720a1f7a570a78f8) > [tab] workflow_data_quality_change > > ![Data quality email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-data-quality.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=4f8307176c67dc7d5c2cf1158343bcfe) ## System emails Kadoa sends these emails automatically. You cannot turn them off. > [tab] workflow_sample_finished > > Sent to the workflow author when preview data is ready for review. > > ![Sample ready email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-sample-finished.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=b2a0d276e207bb5dd4f5b8118884b88e) # Google Cloud Storage Source: https://docs.kadoa.com/docs/destinations/google-cloud-storage Deliver data from completed runs to a Cloud Storage bucket Kadoa configures the destination for you through the [Support Center](/docs/support-center). ## Before you begin * A Google Cloud project with permission to create a bucket and edit its IAM policy. * Kadoa's service account email, provided by Support. Your bucket IAM policy grants access without sharing keys. * An authenticated Google Cloud CLI (`gcloud`). ## Prepare the bucket **1. Create a private bucket** Create a dedicated bucket and keep it private. **2. Grant Kadoa access** Replace both placeholders, then run this command. ```bash theme={null} gcloud storage buckets add-iam-policy-binding "gs://" \ --member="serviceAccount:" \ --role="roles/storage.objectUser" ``` Kadoa needs `roles/storage.objectUser` to create, list, overwrite, and delete objects. `roles/storage.objectCreator` is not enough. ## Request the destination Send these details through the [Support Center](/docs/support-center): Use a prefix with no leading or trailing slash, for example `kadoa`. | Detail | Example | | - | - | | Bucket name | `` | | Prefix | `kadoa` | | Formats | Parquet, JSONL, JSON, CSV | | Workflow health files | On (default) or off | ## Verify the first delivery After a workflow run completes, list the delivered files with your authenticated `gcloud` account: ```bash theme={null} gcloud storage ls "gs:////" --recursive ``` * Confirm one file per selected format exists for that run. * Confirm each data file's row count matches the same run in the dashboard. * Run the workflow again. With the [default path template](/docs/destinations/data-destinations#file-layout-and-path-template), confirm that the new run has a new folder. ## What's next > [card] [Load into Snowflake with Snowpipe](/docs/destinations/snowflake#load-cloud-storage-exports-with-snowpipe) > > Load files from your bucket with a Snowpipe that you manage. > [card] [How data destinations work](/docs/destinations/data-destinations) > > See delivery timing, formats, file paths, and workflow health files. > [card] [Amazon S3](/docs/destinations/amazon-s3) > > Deliver completed-run data to an S3 bucket. # Integrations Source: https://docs.kadoa.com/docs/destinations/overview Choose where Kadoa sends your data Kadoa delivers the data of completed runs to storage and data platforms you own, sends you events, and answers requests from your code. ## Data delivery > [card] [Amazon S3](/docs/destinations/amazon-s3) > > Deliver files to an S3 bucket you own. > [card] [Google Cloud Storage](/docs/destinations/google-cloud-storage) > > Deliver files to a Cloud Storage bucket you own. > [card] [Snowflake](/docs/destinations/snowflake) > > Query read-only secure views in Snowflake. > [card] [Databricks](/docs/destinations/databricks) > > Query read-only Delta tables through Delta Sharing. > [card] [SFTP](/docs/destinations/sftp) > > Deliver files to an SFTP server you host. > [card] [How data destinations work](/docs/destinations/data-destinations) > > Compare scope, formats, timing, and status. Azure Blob Storage is available on request through the [Support Center](/docs/support-center). ## Events & streaming > [card] [Webhooks](/docs/destinations/webhooks) > > Send an HTTP POST to your endpoint when events occur. > [card] [WebSockets](/docs/destinations/websockets) > > Stream updates to live dashboards. ## Programmatic access > [card] [Export data](/docs/export-data) > > Fetch data on demand with the REST API or SDK, with pagination. > [card] [MCP](/docs/sdk/mcp) > > Read Kadoa data from Claude, ChatGPT, or Cursor. ## Notification channels For the same events in your code, use [Webhooks](/docs/destinations/webhooks) or [WebSockets](/docs/destinations/websockets). > [card] [Email](/docs/destinations/email) > > Alerts and notifications by email. > [card] [Slack](/docs/destinations/slack) > > Team notifications in Slack. ## Formats by method Amazon S3, Google Cloud Storage, and SFTP deliver files in the formats below. Snowflake and Databricks provide tables from completed runs for you to query. | Format | Available in | | - | - | | JSON | REST API, SDK, MCP, Webhooks, WebSockets, Amazon S3, Google Cloud Storage, SFTP | | Parquet | Amazon S3, Google Cloud Storage, SFTP | | JSONL | Amazon S3, Google Cloud Storage, SFTP | | CSV | REST API, Amazon S3, Google Cloud Storage, SFTP | | Tables | Snowflake, Databricks | # SFTP Source: https://docs.kadoa.com/docs/destinations/sftp Deliver data from completed runs to your SFTP server Kadoa configures the destination for you through the [Support Center](/docs/support-center). ## Before you begin Your SFTP server must support: * Public internet access without a source-IP allowlist. Kadoa has no fixed SFTP IP address. * Password or SSH private-key login. * One of these host-key algorithms: `ssh-ed25519`, `ecdsa-sha2-nistp256`, `rsa-sha2-256`, or `rsa-sha2-512`. * Renaming files within the base directory. Kadoa uploads each file with a `.part` suffix and renames it when the upload is complete. Kadoa uses `posix-rename@openssh.com` when the server offers it, and the standard SFTP rename otherwise. If your server requires a source-IP allowlist, use [Amazon S3](/docs/destinations/amazon-s3) or [Google Cloud Storage](/docs/destinations/google-cloud-storage). ## Prepare the server **1. Create an account** Create a dedicated account on your SFTP server. **2. Create the base directory** Create a directory such as `/incoming/kadoa`. Use an absolute path as the SFTP account sees it. The path cannot be `/`. **3. Grant file access** Allow the account to create subdirectories and read, write, rename, and delete files within the base directory. **4. Get the server fingerprint** Get the host-key algorithm and SHA-256 fingerprint from your server administrator. For an OpenSSH server with an Ed25519 host key, run this command on the server: ```bash theme={null} ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub ``` Record the full fingerprint, including `SHA256:`. This example uses the `ssh-ed25519` algorithm. > [!WARNING] > > Confirm the fingerprint with your server administrator through a separate channel from the one used for the server address. Kadoa checks the fingerprint before authentication. If it does not match, Kadoa stops the connection. ## Add your credentials A team Owner or Admin must create the [Secret Variables](/docs/workflows/secrets). Never send passwords, private keys, or passphrases through email, chat, or a ticket. In **Team settings**, open **Variables**. Choose one login method: * **Password:** Store the password in a Secret Variable such as `SFTP_PASSWORD`. * **SSH private key:** Authorize the matching public key for the SFTP account. Kadoa-managed secret fields support single-line values only. Store the private key in your Google Secret Manager project. Create a Secret Variable such as `SFTP_PRIVATE_KEY` that references it. For an encrypted private key, store its passphrase in a separate Secret Variable such as `SFTP_KEY_PASSPHRASE`. ## Request the destination Send these non-secret details through the [Support Center](/docs/support-center): | Detail | Example | | - | - | | Host | `sftp.example.com` | | Port | `22` | | Username | `kadoa-delivery` | | Authentication method | Password or SSH private key | | Credential variable | `SFTP_PASSWORD` or `SFTP_PRIVATE_KEY` | | Passphrase variable, for encrypted keys | `SFTP_KEY_PASSPHRASE` | | Host-key algorithm | `ssh-ed25519` | | Host-key fingerprint | `SHA256:<43_CHARACTERS>` | | Base directory | `/incoming/kadoa` | | Formats | Parquet, JSONL, JSON, CSV | | Workflow health files | Off (default) or on | ## Verify the first delivery After a workflow run completes, open the base directory in your SFTP client. * Confirm that each selected format has one data file for the run. * Ignore data files that end in `.part`. These files are incomplete and can remain after an interrupted delivery. * Confirm that each data file's row count matches the same run in the dashboard. * Run the workflow again. With the [default path template](/docs/destinations/data-destinations#file-layout-and-path-template), confirm that the new run has a new directory. See [How data destinations work](/docs/destinations/data-destinations) for formats, file paths, and workflow health files. # Slack Source: https://docs.kadoa.com/docs/destinations/slack Receive workflow notifications in Slack Send [notification events](/docs/notifications) such as data changes, workflow health, and data quality issues to a Slack channel. ## Connect a channel 1. Create an [incoming webhook](https://api.slack.com/messaging/webhooks) in your Slack workspace for the channel you want to post to. 2. In Kadoa, go to **Settings > Notifications**. Under **Channels**, select **Create channel** and choose **Slack**. 3. Enter the channel name and paste the webhook URL, then save. ![Slack channel setup](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/slack/slack-channel-ui.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=b670884cbecc9fcf379632e2d99512b4) Leave **Channel ID** empty unless Kadoa support has set up a managed Slack app for your workspace. Then subscribe the channel to events for the team or for one workflow. See [Notifications](/docs/notifications) for the available events and configuration options. # Snowflake Source: https://docs.kadoa.com/docs/destinations/snowflake Query data from completed runs through read-only Snowflake views Kadoa configures the destination for you through the [Support Center](/docs/support-center). ## Before you begin * A Snowflake role with `IMPORT SHARE` and `CREATE DATABASE` privileges. `ACCOUNTADMIN` has both. * Access to a Snowflake warehouse for queries. Find your account details: ```sql theme={null} select current_organization_name() as organization_name, current_account_name() as account_name, current_region() as snowflake_region; ``` If the query fails, open the account selector in Snowsight and select **View account details**. Copy the **Account/Server URL** instead. ## Request the destination Send these details or your Account/Server URL through the [Support Center](/docs/support-center): | Detail | Example | | - | - | | Organization name | `` | | Account name | `` | | Region | `` | | Activity log | Off (default) or on | Historical activity events are not included. Kadoa confirms availability for your region. Accounts in Kadoa's region use a direct share. Other regions or clouds require a private listing. ## Import the share For a direct share, complete these steps: **1. Find the share** In Snowsight, open **Data sharing** > **External sharing** > **Shared with you**. Under **Ready to Get**, select the share whose name starts with `KADOA_SHARE_`. **2. Create a database** Enter a database name such as `KADOA`. Choose the roles that can query it. Select **Get Data**. **3. Send the verification code** In your new database, find the schema whose name starts with `TEAM_`. Replace `` with that schema name. If you chose another database name, replace `KADOA` too: ```sql theme={null} select verification_nonce from KADOA..connector_verification; ``` Send the returned code to Support. Kadoa then publishes data to the same database and schema. For a private listing, open **Shared with you** > **Privately shared listings**. Select the listing whose name starts with `KADOA_LISTING_`. Complete the [listing import steps](https://docs.snowflake.com/en/collaboration/consumer-listings-access). Support provides the verification instructions for your listing. ## Verify the first delivery Allow about 5 minutes after a workflow run completes. Select your warehouse, database, and Kadoa schema in Snowsight. Find the delivered run and its data view: ```sql theme={null} select r.job_id, r.schema_version, r.row_count, r.shared_at, v.view_name from workflow_runs r join workflow_schema_versions v on r.workflow_id = v.workflow_id and r.schema_version = v.schema_version and r.schema_fingerprint = v.schema_fingerprint where r.workflow_id = '' order by r.shared_at desc limit 20; ``` Use the returned `view_name` and `job_id` to count that run's rows: ```sql theme={null} select count(*) as row_count from where job_id = ''; ``` Confirm that `job_id` and the row count match the same run in the Kadoa dashboard. ## Query the shared views | View | Contains | | - | - | | `WORKFLOW_RUNS` | Delivered runs, schema versions, row counts, and timestamps | | `WORKFLOW_SCHEMA_VERSIONS` | Workflow IDs and their generated view names | | `WORKFLOW_SCHEMA_FIELDS` | Field names, types, and positions in `field_order` | | `WF___V` | Workflow data for one schema version | | `WF___LATEST` | Workflow data for the latest schema version | Get exact view names from `WORKFLOW_SCHEMA_VERSIONS`. Do not substitute a workflow ID into a view name. Each data view can contain multiple runs. Filter by `job_id` to query one run. Versioned views keep their schema when a new version appears. Optional views include `ACTIVITY_LOG` and `TPL___LATEST` for template data. ## Load cloud storage exports with Snowpipe You can also load files from [Amazon S3](/docs/destinations/amazon-s3) or [Google Cloud Storage](/docs/destinations/google-cloud-storage) with a Snowpipe you manage. This option uses bucket delivery instead of the native Snowflake share. 1. Complete a workflow run so a sample data file exists. 2. Limit the pipe to one workflow's path and one format, such as Parquet. Exclude other formats and workflow health files. 3. Configure storage access and automatic loading with Snowflake's [S3 guide](https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-s3) or [GCS guide](https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-gcs). See [file paths](/docs/destinations/data-destinations#file-layout-and-path-template) for the default layout. If Kadoa hosts your S3 bucket, send Support the pipe's `notification_channel` value to configure event notifications. ## What's next > [card] [Amazon S3](/docs/destinations/amazon-s3) > > Set up bucket delivery. > [card] [Databricks](/docs/destinations/databricks) > > Use Delta Sharing. > [card] [How data destinations work](/docs/destinations/data-destinations) > > See delivery timing, formats, and file paths. # Webhooks Source: https://docs.kadoa.com/docs/destinations/webhooks Receive HTTP notifications when workflow events occur > [!NOTE] > > Your webhook endpoint must be publicly accessible. ## Setup ```typescript title="Node SDK" theme={null} import { KadoaClient } from "@kadoa/node-sdk"; const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); await client.notification.setupForWorkflow({ workflowId: "YOUR_WORKFLOW_ID", events: ["workflow_data_change"], channels: { WEBHOOK: { name: "my-webhook", webhookUrl: "https://api.example.com/webhooks/kadoa", httpMethod: "POST", }, }, }); ``` ```python title="Python SDK" theme={null} from kadoa_sdk import KadoaClient, KadoaClientConfig from kadoa_sdk.notifications import SetupWorkflowNotificationSettingsRequest client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) client.notification.setup_for_workflow( SetupWorkflowNotificationSettingsRequest( workflow_id="YOUR_WORKFLOW_ID", events=["workflow_data_change"], channels={ "WEBHOOK": { "name": "my-webhook", "webhookUrl": "https://api.example.com/webhooks/kadoa", "httpMethod": "POST", } }, ) ) ``` For the REST API, see [Create notification channel](/api-reference/notifications/create-notification-channel). ### Dashboard Setup 1. Go to **Settings > Notifications** 2. Under **Channels**, select **Create channel** and choose **Webhook** 3. Enter your endpoint URL 4. Save changes ![Webhook setup](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/webhook/webhook-ui.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=37a882d09c705f539d6f043dad6f86a8) ## Authentication Add custom headers for webhook authentication: ```json theme={null} // POST /v5/notifications/channels { "channelType": "WEBHOOK", "name": "Authenticated Webhook", "config": { "webhookUrl": "https://api.example.com/webhooks/kadoa", "httpMethod": "POST", "auth": { "type": "HEADER", "headers": { "Authorization": "Bearer your-secret-token", "X-Custom-Header": "custom-value" } } } } ``` ## Request Format Every webhook request includes: | Header | Description | | - | - | | `Content-Type` | `application/json` | | `X-Kadoa-Event` | Event type (e.g., `workflow_data_change`) | ## Payload Reference All payloads follow this structure: ```json theme={null} { "eventType": "event_name", "timestamp": "2025-01-15T10:30:00Z", "data": { /* event-specific data */ } } ``` ```json title="workflow_data_change" theme={null} { "eventType": "workflow_data_change", "timestamp": "2025-01-15T10:30:00Z", "data": { "id": "change_123", "workflowId": "wf_123", "data": [ { "id": "record-1", "name": "Product A", "price": 29.99 } ], "differences": [ { "type": "changed", "fields": [ { "key": "price", "value": 29.99, "previousValue": 24.99 } ] }, { "type": "added", "fields": [ { "key": "id", "value": "record-2" }, { "key": "name", "value": "New Product" } ] } ], "url": "https://monitored-page.com", "createdAt": "2025-01-15T10:30:00Z", "summary": "Prices changed on 1 product and 1 new product appeared. Product A rose from \"24.99\" to \"29.99\".", "metadata": { "workflowName": "Product Monitor", "tags": ["pricing"] } } } ``` ```json title="workflow_finished" theme={null} { "eventType": "workflow_finished", "timestamp": "2025-01-15T10:30:00Z", "data": { "id": "wf_123", "jobId": "job_456", "source": "scheduler" } } ``` ```json title="workflow_failed" theme={null} { "eventType": "workflow_failed", "timestamp": "2025-01-15T10:30:00Z", "data": { "workflowId": "wf_123", "workflowName": "Product Monitor", "source": "Product Monitor", "sourceUrl": "https://monitored-page.com", "url": "https://monitored-page.com", "reason": "Access blocked by bot protection", "action": "No action needed. We'll email you when the workflow recovers." } } ``` ```json title="workflow_recovered" theme={null} { "eventType": "workflow_recovered", "timestamp": "2025-01-15T10:45:00Z", "data": { "workflowId": "wf_123", "workflowName": "Product Monitor", "source": "Product Monitor", "sourceUrl": "https://monitored-page.com", "url": "https://monitored-page.com" } } ``` ```json title="workflow_data_quality_change" theme={null} { "eventType": "workflow_data_quality_change", "timestamp": "2025-01-15T10:30:00Z", "data": { "workflowId": "wf_123", "jobId": "job_456", "previousJobId": "job_455", "workflowName": "Product Monitor", "createdAt": "2025-01-15T10:30:00Z", "dataQualityIssues": { "current": 4, "previous": 2 }, "rowViolations": { "current": 4, "previous": 2 }, "currentSummary": { "schemaValidation": { "rowViolationCount": 4, "rules": null, "columns": [ { "name": "price", "violations": [{ "kind": "ROW_COUNT", "ruleKey": "presence", "count": 4 }] } ] }, "completeness": { "score": 90, "actualRowCount": 48, "expectedRowCount": 52, "signalCount": 2, "cappedByLimit": false }, "semanticPlausibility": { "score": 98, "flaggedColumns": [] } }, "previousSummary": { "schemaValidation": { "rowViolationCount": 2, "rules": null, "columns": [ { "name": "price", "violations": [{ "kind": "ROW_COUNT", "ruleKey": "presence", "count": 2 }] } ] }, "completeness": { "score": 96, "actualRowCount": 50, "expectedRowCount": 52, "signalCount": 2, "cappedByLimit": false }, "semanticPlausibility": { "score": 98, "flaggedColumns": [] } } } } ``` `workflow_data_change` `data` holds the records of the run that produced the change. If they exceed the 50 MB notification limit, `data` is an empty array and `dataOmitted` is set: `reason` is `PAYLOAD_TOO_LARGE`, and `message` names the API call for this run. Fetch the records with `GET /v4/workflows/{workflowId}/data?runId={jobId}`. Branch on `reason`; the `message` text can change. `workflow_data_change` `summary` is the [AI summary](/docs/notifications#ai-summary) of the change. It is `null` when the AI summary option is off. When the **Changed records** option is off, `differences` is an empty array. `workflow_failed` fields: required `workflowId`, `source`, `reason`, `action`; optional `workflowName`, `sourceUrl`, `url`. `workflow_recovered` fields: required `workflowId`, `workflowName`, `source`; optional `sourceUrl`, `url`. | Event | Description | | - | - | | `workflow_data_change` | Monitored data changes. Difference types: `changed`, `added`, `removed` | | `workflow_finished` | Workflow completes successfully | | `workflow_failed` | Workflow fails. Includes `reason` and a human-readable `action`. | | `workflow_recovered` | Workflow recovers after failure. Sent via `workflow_failed` subscription; suppressed if `workflow_finished` is also configured. | | `workflow_data_quality_change` | Data quality issues of a run change. Formerly `workflow_validation_anomaly_change`. | ## Error Handling Kadoa makes up to 3 attempts to deliver each webhook. Each attempt times out after 30 seconds. | Attempt | Wait before it | | - | - | | 1st | None | | 2nd | 1 second | | 3rd | 2 seconds | Return a `2xx` status code to acknowledge receipt. # WebSockets Source: https://docs.kadoa.com/docs/destinations/websockets Receive real-time event notifications via WebSockets Connect to Kadoa's WebSocket server for instant event notifications. Kadoa broadcasts events to your connected clients. > [!NOTE] > > WebSockets are Kadoa's lowest-latency notification channel, but they should be treated as a best-effort realtime transport rather than an exactly-once delivery system. For critical workflows, make your event handling idempotent and use `event.id` as a dedupe key. ## Setup ```typescript title="Node SDK" theme={null} import { KadoaClient } from "@kadoa/node-sdk"; const client = new KadoaClient({ apiKey: "YOUR_API_KEY" }); const realtime = await client.connectRealtime(); realtime.onEvent((event) => { console.log("Event:", event.type, event.message); }); realtime.onConnection((connected) => { console.log("Connected:", connected); }); realtime.onError((error) => { console.error("Error:", error); }); ``` ```python title="Python SDK" theme={null} import asyncio from kadoa_sdk import KadoaClient, KadoaClientConfig async def main() -> None: client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY")) realtime = await client.connect_realtime() realtime.on_event(lambda event: print("Event:", event)) realtime.on_connection(lambda connected, reason=None: print("Connected:", connected)) realtime.on_error(lambda error: print("Error:", error)) try: await asyncio.Event().wait() finally: await realtime.close_async() asyncio.run(main()) ``` `workflow_failed` message fields: required `workflowId`, `source`, `reason`, `action`; optional `workflowName`, `sourceUrl`, `url`. `workflow_recovered` message fields: required `workflowId`, `workflowName`, `source`; optional `sourceUrl`, `url`. For the REST API, see [Create notification channel](/api-reference/notifications/create-notification-channel). ### Dashboard Setup 1. Go to **Settings > Notifications** 2. Under **Channels**, select **Create channel** and choose **Websocket** 3. Select the **Enable Websocket real-time streaming** checkbox. ![WebSocket setup](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/websocket/websocket-ui.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=4429b54e466ea659a7090ff4d7e4ea43) ## Connect to both EU and US Keep two WebSocket connections open concurrently, one to each regional endpoint: | Connection | Endpoint | | - | - | | EU | `wss://realtime-eu.kadoa.com` | | US | `wss://realtime-us.kadoa.com` | `wss://realtime.kadoa.com` routes to the nearest healthy region. Using it alongside the US endpoint does not guarantee connections to two different regions. 1. Use the same team's API key for both connections. For each connection, request a token with `POST https://api.kadoa.com/v4/oauth2/token`, passing the key in the `x-api-key` header. The response contains `access_token` and `team_id`. 2. Connect to each regional endpoint with `?access_token=` appended. Keep API keys, tokens, and authenticated URLs out of logs. 3. Send the following message on **both** sockets, using the returned `team_id`: ```json theme={null} { "action": "subscribe", "channel": "" } ``` 4. Confirm each socket receives `subscribe.ack`. Its `region` should be `europe-west3` for EU and `us-east1` for US. Treat acknowledgments, heartbeats, and `control.draining` messages separately from business events. 5. Both sockets receive the same team feed. Process the first arrival of each event and deduplicate subsequent copies by `event.id` across both connections. If separate processes consume the sockets, they need shared deduplication or idempotent downstream processing. 6. Reconnect each socket independently to its regional endpoint, obtaining a fresh token and subscribing again. Track the latest `_cursor` separately for each connection, including duplicate deliveries, and send it as `lastCursor` when resubscribing. Follow the drain and heartbeat handling below while keeping the other connection active. To verify the setup, disconnect EU and confirm US continues receiving events. Restore EU, then repeat for US. Both regions share upstream event infrastructure; this protects against a connection or regional serving failure, not every possible pipeline outage. ## Reconnects and Redeploys During an infrastructure drain or redeploy, Kadoa sends a `control.draining` message before closing the socket. This is an expected lifecycle event, not a workflow failure and not a permanent outage. Clients should reconnect automatically when they receive `control.draining`: 1. Detect `control.draining`. 2. If it includes `retryAfterMs`, wait roughly that long. Otherwise use a short reconnect delay. 3. Open a new WebSocket connection. 4. Re-subscribe to your team channel after the new connection is open. Kadoa also sends heartbeat messages. If your client stops receiving heartbeats for too long, close the stale socket and reconnect using the same flow. After the drain notice, Kadoa will close the old socket with close code `1001` and reason `Server shutting down`. Treat that close as the final shutdown of the old connection, not as a workflow error. ### Reliability Notes * WebSockets are optimized for low-latency notifications, not for guaranteed exactly-once delivery. * A reconnecting client can still observe a brief gap during deploys, drains, or network interruptions. * Custom clients can reduce that gap by persisting the latest event `_cursor` and re-subscribing with `lastCursor`. * Even with overlap-aware reconnects, clients should treat `event.id` as an idempotency key and dedupe repeated deliveries. ### Advanced Custom Client Behavior Kadoa may send an additive control-plane message before closing a socket: ```json theme={null} { "type": "control.draining", "connectionId": "12345-1711111111111-7", "retryAfterMs": 500, "deadlineAt": "2026-03-22T14:05:30.000Z", "resumeSupported": true } ``` Business events may include an optional `_cursor`: ```json theme={null} { "type": "workflow_finished", "eventType": "workflow_finished", "id": "e66cc5e9-93a1-4eb7-8aa2-94c210374c4e", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "_cursor": "1742-0", "message": { "id": "wf_123", "jobId": "job_456", "source": "https://monitored-page.com", "workflowName": "Product Monitor" } } ``` If you run a custom client and want lower-disruption reconnects, store the latest `_cursor` and re-subscribe with: ```json theme={null} { "action": "subscribe", "channel": "", "lastCursor": "1742-0" } ``` This improves continuity, but it is still not a promise of zero-loss or exactly-once delivery. ```python title="Python reconnect example" theme={null} import json import threading from collections.abc import Mapping import requests import websocket API_KEY = "YOUR_API_KEY" PUBLIC_API_URI = "https://api.kadoa.com" WSS_API_URI = "wss://realtime.kadoa.com" RECONNECT_DELAY_SECONDS = 5 CONNECTION_DRAINING_CLOSE_CODE = 1001 team_id: str | None = None last_cursor: str | None = None def fetch_access_token() -> tuple[str, str]: response = requests.post( f"{PUBLIC_API_URI}/v4/oauth2/token", headers={"Content-Type": "application/json", "x-api-key": API_KEY}, timeout=10, ) response.raise_for_status() data: Mapping[str, object] = response.json() access_token = data["access_token"] current_team_id = data["team_id"] if not isinstance(access_token, str) or not isinstance(current_team_id, str): raise ValueError("Token response must include string access_token and team_id values") return access_token, current_team_id def connect() -> None: access_token, current_team_id = fetch_access_token() def on_open(ws: websocket.WebSocketApp) -> None: global team_id team_id = current_team_id payload = {"action": "subscribe", "channel": current_team_id} if last_cursor: payload["lastCursor"] = last_cursor ws.send(json.dumps(payload)) def on_message(ws: websocket.WebSocketApp, message: str) -> None: global last_cursor payload: Mapping[str, object] = json.loads(message) if "eventType" not in payload and payload.get("type") in {"heartbeat", "subscribe.ack"}: return if payload.get("type") == "control.draining": retry_after_ms = payload.get("retryAfterMs") retry_after_seconds = ( retry_after_ms / 1000 if isinstance(retry_after_ms, (int, float)) else RECONNECT_DELAY_SECONDS ) threading.Timer(retry_after_seconds, connect).start() return event_type = payload.get("eventType") if not isinstance(event_type, str): return cursor = payload.get("_cursor") if isinstance(cursor, str): last_cursor = cursor print("event", event_type, payload) def on_close( ws: websocket.WebSocketApp, close_status_code: int | None, close_msg: str | None, ) -> None: print(f"closed code={close_status_code} reason={close_msg}") if close_status_code == CONNECTION_DRAINING_CLOSE_CODE: print("old draining socket closed") def on_error(ws: websocket.WebSocketApp, error: object) -> None: print("websocket error", error) socket = websocket.WebSocketApp( f"{WSS_API_URI}?access_token={access_token}", on_open=on_open, on_message=on_message, on_close=on_close, on_error=on_error, ) socket.run_forever() connect() ``` ## Event Handling Filter events by type: ```typescript theme={null} realtime.onEvent((event) => { switch (event.type) { case "workflow_finished": console.log("Workflow completed:", event.message.id); break; case "workflow_data_change": console.log("Data changed:", event.message.differences); break; case "workflow_failed": console.log("Workflow failed:", event.message.reason); break; case "workflow_recovered": console.log("Workflow recovered:", event.message.workflowId); break; } }); ``` ## Event Format Business events follow this structure. `type` and `eventType` contain the same event name. `resendCount` is `0` on the first delivery and increases on resends; use `id` to deduplicate deliveries. `_cursor` is optional and can be used to resume after reconnecting. Control messages such as `subscribe.ack`, `heartbeat`, and `control.draining` use `type` and do not have this business-event envelope. ```json theme={null} { "type": "event_name", "eventType": "event_name", "id": "e66cc5e9-93a1-4eb7-8aa2-94c210374c4e", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "_cursor": "1742-0", "message": {} } ``` ```json title="workflow_data_change" theme={null} { "type": "workflow_data_change", "eventType": "workflow_data_change", "id": "00000000-0000-4000-8000-000000000001", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "message": { "id": "change_123", "workflowId": "wf_123", "jobId": "job_456", "data": [ { "id": "record-1", "name": "Product A", "price": 29.99 } ], "differences": [ { "type": "changed", "fields": [ { "key": "id", "value": "record-1", "previousValue": "record-1", "changed": false }, { "key": "name", "value": "Product A", "previousValue": "Product A", "changed": false }, { "key": "price", "value": 29.99, "previousValue": 24.99, "changed": true } ] } ], "url": "https://monitored-page.com", "createdAt": "2025-01-15T10:30:00.000Z", "summary": null, "metadata": { "workflowName": "Product Monitor", "tags": ["pricing"] } } } ``` ```json title="workflow_finished" theme={null} { "type": "workflow_finished", "eventType": "workflow_finished", "id": "00000000-0000-4000-8000-000000000002", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "message": { "id": "wf_123", "jobId": "job_456", "source": "https://monitored-page.com", "workflowName": "Product Monitor" } } ``` ```json title="workflow_failed" theme={null} { "type": "workflow_failed", "eventType": "workflow_failed", "id": "00000000-0000-4000-8000-000000000003", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "message": { "workflowId": "wf_123", "workflowName": "Product Monitor", "source": "Product Monitor", "sourceUrl": "https://monitored-page.com", "url": "https://monitored-page.com", "reason": "Access blocked by bot protection", "action": "No action needed. We'll email you when the workflow recovers." } } ``` ```json title="workflow_recovered" theme={null} { "type": "workflow_recovered", "eventType": "workflow_recovered", "id": "00000000-0000-4000-8000-000000000004", "timestamp": "2025-01-15T10:45:00.000Z", "resendCount": 0, "message": { "workflowId": "wf_123", "workflowName": "Product Monitor", "source": "Product Monitor", "sourceUrl": "https://monitored-page.com", "url": "https://monitored-page.com" } } ``` ```json title="workflow_data_quality_change" theme={null} { "type": "workflow_data_quality_change", "eventType": "workflow_data_quality_change", "id": "00000000-0000-4000-8000-000000000005", "timestamp": "2025-01-15T10:30:00.000Z", "resendCount": 0, "message": { "workflowId": "wf_123", "jobId": "job_456", "previousJobId": "job_455", "workflowName": "Product Monitor", "userId": "user_123", "createdAt": "2025-01-15T10:30:00.000Z", "dataQualityIssues": { "current": 2, "previous": 1 }, "rowViolations": { "current": 4, "previous": 2 }, "currentSummary": { "schemaValidation": { "rowViolationCount": 4, "rules": null, "columns": [ { "name": "price", "violations": [{ "kind": "ROW_COUNT", "ruleKey": "presence", "count": 4 }] } ] }, "completeness": { "issueCount": 1, "actualRowCount": 48, "expectedRowCount": 52, "signalCount": 2, "cappedByLimit": false }, "semanticPlausibility": { "issueCount": 0, "flaggedColumns": [] } }, "previousSummary": { "schemaValidation": { "rowViolationCount": 2, "rules": null, "columns": [ { "name": "price", "violations": [{ "kind": "ROW_COUNT", "ruleKey": "presence", "count": 2 }] } ] }, "completeness": { "issueCount": 0, "actualRowCount": 50, "expectedRowCount": 52, "signalCount": 2, "cappedByLimit": false }, "semanticPlausibility": { "issueCount": 0, "flaggedColumns": [] } } } } ``` `workflow_data_change` `data` holds the records of the run that produced the change. If they exceed the 50 MB notification limit, `data` is an empty array and `dataOmitted` is set: `reason` is `PAYLOAD_TOO_LARGE`, and `message` names the API call for this run. Fetch the records with `GET /v4/workflows/{workflowId}/data?runId={jobId}`. Branch on `reason`; the `message` text can change. `workflow_data_change` events also carry `summary`, the [AI summary](/docs/notifications#ai-summary) of the change. It is `null` when the AI summary option is off. WebSocket events always include `differences`, even when the **Changed records** option is off. `workflow_data_quality_change` summaries use `issueCount` for completeness and semantic plausibility. Metric sections can be `null` when results are unavailable. On the first run, `previousJobId` and `previousSummary` can be `null`. # Document extraction Source: https://docs.kadoa.com/docs/documents Extract fields, tables, and full content from PDFs, such as reports and filings, once or on a schedule Start with a link to a document, or to the web page that links to your documents. Kadoa's [agent](/docs/agent) finds each document and extracts what you ask for. On a schedule, it picks up new documents as they are published.