@textql/sdk
v1.3.4
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
- getRun - GetAgentRun
- listRuns - ListAgentRuns
- list - ListAgents
- resetAgentAvatar - ResetAgentAvatar
- triggerAgent - TriggerAgent
- update - UpdateAgent
- uploadAgentAvatar - UploadAgentAvatar
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
- getAppVersion - GetAppVersion
- getAppViewStats - Lists the calling member's favorited library items (apps, dashboards, agents) for the sidebar Pinned section: id, type, name, preview screenshot.
- getMembersWithApps - GetMembersWithApps
- invokeComputeFunction - Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.
- listVersions - Version history: git-backed, one version per save (plus legacy publish-era snapshots); authors can list and restore.
- list - ListApps
- moveAppToFolder - Moves an app into a library folder (or to root when folder_id is empty).
- refresh - Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.
- restoreAppVersion - RestoreAppVersion
- 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
AppService
- appServiceGetAppMemberState - View analytics: reads the engagement views recorded on app page load.
- appServiceListAppActivitySince - Append-only per-member activity log. Listing is own rows only; no cross-member reads in this release.
- appServiceListMyAppMemberActivity - ListMyAppMemberActivity
- appServicePresenceHeartbeat - 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).
- appServiceRecordAppMemberActivity - 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.
- appServiceSetAppMemberState - Staff-only (superadmin gated in-handler): publishes the embedded component gallery as an app tree and returns its signed viewer 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 - RateChatCell appends a row to cell_rating for every click; thumbs-down also upserts a user_thumbs_down thread_warning.
- bookmark - BookmarkChat
- cancelStream - CancelStream
- checkPermissions - CheckChatPermissions
- checkHealth - CheckHealth
- checkStreamlitHealth - CheckStreamlitHealth
- createChat - CreateChat
- delete - DeleteChat
- dismissQuestions - 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).
- duplicateChat - DuplicateChat
- getApiAnswer - GetAPIChatAnswer
- getArtifact - GetArtifact
- get - GetChat
- getArtifactsSummary - GetChatArtifactsSummary
- getChatExecutionTiming - GetChatExecutionTiming
- getHistory - GetChatHistory
- getAll - GetChats
- getCompletionParameters - List distinct chat creators the user can access
- getCompletionParametersBatch - GetCompletionParametersBatch
- getLlmUsage - GetLlmUsage
- getMembersWithChats - GetMembersWithChats
- getPlaybookChats - GetPlaybookChats
- pollEvents - PollChatEvents
- queryOneShot - QueryOneShot
- rateCell - RateChatCell
- rejectContextPromptChange - RejectContextPromptChange
- rejectOntologyChange - Resolve a halted ask_approval form cell. Submit runs the form's submission and continues the agent with the outcome; Reject discards it (passive, no run); Dismiss treats it as a change request (no run, next message says what to change). All three set the cell's outcome, like the other approve/deny cells.
- run - RunChat
- send - SendMessage
- submitContextPromptChange - SubmitContextPromptChange
- submitQuestions - SubmitQuestions
- unbookmark - UnbookmarkChat
- update - UpdateChat
Connectors
- create - CreateConnector
- delete - DeleteConnector
- duplicateConnector - DuplicateConnector
- executeQuery - ExecuteQuery
- get - GetConnector
- getConnectorCellDurations - GetConnectorCellDurations
- getChats - GetConnectorChats
- getDashboards - GetConnectorDashboards
- getConnectorStats - GetConnectorStats
- getUsage - GetConnectorUsage
- getConnectors - GetConnectors
- getExampleQueries - GetExampleQueries
- getTablePreview - GetTablePreview
- listTables - ListConnectorTables
- listQueryTemplates - ListQueryTemplates
- test - TestConnector
- update - UpdateConnector
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
- previewConfig - Config-managed dashboards: render a
.dashboardstraight from a patch ref before it merges (ADR-0022). Runs as the file's run_as, gated on the previewer being authorized for it; persists nothing. - 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
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 - Custom topics
- 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 - RefineTopicDraft
- setTopicTagFeedback - SetTopicTagFeedback
- updateCustomTopic - UpdateCustomTopic
ObservabilityService
- observabilityServiceGetMemberSignalTrend - GetMemberSignalTrend
OntologyManagementService
- ontologyManagementServiceAddOntologySubmodule - AddOntologySubmodule
- ontologyManagementServiceApprovePatch - ApprovePatch
- ontologyManagementServiceConfigureOntologyRemote - ConfigureOntologyRemote
- ontologyManagementServiceCreateApprovalRule - CreateApprovalRule
- ontologyManagementServiceCreateContextPatchAutoApproveRule - CreateContextPatchAutoApproveRule
- ontologyManagementServiceCreateOntologyDirectory - CreateOntologyDirectory
- ontologyManagementServiceCreateOntologyFileUploadUrl - CreateOntologyFileUploadUrl
- ontologyManagementServiceDeleteApprovalRule - DeleteApprovalRule
- ontologyManagementServiceDeleteContextPatchAutoApproveRule - DeleteContextPatchAutoApproveRule
- ontologyManagementServiceDeleteOntologyDirectory - DeleteOntologyDirectory
- ontologyManagementServiceDeleteOntologyFile - DeleteOntologyFile
- ontologyManagementServiceDeleteOntologyOwners - DeleteOntologyOwners
- ontologyManagementServiceDenyPatch - DenyPatch
- ontologyManagementServiceExchangeOntologyGithubCode - ExchangeOntologyGithubCode
- ontologyManagementServiceFinalizeOntologyFileUpload - FinalizeOntologyFileUpload
- ontologyManagementServiceGetCodeownerCoverage - GetCodeownerCoverage
- ontologyManagementServiceGetConfigExportCapabilities - GetConfigExportCapabilities
- ontologyManagementServiceGetEffectiveOntologyOwners - GetEffectiveOntologyOwners
- ontologyManagementServiceGetFileUsage - GetFileUsage
- ontologyManagementServiceGetFileUsageTimeline - GetFileUsageTimeline
- ontologyManagementServiceGetOntologyAnaConfig - GetOntologyAnaConfig
- ontologyManagementServiceGetOntologyFile - GetOntologyFile
- ontologyManagementServiceGetOntologyGithubOAuthURL - GetOntologyGithubOAuthURL
- ontologyManagementServiceGetOntologyHistoryFileDiff - GetOntologyHistoryFileDiff
- ontologyManagementServiceGetOntologyOwners - GetOntologyOwners
- ontologyManagementServiceGetOntologyRemote - GetOntologyRemote
- ontologyManagementServiceGetOntologySizeTimeline - GetOntologySizeTimeline
- ontologyManagementServiceGetOntologySyncConflicts - GetOntologySyncConflicts
- ontologyManagementServiceGetOntologyUsageSummary - GetOntologyUsageSummary
- ontologyManagementServiceGetPatch - GetPatch
- ontologyManagementServiceGetPatchByNumber - GetPatchByNumber
- ontologyManagementServiceGetPatchCapabilities - GetPatchCapabilities
- ontologyManagementServiceGetRawPatch - GetRawPatch
- ontologyManagementServiceGetUsageDetailsForFile - GetUsageDetailsForFile
- ontologyManagementServiceListApprovalRules - ListApprovalRules
- ontologyManagementServiceListChatsForFile - ListChatsForFile
- ontologyManagementServiceListContextPatchAutoApproveRules - ListContextPatchAutoApproveRules
- ontologyManagementServiceListGoldenFiles - ListGoldenFiles
- ontologyManagementServiceListOntologyEntries - ListOntologyEntries
- ontologyManagementServiceListOntologyHistory - ListOntologyHistory
- ontologyManagementServiceListOntologyImports - ListOntologyImports
- ontologyManagementServiceListOntologySubmodules - ListOntologySubmodules
- ontologyManagementServiceListOntologySyncRuns - ListOntologySyncRuns
- ontologyManagementServiceListPatchObjects - 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).
- ontologyManagementServiceListPatchReviewers - ListPatchReviewers
- ontologyManagementServiceListPatches - ListPatches
- ontologyManagementServiceListSkills - 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. - ontologyManagementServicePlanOntologyMerge - PlanOntologyMerge
- ontologyManagementServicePreviewOntologyPullFromRemote - PreviewOntologyPullFromRemote
- ontologyManagementServicePullOntologyFromRemote - PullOntologyFromRemote
- ontologyManagementServicePushOntologyToRemote - PushOntologyToRemote
- ontologyManagementServiceRecoverOntology - RecoverOntology
- ontologyManagementServiceRemoveOntologyRemote - RemoveOntologyRemote
- ontologyManagementServiceRemoveOntologySubmodule - RemoveOntologySubmodule
- ontologyManagementServiceRenameOntologyFile - RenameOntologyFile
- ontologyManagementServiceRequestPatchReview - RequestPatchReview
- ontologyManagementServiceResolveOntologySyncConflict - ResolveOntologySyncConflict
- ontologyManagementServiceRestorePatch - RestorePatch
- ontologyManagementServiceRevertPatch - RevertPatch
- ontologyManagementServiceSaveAllObjectsAsConfig - SaveAllObjectsAsConfig
- ontologyManagementServiceSaveObjectAsConfig - SaveObjectAsConfig
- ontologyManagementServiceSetOntologyFileGolden - SetOntologyFileGolden
- ontologyManagementServiceTriggerConfigDriftReconcile - 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.
- ontologyManagementServiceUpdateApprovalRule - UpdateApprovalRule
- ontologyManagementServiceUpdateContextPatchAutoApproveRule - UpdateContextPatchAutoApproveRule
- ontologyManagementServiceUpdateOntologySyncConfig - UpdateOntologySyncConfig
- ontologyManagementServiceUpsertOntologyAnaConfig - UpsertOntologyAnaConfig
- ontologyManagementServiceUpsertOntologyFile - UpsertOntologyFile
- ontologyManagementServiceUpsertOntologyOwners - UpsertOntologyOwners
- ontologyManagementServiceValidateConfig - 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
- assignPermissionToRole - AssignPermissionToRole
- assignRoleToMember - Member role assignment
- createApiKey - Group management. Internal only.
- createRole - Role management
- createServiceAccount - CreateServiceAccount
- deleteRole - DeleteRole
- deleteServiceAccount - DeleteServiceAccount
- getCurrentMemberRolesAndPermissions - Get current member roles and permissions
- getEmbedUserApiKey - GetEmbedUserApiKey
- getMemberRoles - GetMemberRoles
- getRole - GetRole
- getRolePermissions - GetRolePermissions
- listApiKeys - ListApiKeys
- listPermissions - Permission management
- listRoles - ListRoles
- listServiceAccounts - ListServiceAccounts
- removePermissionFromRole - RemovePermissionFromRole
- removeRoleFromMember - RemoveRoleFromMember
- revokeApiKey - RevokeApiKey
- rotateApiKey - RotateApiKey
- updateRole - UpdateRole
RBACService
- rbacServiceSetRolePermissions - Bulk add/remove permissions on a role in one call, producing a single audit entry for the whole edit.
Sandbox
- 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
SandboxCapabilityService
- sandboxCapabilityServiceExecuteWrite - ExecuteWrite
- sandboxCapabilityServicePutAsset - PutAsset
- sandboxCapabilityServiceSendNotify - SendNotify
- sandboxCapabilityServiceStateOp - StateOp
Scim
- createOAuthClient - CreateScimOAuthClient
- createScimToken - CreateScimToken
- listScimOAuthClients - ListScimOAuthClients
- list - ListScimTokens
- revokeOAuthClient - RevokeScimOAuthClient
- revokeScimToken - RevokeScimToken
Secrets
- deleteSecret - DeleteSecret
- getMembersWithSecrets - GetMembersWithSecrets
- listSecrets - ListSecrets
- putSecret - PutSecret
- update - UpdateSecret
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- GetAgentagentsGetRun- GetAgentRunagentsList- ListAgentsagentsListRuns- ListAgentRunsagentsResetAgentAvatar- ResetAgentAvataragentsTriggerAgent- TriggerAgentagentsUpdate- UpdateAgentagentsUploadAgentAvatar- UploadAgentAvatarappsCreateApp- 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.appServiceAppServiceGetAppMemberState- View analytics: reads the engagement views recorded on app page load.appServiceAppServiceListAppActivitySince- Append-only per-member activity log. Listing is own rows only; no cross-member reads in this release.appServiceAppServiceListMyAppMemberActivity- ListMyAppMemberActivityappServiceAppServicePresenceHeartbeat- 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).appServiceAppServiceRecordAppMemberActivity- 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.appServiceAppServiceSetAppMemberState- Staff-only (superadmin gated in-handler): publishes the embedded component gallery as an app tree and returns its signed viewer URL.appsGet- GetAppappsGetAppVersion- GetAppVersionappsGetAppViewStats- Lists the calling member's favorited library items (apps, dashboards, agents) for the sidebar Pinned section: id, type, name, preview screenshot.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- ListAppsappsListVersions- 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).appsRefresh- Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.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.appsUpdate- UpdateAppauditLogsConfigureOtlpExport- ConfigureOtlpExportauditLogsConfigureS3Export- ConfigureS3ExportauditLogsDeleteOtlpExportConfig- DeleteOtlpExportConfigauditLogsDeleteS3ExportConfig- DeleteS3ExportConfigauditLogsGetOtlpExportConfig- GetOtlpExportConfigauditLogsGetS3ExportConfig- GetS3ExportConfigauditLogsList- ListAuditLogsauditLogsTestOtlpExportConnection- TestOtlpExportConnectionauditLogsTestS3ExportConnection- TestS3ExportConnectionauditLogsTriggerOtlpExport- TriggerOtlpExportauditLogsTriggerS3Export- TriggerS3ExportchatsApproveContextPromptChange- ApproveContextPromptChangechatsApproveOntologyChange- ApproveOntologyChangechatsAttachAgent- AttachAgentToChatchatsAttachApp- AttachAppchatsAttachDashboard- AttachDashboardchatsAttachDataset- RateChatCell appends a row to cell_rating for every click; thumbs-down also upserts a user_thumbs_down thread_warning.chatsBookmark- BookmarkChatchatsCancelStream- CancelStreamchatsCheckHealth- CheckHealthchatsCheckPermissions- CheckChatPermissionschatsCheckStreamlitHealth- CheckStreamlitHealthchatsCreateChat- CreateChatchatsDelete- DeleteChatchatsDismissQuestions- 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).chatsDuplicateChat- DuplicateChatchatsGet- GetChatchatsGetAll- GetChatschatsGetApiAnswer- GetAPIChatAnswerchatsGetArtifact- GetArtifactchatsGetArtifactsSummary- GetChatArtifactsSummarychatsGetChatExecutionTiming- GetChatExecutionTimingchatsGetCompletionParameters- List distinct chat creators the user can accesschatsGetCompletionParametersBatch- GetCompletionParametersBatchchatsGetHistory- GetChatHistorychatsGetLlmUsage- GetLlmUsagechatsGetMembersWithChats- GetMembersWithChatschatsGetPlaybookChats- GetPlaybookChatschatsPollEvents- PollChatEventschatsQueryOneShot- QueryOneShotchatsRateCell- RateChatCellchatsRejectContextPromptChange- RejectContextPromptChangechatsRejectOntologyChange- Resolve a halted ask_approval form cell. Submit runs the form's submission and continues the agent with the outcome; Reject discards it (passive, no run); Dismiss treats it as a change request (no run, next message says what to change). All three set the cell's outcome, like the other approve/deny cells.chatsRun- RunChatchatsSend- SendMessagechatsSubmitContextPromptChange- SubmitContextPromptChangechatsSubmitQuestions- SubmitQuestionschatsUnbookmark- UnbookmarkChatchatsUpdate- UpdateChatconnectorsCreate- CreateConnectorconnectorsDelete- DeleteConnectorconnectorsDuplicateConnector- DuplicateConnectorconnectorsExecuteQuery- ExecuteQueryconnectorsGet- GetConnectorconnectorsGetChats- GetConnectorChatsconnectorsGetConnectorCellDurations- GetConnectorCellDurationsconnectorsGetConnectors- GetConnectorsconnectorsGetConnectorStats- GetConnectorStatsconnectorsGetDashboards- GetConnectorDashboardsconnectorsGetExampleQueries- GetExampleQueriesconnectorsGetTablePreview- GetTablePreviewconnectorsGetUsage- GetConnectorUsageconnectorsListQueryTemplates- ListQueryTemplatesconnectorsListTables- ListConnectorTablesconnectorsTest- TestConnectorconnectorsUpdate- UpdateConnectordashboardsCheckHealth- CheckDashboardHealthdashboardsCreateDashboard- CRUD operationsdashboardsCreateFolder- Folder managementdashboardsDelete- DeleteDashboarddashboardsDeleteFolder- DeleteDashboardFolderdashboardsDiscardChanges- DiscardDashboardChangesdashboardsDuplicate- DuplicateDashboarddashboardsGet- GetDashboarddashboardsGetDashboardViewStats- View analyticsdashboardsGetMembersWithDashboards- Member managementdashboardsGetVersion- GetDashboardVersiondashboardsList- ListDashboardsdashboardsListFolders- ListDashboardFoldersdashboardsListVersions- Version historydashboardsMoveToFolder- MoveDashboardToFolderdashboardsPreviewConfig- Config-managed dashboards: render a.dashboardstraight from a patch ref before it merges (ADR-0022). Runs as the file's run_as, gated on the previewer being authorized for it; persists nothing.dashboardsPublish- 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, DeleteFolderACLdatasetsGetStats- GetDatasetStatsdatasetsProcessUploadPresignUrl- ProcessUploadPresignUrldatasetsUpdateDataset- Update dataset metadatamcpClearOAuthToken- ClearOAuthTokenmcpDelete- DeleteMCPServermcpGetServers- GetMCPServersmcpHandleOAuthCallback- HandleOAuthCallbackmcpInitiateOAuthFlow- InitiateOAuthFlowmcpToggleServer- ToggleMCPServermcpUpsertMCPServers- UpsertMCPServersmetricsExportsConfigure- ConfigureMetricsExportmetricsExportsDeleteConfig- DeleteMetricsExportConfigmetricsExportsGetMetricsExportConfig- GetMetricsExportConfigmetricsExportsTestConnection- TestMetricsExportConnectionmetricsExportsTriggerPush- TriggerMetricsPushobservabilityActivateCustomTopic- ActivateCustomTopicobservabilityBackfillCustomTopic- BackfillCustomTopicobservabilityBackfillThreadWarnings- BackfillThreadWarningsobservabilityCreateCustomTopic- Custom topicsobservabilityDeactivateCustomTopic- DeactivateCustomTopicobservabilityDeleteCustomTopic- DeleteCustomTopicobservabilityExportCsv- ExportObservabilityCsvobservabilityFixCheckRecord- FixCheckRecordobservabilityFixWarning- FixWarning- [`o
