@textql/sdk
v1.4.61
Published
Official TypeScript SDK for the TextQL API.
Readme
TextQL TypeScript SDK
The official, type-safe TypeScript client for the TextQL API.
Summary
Use @textql/sdk to access TextQL agents, apps, chats, connectors, dashboards,
datasets, and the rest of the public API from Node.js, Bun, or modern edge
runtimes. The SDK includes generated request and response types, authentication,
retries, error handling, and per-operation examples.
Table of Contents
SDK Installation
The SDK can be installed with either npm, pnpm, bun or yarn package managers.
NPM
npm add @textql/sdkPNPM
pnpm add @textql/sdkBun
bun add @textql/sdkYarn
yarn add @textql/sdk[!NOTE] This package is published as an ES Module (ESM) only. For applications using CommonJS, use
await import("@textql/sdk")to import and use this package.
Requirements
For supported JavaScript runtimes, please consult RUNTIMES.md.
SDK Example Usage
Example
import { Textql } from "@textql/sdk";
const textql = new Textql({
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.agents.create({
body: {},
});
console.log(result);
}
run();
Authentication
Per-Client Security Schemes
This SDK supports the following security scheme globally:
| Name | Type | Scheme | Environment Variable |
| -------- | ------ | ------- | -------------------- |
| apiKey | apiKey | API key | TEXTQL_API_KEY |
To authenticate with the API the apiKey parameter must be set when initializing the SDK client instance. For example:
import { Textql } from "@textql/sdk";
const textql = new Textql({
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.agents.create({
body: {},
});
console.log(result);
}
run();
Available Resources and Operations
Agents
- create - CreateAgent
- delete - DeleteAgent
- duplicate - DuplicateAgent
- getAgent - GetAgent
- getDBSchema - Read-only table/column list for the agent's private DuckDB memory (agent_db).
- getDBTablePreview - A bounded row preview of one agent_db table (SELECT ... LIMIT n).
- getRun - GetAgentRun
- listRuns - ListAgentRuns
- list - ListAgents
- resetAgentAvatar - ResetAgentAvatar
- triggerAgent - TriggerAgent
- update - UpdateAgent
- uploadAgentAvatar - UploadAgentAvatar
ApiOAuth
- exchangeClientCredentials - ExchangeApiOAuthClientCredentials
- exchangeCode - ExchangeApiOAuthCode
- exchangeJwtBearer - ExchangeApiOAuthJwtBearer
- getConfig - GetApiOAuthConfig
- getStatus - GetApiOAuthStatus
- getURL - GetApiOAuthURL
- initiateDeviceAuthorization - InitiateDeviceAuthorization
- pollDeviceCodeToken - PollDeviceCodeToken
- revokeToken - RevokeApiOAuthToken
- upsertConfig - Shared OAuth app configuration. Requires connector write permission.
Apps
- heartbeat - Keeps the viewed app's compute worker alive; first view spawns and pre-warms it (dashboard viewer-TTL parity).
- createApp - CreateApp
- deleteApp - DeleteApp
- duplicate - Duplicates an app the caller can view into a new app they own, named "Copy of ". Copies code/files/data sources/compute functions/ schedule; never carries over the source's data snapshot.
- get - GetApp
- getDBSchema - Read-only table/column list for the app's private DuckDB (app_db).
- getDBTablePreview - A bounded row preview of one app_db table (SELECT ... LIMIT n).
- getMemberState - Per-member app state: one JSON blob per (app, member) so apps remember settings/progress. Member always resolved server-side from auth context; per-member persistence, so viewers with read access can save their own state.
- getAppVersion - GetAppVersion
- getAppViewStats - View analytics: reads the engagement views recorded on app page load.
- getMembersWithApps - GetMembersWithApps
- invokeComputeFunction - Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.
- listActivitySince - Cross-member live activity: rows from every member of the app after a seq, each carrying member_id + display_name (resolved server-side; never email).
- listUploads - Lists the invoking viewer's uploads for this app. May recover legacy Library pointers on first use.
- listVersions - Version history: git-backed, one version per save (plus legacy publish-era snapshots); authors can list and restore.
- list - ListApps
- listMyMemberActivity - ListMyAppMemberActivity
- moveAppToFolder - Moves an app into a library folder (or to root when folder_id is empty).
- presenceHeartbeat - Presence heartbeat: sets a short-TTL Valkey key for the member and nudges the app's stream. Presence never touches Postgres and never exposes emails.
- recordMemberActivity - Append-only per-member activity log. Listing is own rows only; no cross-member reads in this release.
- refresh - Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.
- removeUpload - Removes only this viewer's app association, never the dataset itself.
- restoreAppVersion - RestoreAppVersion
- setMemberState - SetAppMemberState
- setFavorite - Favorite/unfavorite a library item (app or dashboard) for the calling member. Per-member, per-org; favorited=false hard-deletes the row. Covers both primitives since the merged library page pins apps and dashboards through one client.
- update - UpdateApp
- verifyRender - Renders the live artifact in the production sandbox and returns browser diagnostics. This is synchronous so callers can verify an app before sharing its URL.
AuditLogs
- configureOtlpExport - ConfigureOtlpExport
- configureS3Export - ConfigureS3Export
- deleteOtlpExportConfig - DeleteOtlpExportConfig
- deleteS3ExportConfig - DeleteS3ExportConfig
- getOtlpExportConfig - GetOtlpExportConfig
- getS3ExportConfig - GetS3ExportConfig
- list - ListAuditLogs
- testOtlpExportConnection - TestOtlpExportConnection
- testS3ExportConnection - TestS3ExportConnection
- triggerOtlpExport - TriggerOtlpExport
- triggerS3Export - TriggerS3Export
Chats
- approveContextPromptChange - ApproveContextPromptChange
- approveOntologyChange - ApproveOntologyChange
- attachAgent - AttachAgentToChat
- attachApp - AttachApp
- attachDashboard - AttachDashboard
- attachDataset - AttachDataset
- bookmark - Bookmark management
- cancelStream - CancelStream
- checkPermissions - CheckChatPermissions
- checkHealth - CheckHealth
- checkStreamlitHealth - CheckStreamlitHealth
- createChat - CreateChat
- delete - DeleteChat
- dismissQuestions - DismissQuestions
- duplicateChat - DuplicateChat
- getApiAnswer - GetAPIChatAnswer
- getArtifact - Full artifact data (lazy load when selected)
- getAutoAttachedFiles - GetAutoAttachedFiles
- get - GetChat
- getArtifactsSummary - Artifact summaries for drawer (lightweight, for listing)
- getChatExecutionTiming - GetChatExecutionTiming
- getHistory - GetChatHistory
- getAll - GetChats
- getCompletionParameters - GetCompletionParameters
- getCompletionParametersBatch - GetCompletionParametersBatch
- getLlmUsage - GetLlmUsage
- getMembersWithChats - List distinct chat creators the user can access
- getPlaybookChats - GetPlaybookChats
- pollEvents - PollChatEvents
- queryOneShot - External API users
- rateCell - RateChatCell appends a row to cell_rating for every click; thumbs-down also upserts a user_thumbs_down thread_warning.
- rejectContextPromptChange - RejectContextPromptChange
- rejectOntologyChange - RejectOntologyChange
- run - RunChat
- send - SendMessage
- submitContextPromptChange - SubmitContextPromptChange
- submitQuestions - Resolve a halted questions cell. Submit hands the answers to the agent and resumes it; Dismiss hands over only the answered count and does NOT resume (the user's next message becomes the dismissal reason).
- unbookmark - UnbookmarkChat
- update - UpdateChat
Connectors
- create - CreateConnector
- createConnectorGroup - CreateConnectorGroup
- delete - DeleteConnector
- deleteConnectorGroup - DeleteConnectorGroup
- duplicateConnector - DuplicateConnector
- executeQuery - ExecuteQuery
- get - GetConnector
- getConnectorCellDurations - GetConnectorCellDurations
- getChats - GetConnectorChats
- getDashboards - GetConnectorDashboards
- getConnectorStats - GetConnectorStats
- getUsage - GetConnectorUsage
- getConnectors - GetConnectors
- getExampleQueries - GetExampleQueries
- getTablePreview - GetTablePreview
- listConnectorGroups - ListConnectorGroups
- listTables - ListConnectorTables
- listQueryTemplates - ListQueryTemplates
- shareConnectorGroup - ShareConnectorGroup
- test - TestConnector
- update - UpdateConnector
- updateConnectorGroup - UpdateConnectorGroup
- updateConnectorGroupMembers - UpdateConnectorGroupMembers
- updateConnectorGroupSettings - UpdateConnectorGroupSettings
Dashboards
- checkHealth - CheckDashboardHealth
- createDashboard - CRUD operations
- createFolder - Folder management
- delete - DeleteDashboard
- deleteFolder - DeleteDashboardFolder
- discardChanges - DiscardDashboardChanges
- duplicate - DuplicateDashboard
- get - GetDashboard
- getVersion - GetDashboardVersion
- getDashboardViewStats - View analytics
- getMembersWithDashboards - Member management
- listFolders - ListDashboardFolders
- listVersions - Version history
- list - ListDashboards
- moveToFolder - MoveDashboardToFolder
- publish - Publishing workflow
- regenerateScreenshot - Screenshot management
- restoreDashboardVersion - RestoreDashboardVersion
- runScheduledDashboard - RunScheduledDashboard
- spawn - Dashboard execution
- updateDashboard - UpdateDashboard
- updateDashboardFolder - UpdateDashboardFolder
- updateDashboardSchedule - Scheduling
Datasets
- createFolder - CreateFolder
- createPowerBIDataset - CreatePowerBIDataset
- createTableauDataset - Create Tableau dataset from views/datasources
- createUploadPresignUrl - uploads
- delete - Delete a dataset (soft delete)
- export - export dataset in "raw" format – original if dataset is uploaded, converted format otherwise (defaults to CSV)
- fetch - GetDataset, GetDatasets only return metadata
- getStats - GetDatasetStats
- getDatasetValues - GetDatasetValues
- get - GetDatasets
- getByIds - GetDatasetsByIds
- getFolders - for AR: CreateFolderACL, UpdateFolderACL, DeleteFolderACL
- processUploadPresignUrl - ProcessUploadPresignUrl
- updateDataset - Update dataset metadata
Harnesses
- list - ListHarnesses
Mcp
- clearOAuthToken - ClearOAuthToken
- delete - DeleteMCPServer
- getServers - GetMCPServers
- handleOAuthCallback - HandleOAuthCallback
- initiateOAuthFlow - InitiateOAuthFlow
- toggleServer - ToggleMCPServer
- upsertMCPServers - UpsertMCPServers
MetricsExports
- configure - ConfigureMetricsExport
- deleteConfig - DeleteMetricsExportConfig
- getMetricsExportConfig - GetMetricsExportConfig
- testConnection - TestMetricsExportConnection
- triggerPush - TriggerMetricsPush
Observability
- activateCustomTopic - ActivateCustomTopic
- backfillCustomTopic - BackfillCustomTopic
- backfillThreadWarnings - BackfillThreadWarnings
- createCustomTopic - CreateCustomTopic
- deactivateCustomTopic - DeactivateCustomTopic
- deleteCustomTopic - DeleteCustomTopic
- exportCsv - ExportObservabilityCsv
- fixCheckRecord - FixCheckRecord
- fixWarning - FixWarning
- getAccessMethodStats - GetAccessMethodStats
- getActivePeopleStats - GetActivePeopleStats
- getActivePeopleTrend - GetActivePeopleTrend
- getBackfillPreview - GetBackfillPreview
- getBackfillStatus - GetBackfillStatus
- getBillingStats - GetBillingStats
- getChatSourceStats - GetChatSourceStats
- getChatTopics - GetChatTopics
- getCheckRecordFix - GetCheckRecordFix
- getCustomTopic - GetCustomTopic
- getCustomTopicPeople - GetCustomTopicPeople
- getCustomTopicThreads - GetCustomTopicThreads
- getEngagementSpectrum - GetEngagementSpectrum
- getMemberActivity - GetMemberActivity
- getObservabilityStats - GetObservabilityStats
- getThreadWarnings - GetThreadWarnings
- listCustomTopics - ListCustomTopics
- refineDraft - Custom topics
- setTopicTagFeedback - SetTopicTagFeedback
- updateCustomTopic - UpdateCustomTopic
Ontology
- addSubmodule - AddOntologySubmodule
- approvePatch - ApprovePatch
- configureRemote - ConfigureOntologyRemote
- createApprovalRule - CreateApprovalRule
- createContextPatchAutoApproveRule - CreateContextPatchAutoApproveRule
- createDirectory - CreateOntologyDirectory
- createFileUploadUrl - CreateOntologyFileUploadUrl
- deleteApprovalRule - DeleteApprovalRule
- deleteContextPatchAutoApproveRule - DeleteContextPatchAutoApproveRule
- deleteDirectory - DeleteOntologyDirectory
- deleteFile - DeleteOntologyFile
- denyPatch - DenyPatch
- exchangeGithubCode - ExchangeOntologyGithubCode
- finalizeFileUpload - FinalizeOntologyFileUpload
- getCodeownerCoverage - GetCodeownerCoverage
- getConfigExportCapabilities - GetConfigExportCapabilities
- getEffectiveOwners - GetEffectiveOntologyOwners
- getFileUsage - GetFileUsage
- getFileUsageTimeline - GetFileUsageTimeline
- getAnaConfig - GetOntologyAnaConfig
- getFile - GetOntologyFile
- getGithubOAuthURL - GetOntologyGithubOAuthURL
- getHistoryFileDiff - GetOntologyHistoryFileDiff
- getOwners - GetOntologyOwners
- getRemote - GetOntologyRemote
- getSizeTimeline - GetOntologySizeTimeline
- getSyncConflicts - GetOntologySyncConflicts
- getUsageSummary - GetOntologyUsageSummary
- getPatch - GetPatch
- getPatchByNumber - GetPatchByNumber
- getPatchCapabilities - GetPatchCapabilities
- getRawPatch - GetRawPatch
- getSkill - GetSkill
- getUsageDetailsForFile - GetUsageDetailsForFile
- listApprovalRules - ListApprovalRules
- listChatsForFile - ListChatsForFile
- listContextPatchAutoApproveRules - ListContextPatchAutoApproveRules
- listGoldenFiles - ListGoldenFiles
- listEntries - ListOntologyEntries
- listHistory - ListOntologyHistory
- listImports - ListOntologyImports
- listSubmodules - ListOntologySubmodules
- listSyncRuns - ListOntologySyncRuns
- listPatchObjects - ListPatchObjects parses the config objects present at a patch's git ref and returns each object's Library path, resolved display name, and granular type (e.g. "playbook", "dashboard/streamlit", "dashboard/dash"). Parse-only: it reuses the snapshot-at-ref + parse steps the preview path performs before spawning — no sandbox spawn, no run_as authorization, no persistence. The frontend uses the dashboard subtype to decide previewability (streamlit/dash).
- listPatchReviewers - ListPatchReviewers
- listPatches - ListPatches
- listSkills - Lists the skills under the ontology's flat skills/ root that the caller can read (OWNERS-filtered). Returns display metadata only — never instruction bodies — feeding the chat composer's
/autocomplete. Unlisted skills are omitted unless include_unlisted is set. - planMerge - PlanOntologyMerge
- previewPullFromRemote - PreviewOntologyPullFromRemote
- pullFromRemote - PullOntologyFromRemote
- pushToRemote - PushOntologyToRemote
- recover - RecoverOntology
- removeRemote - RemoveOntologyRemote
- removeSubmodule - RemoveOntologySubmodule
- renameFile - RenameOntologyFile
- requestPatchReview - RequestPatchReview
- resolveSyncConflict - ResolveOntologySyncConflict
- restorePatch - RestorePatch
- revertPatch - RevertPatch
- saveAllObjectsAsConfig - SaveAllObjectsAsConfig
- saveObjectAsConfig - SaveObjectAsConfig
- setFileGolden - SetOntologyFileGolden
- setOwners - SetOntologyOwners
- triggerConfigDriftReconcile - TriggerConfigDriftReconcile forces an immediate config-sync catch-up for the caller's org: if the Ontology repo's live HEAD differs from the last reconciled commit, it enqueues a reconcile (otherwise no-op). The on-demand equivalent of waiting for the periodic drift scan.
- updateApprovalRule - UpdateApprovalRule
- updateContextPatchAutoApproveRule - UpdateContextPatchAutoApproveRule
- updateSyncConfig - UpdateOntologySyncConfig
- upsertAnaConfig - UpsertOntologyAnaConfig
- upsertFile - UpsertOntologyFile
- validateConfig - Read-only functional validation of a proposed config: parse + dependency resolution/reachability, no authorization and no persistence. "ok" means functionally valid, not "guaranteed to merge" — the merge gate re-checks authorization at approve time.
Playbooks
- attachDashboard - AttachDashboard
- attachDataset - AttachDataset
- cancelTemplateExecution - Cancel template execution for a specific template header
- createPlaybook - CreatePlaybook
- deactivate - DeactivatePlaybook
- delete - DeletePlaybook
- demoPlaybook - DemoPlaybook
- deploy - DeployPlaybook
- duplicate - DuplicatePlaybook
- favoriteReport - Favorite report management
- getActiveSubscribedCount - GetActiveSubscribedPlaybooksCount
- getChatReportsSummary - Lightweight endpoint for chat report drawer - returns summaries without full blocks
- getMembersWith - GetMembersWithPlaybooks
- fetch - GetPlaybook
- getBatchRun - Get a specific batch run
- getPlaybookLineage - GetPlaybookLineage
- getReports - GetPlaybookReports
- getPlaybookReportsBatch - Get reports for multiple template data IDs in a single batch request
- get - GetPlaybooks
- getPlaybooksPreviews - GetPlaybooksPreviews
- getReportById - Get a single report by ID
- getReportsWithFilters - GetReportsWithFilters
- listSlackChannelContextPlaybooks - List all Slack channels context playbook mappings for the organization
- listAllTeamsChannelContextPlaybooks - ListAllTeamsChannelContextPlaybooks
- listBatchRuns - List batch runs for a playbook
- listSlackChannelsForContext - List Slack channel IDs where the given playbook is set as the context
- listTeamsChannelsForContextPlaybook - ListTeamsChannelsForContextPlaybook
- markReportAsRead - Report read tracking
- previewSlackReport - PreviewSlackReport
- removeDashboard - RemoveDashboard
- removeDataset - RemoveDataset
- run - RunPlaybook
- setSlackChannelContextPlaybook - Set the context playbook for a Slack channel. This associates the given playbook to a Slack channel so that Slack messages in that channel use the playbook's context by default.
- setTeamsChannelContext - SetTeamsChannelContextPlaybook
- subscribe - SubscribeToPlaybook
- unsetSlackChannelContextPlaybook - Unset the context playbook for a Slack channel. This clears any association so that messages in this channel no longer use a specific playbook context.
- unsetTeamsChannelContext - UnsetTeamsChannelContextPlaybook
- unsubscribe - UnsubscribeFromPlaybook
- update - UpdatePlaybook
Powerbi
- exportReportImage - ExportPowerBIReportImage
- generateEmbedToken - GeneratePowerBIEmbedToken
- getDatasetPreview - GetPowerBIDatasetPreview
- getSyncedItems - GetSyncedPowerBIItems
- list - ListPowerBIDatasets
- listReports - ListPowerBIReports
- listWorkspaces - ListPowerBIWorkspaces
- syncPowerBIItems - SyncPowerBIItems
- testConnection - TestPowerBIConnection
- unsyncItems - UnsyncPowerBIItems
Rbac
- approveAccessRequest - ApproveAccessRequest
- assignPermissionToRole - AssignPermissionToRole
- assignRoleToMember - Member role assignment
- createApiKey - API Key management
- createPersonalApiKey - Create an API key owned by the calling member. Requires no permission.
- createRole - Role management
- createImportUpload - CreateRolePermissionsUploadUrl
- createServiceAccount - Service account management
- createServiceAccountApiKey - Create an API key owned by a service account. Requires organization:write.
- deleteRole - DeleteRole
- deleteServiceAccount - DeleteServiceAccount
- exportRoles - ExportRolePermissions
- generateShareLink - GenerateShareLink
- getCurrentMemberRolesAndPermissions - Get current member roles and permissions
- getEmbedUserApiKey - GetEmbedUserApiKey
- getMemberRoles - GetMemberRoles
- getObjectAccess - GetObjectAccess
- getRole - GetRole
- getRolePermissions - GetRolePermissions
- hasObjectAccess - HasObjectAccess
- importRoles - ImportRolePermissions
- listAccessRequests - ListAccessRequests
- listApiKeys - ListApiKeys
- listPermissions - Permission management
- listRoles - ListRoles
- listServiceAccounts - ListServiceAccounts
- parseRoleImport - Parse a CSV or XLSX file into an editable draft without creating roles. Unknown names and values are preserved for correction; import validates them.
- rejectAccessRequest - RejectAccessRequest
- removePermissionFromRole - RemovePermissionFromRole
- removeRoleFromMember - RemoveRoleFromMember
- requestAccess - Access request management
- revokeApiKey - RevokeApiKey
- revokeObjectAccess - RevokeObjectAccess
- rotateApiKey - RotateApiKey
- setRolePermissions - Bulk add/remove permissions on a role in one call, producing a single audit entry for the whole edit.
- shareObject - Object sharing and access control
- shareObjectWithRole - ShareObjectWithRole
- updateObjectAccess - UpdateObjectAccess
- updateObjectVisibility - UpdateObjectVisibility
- updateRole - UpdateRole
- whoAmI - Describe what a key is allowed to do.
Sandbox
- create - CreateSandbox
- diffOntologyChanges - DiffOntologyChanges
- exec - Exec
- executeCode - ExecuteCode
- getToolAvailability - GetToolAvailability
- loadConnectorData - LoadConnectorData
- proposeOntologyChanges - ProposeOntologyChanges
- executeBash - Runs in the caller's own worker; no connector/source scoping.
- executeQuery - ExecuteQuery
SandboxAdmin
- getSandbox - GetSandbox
- listSandboxEgress - Outbound HTTP(S) calls a sandbox made (the egress ledger). Durable — reads the recorded table, so it works for stopped sandboxes too.
- listExecutions - ListSandboxExecutions
- listSandboxFiles - Live filesystem of a running sandbox. Both are NO-OP (read-only) and only return data while the worker is alive; available=false otherwise.
- listSandboxSpend - Per-lease compute usage for a sandbox, computed from lease durations × the compute rate. Durable (reads the lease table), so it works for stopped sandboxes. This is usage (ACUs), not the invoiced dollar amount.
- list - ListSandboxes
- readFile - ReadSandboxFile
- restartSandbox - Restart a stopped/reaped sandbox by re-acquiring a worker for the same sandbox_id, preserving the original owner. Same scoping as StopSandbox (owner, or sandbox:write_private for org-wide).
- stop - StopSandbox
SandboxCapabilities
- deliver - Deliver
- executeWrite - ExecuteWrite
- pollAsk - PollAsk
- putAsset - PutAsset
- sendNotify - SendNotify
- startAsk - StartAsk
- stateOp - StateOp
Scim
- createOAuthClient - CreateScimOAuthClient
- createScimToken - CreateScimToken
- listScimOAuthClients - ListScimOAuthClients
- list - ListScimTokens
- revokeOAuthClient - RevokeScimOAuthClient
- revokeScimToken - RevokeScimToken
Secrets
- createApiRevision - API connector drafts let clients configure and test credentials before saving.
- deleteApiAccessKey - DeleteApiAccessKey
- deleteApiRevision - DeleteApiRevision
- getApiAccessKey - GetApiAccessKey
- listApiAccessKeys - ListApiAccessKeys
- listApiProviders - ListApiProviders
- testApiAccessKey - TestApiAccessKey
- upsertApiAccessKey - UpsertApiAccessKey
Settings
- checkMemberStatus - CheckMemberStatus
- deleteMember - DeleteOrganizationMember
- get - GetOrganizationSettings
- inviteMember - InviteOrganizationMember
- listMembers - ListOrganizationMembers
- updateModels - UpdateOrganizationModelSettings
- update - UpdateOrganizationSettings
Slack
- createUuid - CreateSlackUuid
- deleteInstallation - DeleteInstallation
- getCurrentUser - GetCurrentUser
- handleOAuthCallback - HandleSlackOAuthCallback
- listChannels - ListChannels
- listInstallations - ListInstallations
- listUsers - ListUsers
- syncWorkspace - SyncWorkspace
Tableau
- generateEmbedToken - Generate JWT token for embedding views
- getCollectionThumbnail - Get collection thumbnail (first view image)
- getConnectedAppStatus - GetConnectedAppStatus
- getStarredItems - GetStarredTableauItems
- listTableauDatasources - List Tableau datasources
- listProjects - List Tableau projects
- listViews - List Tableau views
- listWorkbooks - List Tableau workbooks
- refreshCollection - RefreshTableauCollection
- resetConnectedApp - ResetConnectedApp
- starItem - Star/unstar items
- testTableauConnection - Test a Tableau connection
- unstarTableauItem - UnstarTableauItem
Teams
- createUuid - CreateTeamsUuid
- deleteInstallation - DeleteInstallation
- getCurrentUser - GetCurrentUser
- handleOAuthCallback - HandleTeamsOAuthCallback
- list - ListChannels
- listInstallations - ListInstallations
- listUsers - ListUsers
- syncWorkspace - SyncWorkspace
Standalone functions
All the methods listed above are available as standalone functions. These functions are ideal for use in applications running in the browser, serverless runtimes or other environments where application bundle size is a primary concern. When using a bundler to build your application, all unused functionality will be either excluded from the final bundle or tree-shaken away.
To read more about standalone functions, check FUNCTIONS.md.
agentsCreate- CreateAgentagentsDelete- DeleteAgentagentsDuplicate- DuplicateAgentagentsGetAgent- GetAgentagentsGetDBSchema- Read-only table/column list for the agent's private DuckDB memory (agent_db).agentsGetDBTablePreview- A bounded row preview of one agent_db table (SELECT ... LIMIT n).agentsGetRun- GetAgentRunagentsList- ListAgentsagentsListRuns- ListAgentRunsagentsResetAgentAvatar- ResetAgentAvataragentsTriggerAgent- TriggerAgentagentsUpdate- UpdateAgentagentsUploadAgentAvatar- UploadAgentAvatarapiOAuthExchangeClientCredentials- ExchangeApiOAuthClientCredentialsapiOAuthExchangeCode- ExchangeApiOAuthCodeapiOAuthExchangeJwtBearer- ExchangeApiOAuthJwtBearerapiOAuthGetConfig- GetApiOAuthConfigapiOAuthGetStatus- GetApiOAuthStatusapiOAuthGetURL- GetApiOAuthURLapiOAuthInitiateDeviceAuthorization- InitiateDeviceAuthorizationapiOAuthPollDeviceCodeToken- PollDeviceCodeTokenapiOAuthRevokeToken- RevokeApiOAuthTokenapiOAuthUpsertConfig- Shared OAuth app configuration. Requires connector write permission.appsCreateApp- CreateAppappsDeleteApp- DeleteAppappsDuplicate- Duplicates an app the caller can view into a new app they own, named "Copy of ". Copies code/files/data sources/compute functions/ schedule; never carries over the source's data snapshot.appsGet- GetAppappsGetAppVersion- GetAppVersionappsGetAppViewStats- View analytics: reads the engagement views recorded on app page load.appsGetDBSchema- Read-only table/column list for the app's private DuckDB (app_db).appsGetDBTablePreview- A bounded row preview of one app_db table (SELECT ... LIMIT n).appsGetMemberState- Per-member app state: one JSON blob per (app, member) so apps remember settings/progress. Member always resolved server-side from auth context; per-member persistence, so viewers with read access can save their own state.appsGetMembersWithApps- GetMembersWithAppsappsHeartbeat- Keeps the viewed app's compute worker alive; first view spawns and pre-warms it (dashboard viewer-TTL parity).appsInvokeComputeFunction- Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.appsList- ListAppsappsListActivitySince- Cross-member live activity: rows from every member of the app after a seq, each carrying member_id + display_name (resolved server-side; never email).appsListMyMemberActivity- ListMyAppMemberActivityappsListUploads- Lists the invoking viewer's uploads for this app. May recover legacy Library pointers on first use.appsListVersions- Version history: git-backed, one version per save (plus legacy publish-era snapshots); authors can list and restore.appsMoveAppToFolder- Moves an app into a library folder (or to root when folder_id is empty).appsPresenceHeartbeat- Presence heartbeat: sets a short-TTL Valkey key for the member and nudges the app's stream. Presence never touches Postgres and never exposes emails.appsRecordMemberActivity- Append-only per-member activity log. Listing is own rows only; no cross-member reads in this release.appsRefresh- Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.appsRemoveUpload- Removes only this viewer's app association, never the dataset itself.appsRestoreAppVersion- RestoreAppVersionappsSetFavorite- Favorite/unfavorite a library item (app or dashboard) for the calling member. Per-member, per-org; favorited=false hard-deletes the row. Covers both primitives since the merged library page pins apps and dashboards through one client.appsSetMemberState- SetAppMemberStateappsUpdate- UpdateAppappsVerifyRender- Renders the live artifact in the production sandbox and returns browser diagnostics. This is synchronous so callers can verify an app before sharing its URL.auditLogsConfigureOtlpExport- ConfigureOtlpExportauditLogsConfigureS3Export- ConfigureS3ExportauditLogsDeleteOtlpExportConfig- DeleteOtlpExportConfigauditLogsDeleteS3ExportConfig- DeleteS3ExportConfigauditLogsGetOtlpExportConfig- GetOtlpExportConfigauditLogsGetS3ExportConfig- GetS3ExportConfigauditLogsList- ListAuditLogsauditLogsTestOtlpExportConnection- TestOtlpExportConnectionauditLogsTestS3ExportConnection- TestS3ExportConnectionauditLogsTriggerOtlpExport- TriggerOtlpExportauditLogsTriggerS3Export- TriggerS3ExportchatsApproveContextPromptChange- ApproveContextPromptChangechatsApproveOntologyChange- ApproveOntologyChangechatsAttachAgent- AttachAgentToChatchatsAttachApp- AttachAppchatsAttachDashboard- AttachDashboardchatsAttachDataset- AttachDatasetchatsBookmark- Bookmark managementchatsCancelStream- CancelStreamchatsCheckHealth- CheckHealthchatsCheckPermissions- CheckChatPermissionschatsCheckStreamlitHealth- CheckStreamlitHealthchatsCreateChat- CreateChatchatsDelete- DeleteChatchatsDismissQuestions- DismissQuestionschatsDuplicateChat- DuplicateChatchatsGet- GetChatchatsGetAll- GetChatschatsGetApiAnswer- GetAPIChatAnswerchatsGetArtifact- Full artifact data (lazy load when selected)chatsGetArtifactsSummary- Artifact summaries for drawer (lightweight, for listing)chatsGetAutoAttachedFiles- GetAutoAttachedFileschatsGetChatExecutionTiming- GetChatExecutionTimingchatsGetCompletionParameters- GetCompletionParameterschatsGetCompletionParametersBatch- GetCompletionParametersBatchchatsGetHistory- GetChatHistorychatsGetLlmUsage- GetLlmUsagechatsGetMembersWithChats- List distinct chat creators the user can accesschatsGetPlaybookChats- GetPlaybookChatschatsPollEvents- PollChatEventschatsQueryOneShot- External API userschatsRateCell- RateChatCell appends a row to cell_rating for every click; thumbs-down also upserts a user_thumbs_down thread_warning.chatsRejectContextPromptChange- RejectContextPromptChangechatsRejectOntologyChange- RejectOntologyChangechatsRun- RunChatchatsSend- SendMessagechatsSubmitContextPromptChange- SubmitContextPromptChangechatsSubmitQuestions- Resolve a halted questions cell. Submit hands the answers to the agent and resumes it; Dismiss hands over only the answered count and does NOT resume (the user's next message becomes the dismissal reason).chatsUnbookmark- UnbookmarkChatchatsUpdate- UpdateChatconnectorsCreate- CreateConnectorconnectorsCreateConnectorGroup- CreateConnectorGroupconnectorsDelete- DeleteConnectorconnectorsDeleteConnectorGroup- DeleteConnectorGroupconnectorsDuplicateConnector- DuplicateConnectorconnectorsExecuteQuery- ExecuteQueryconnectorsGet- GetConnectorconnectorsGetChats- GetConnectorChatsconnectorsGetConnectorCellDurations- GetConnectorCellDurationsconnectorsGetConnectors- GetConnectorsconnectorsGetConnectorStats- GetConnectorStatsconnectorsGetDashboards- GetConnectorDashboardsconnectorsGetExampleQueries- GetExampleQueriesconnectorsGetTablePreview- GetTablePreviewconnectorsGetUsage- GetConnectorUsageconnectorsListConnectorGroups- ListConnectorGroupsconnectorsListQueryTemplates- ListQueryTemplatesconnectorsListTables- ListConnectorTablesconnectorsShareConnectorGroup- ShareConnectorGroupconnectorsTest- TestConnectorconnectorsUpdate- UpdateConnectorconnectorsUpdateConnectorGroup- UpdateConnectorGroupconnectorsUpdateConnectorGroupMembers- UpdateConnectorGroupMembersconnectorsUpdateConnectorGroupSettings- UpdateConnectorGroupSettingsdashboardsCheckHealth- CheckDashboardHealthdashboardsCreateDashboard- CRUD operationsdashboardsCreateFolder- Folder managementdashboardsDelete- DeleteDashboarddashboardsDeleteFolder- DeleteDashboardFolderdashboardsDiscardChanges- DiscardDashboardChangesdashboardsDuplicate- DuplicateDashboarddashboardsGet- GetDashboarddashboardsGetDashboardViewStats- View analyticsdashboardsGetMembersWithDashboards- Member managementdashboardsGetVersion- GetDashboardVersiondashboardsList- ListDashboardsdashboardsListFolders- ListDashboardFoldersdashboardsListVersions- Version historydashboardsMoveToFolder- MoveDashboardToFolderdashboardsPublish- Publishing workflowdashboardsRegenerateScreenshot- Screenshot managementdashboardsRestoreDashboardVersion- RestoreDashboardVersiondashboardsRunScheduledDashboard- RunScheduledDashboarddashboardsSpawn- Dashboard executiondashboardsUpdateDashboard- UpdateDashboarddashboardsUpdateDashboardFolder- UpdateDashboardFolderdashboardsUpdateDashboardSchedule- SchedulingdatasetsCreateFolder- CreateFolderdatasetsCreatePowerBIDataset- CreatePowerBIDatasetdatasetsCreateTableauDataset- Create Tableau dataset from views/datasourcesdatasetsCreateUploadPresignUrl- uploadsdatasetsDelete- Delete a dataset (soft delete)datasetsExport- export dataset in "raw" format – original if dataset is uploaded, converted format otherwise (defaults to CSV)datasetsFetch- GetDataset, GetDatasets only return metadatadatasetsGet- GetDatasetsdatasetsGetByIds- GetDatasetsByIdsdatasetsGetDatasetValues- GetDatasetValuesdatasetsGetFolders- for AR: CreateFolderACL, UpdateFolderACL, DeleteFold
