The official, type-safe TypeScript client for the TextQL API.
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.
The SDK can be installed with either npm, pnpm, bun or yarn package managers.
npm add @textql/sdkpnpm add @textql/sdkbun add @textql/sdkyarn add @textql/sdkNote
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.
For supported JavaScript runtimes, please consult RUNTIMES.md.
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();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 methods
- create - CreateAgent
- delete - DeleteAgent
- duplicate - DuplicateAgent
- getAgent - GetAgent
- getDBSchema - GetAgentDBSchema
- getDBTablePreview - GetAgentDBTablePreview
- getRun - GetAgentRun
- listRuns - ListAgentRuns
- list - ListAgents
- resetAgentAvatar - ResetAgentAvatar
- triggerAgent - TriggerAgent
- update - UpdateAgent
- uploadAgentAvatar - UploadAgentAvatar
- heartbeat - AppHeartbeat
- 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 - Replaces the calling member's entire ordering; capped server-side.
- getDBTablePreview - View analytics: reads the engagement views recorded on app page load.
- getMemberState - Per-member notification subscription to an app ("watch this app").
- getAppVersion - Overwrites the published tree's pinned _runtime/ana-1.js with the platform's current copy so host-driven affordances (comment hit-testing) work on older documents; never touches authored content or data. repinned=false for legacy pre-tree documents.
- getAppViewStats - Keeps the viewed app's compute worker alive; first view spawns and pre-warms it (dashboard viewer-TTL parity).
- getMembersWithApps - GetMembersWithApps
- invokeComputeFunction - InvokeAppComputeFunction
- listActivitySince - 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.
- listVersions - 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.
- list - ListApps
- listMyMemberActivity - Watcher management: app owners/editors and org admins list the app's subscribers and add/remove members (Upsert/Delete with member_id).
- moveAppToFolder - MoveAppToFolder
- presenceHeartbeat - Ordering overlay for the sidebar Bookmarks section: one position list per member covering favorites and thread bookmarks (':' keys). Membership truth stays in library_favorite / chat bookmarks; this persists only the drag-and-drop order.
- recordMemberActivity - RecordAppMemberActivity
- refresh - Moves an app into a library folder (or to root when folder_id is empty).
- restoreAppVersion - Version history: git-backed, one version per save (plus legacy publish-era snapshots); authors can list and restore.
- setMemberState - SetAppMemberState
- setFavorite - Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.
- update - UpdateApp
- verifyRender - Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.
- configureOtlpExport - ConfigureOtlpExport
- configureS3Export - ConfigureS3Export
- deleteOtlpExportConfig - DeleteOtlpExportConfig
- deleteS3ExportConfig - DeleteS3ExportConfig
- getOtlpExportConfig - GetOtlpExportConfig
- getS3ExportConfig - GetS3ExportConfig
- list - ListAuditLogs
- testOtlpExportConnection - TestOtlpExportConnection
- testS3ExportConnection - TestS3ExportConnection
- triggerOtlpExport - TriggerOtlpExport
- triggerS3Export - TriggerS3Export
- 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
- getAutoAttachedFiles - GetAutoAttachedFiles
- 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
- 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
- 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
- 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
- clearOAuthToken - ClearOAuthToken
- delete - DeleteMCPServer
- getServers - GetMCPServers
- handleOAuthCallback - HandleOAuthCallback
- initiateOAuthFlow - InitiateOAuthFlow
- toggleServer - ToggleMCPServer
- upsertMCPServers - UpsertMCPServers
- configure - ConfigureMetricsExport
- deleteConfig - DeleteMetricsExportConfig
- getMetricsExportConfig - GetMetricsExportConfig
- testConnection - TestMetricsExportConnection
- triggerPush - TriggerMetricsPush
- 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
- getMemberSignalTrend - GetMemberSignalTrend
- getObservabilityStats - GetObservabilityStats
- getThreadWarnings - GetThreadWarnings
- listCustomTopics - ListCustomTopics
- refineDraft - RefineTopicDraft
- setTopicTagFeedback - SetTopicTagFeedback
- updateCustomTopic - UpdateCustomTopic
- addSubmodule - AddOntologySubmodule
- approvePatch - ApprovePatch
- configureRemote - ConfigureOntologyRemote
- createApprovalRule - CreateApprovalRule
- createContextPatchAutoApproveRule - CreateContextPatchAutoApproveRule
- createDirectory - CreateOntologyDirectory
- createFileUploadUrl - Streams how many folders and files a subtree holds, so the UI can report the size of the whole Ontology rather than only the directories it has lazily listed. Counts rise monotonically across frames; the last frame sets
final. A cache hit emits a singlefinalframe withfrom_cacheset. - 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 - PlanConfigMigration reports what the lazy config migration WOULD do to this org's objects, and writes nothing. Admin-only, internal: it exists so a release manager can warn the specific orgs a rollout will affect — notably the objects that will stop running because adoption binds a Runner who can no longer run them.
- getRawPatch - GetRawPatch
- getUsageDetailsForFile - GetUsageDetailsForFile
- listApprovalRules - ListApprovalRules
- listChatsForFile - ListChatsForFile
- listContextPatchAutoApproveRules - ListContextPatchAutoApproveRules
- listGoldenFiles - Deprecated: use SetOntologyOwners with the desired entry set. An empty desired set removes every entry and opens the directory.
- 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 - ListSkills
- planMerge - PlanOntologyMerge
- previewPullFromRemote - PreviewOntologyPullFromRemote
- pullFromRemote - PullOntologyFromRemote
- pushToRemote - PushOntologyToRemote
- recover - RecoverOntology
- removeRemote - 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. - removeSubmodule - RemoveOntologySubmodule
- renameFile - RenameOntologyFile
- requestPatchReview - RequestPatchReview
- resolveSyncConflict - 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.
- restorePatch - RestorePatch
- revertPatch - RevertPatch
- saveAllObjectsAsConfig - SaveAllObjectsAsConfig
- saveObjectAsConfig - SaveObjectAsConfig
- setFileGolden - Deprecated: use SetOntologyOwners with the complete desired entry set.
- setOwners - SetOntologyOwners
- triggerConfigDriftReconcile - TriggerConfigDriftReconcile
- 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.
- 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
- exportReportImage - ExportPowerBIReportImage
- generateEmbedToken - GeneratePowerBIEmbedToken
- getDatasetPreview - GetPowerBIDatasetPreview
- getSyncedItems - GetSyncedPowerBIItems
- list - ListPowerBIDatasets
- listReports - ListPowerBIReports
- listWorkspaces - ListPowerBIWorkspaces
- syncPowerBIItems - SyncPowerBIItems
- testConnection - TestPowerBIConnection
- unsyncItems - UnsyncPowerBIItems
- approveAccessRequest - ApproveAccessRequest
- assignPermissionToRole - AssignPermissionToRole
- assignRoleToMember - Bulk add/remove permissions on a role in one call, producing a single audit entry for the whole edit.
- createApiKey - SCIM group-mapping migration tooling: one-time role<->group conversion, internal only.
- createPersonalApiKey - CreatePersonalApiKey
- createRole - Role management
- createServiceAccount - CreateServiceAccount
- createServiceAccountApiKey - CreateServiceAccountApiKey
- deleteRole - DeleteRole
- deleteServiceAccount - DeleteServiceAccount
- generateShareLink - GenerateShareLink
- getCurrentMemberRolesAndPermissions - GetCurrentMemberRolesAndPermissions
- getEmbedUserApiKey - GetEmbedUserApiKey
- getMemberRoles - Member role assignment
- getObjectAccess - GetObjectAccess
- getRole - GetRole
- getRolePermissions - Permission management
- hasObjectAccess - HasObjectAccess
- listAccessRequests - ListAccessRequests
- listApiKeys - ListApiKeys
- listPermissions - ListPermissions
- listRoles - ListRoles
- listServiceAccounts - ListServiceAccounts
- rejectAccessRequest - RejectAccessRequest
- removePermissionFromRole - RemovePermissionFromRole
- removeRoleFromMember - RemoveRoleFromMember
- requestAccess - RequestAccess
- revokeApiKey - RevokeApiKey
- revokeObjectAccess - Group management. Internal only.
- rotateApiKey - Object sharing and access control
- setRolePermissions - SetRolePermissions
- shareObject - Get current member roles and permissions
- shareObjectWithRole - Describe what a key is allowed to do.
- updateObjectAccess - UpdateObjectAccess
- updateObjectVisibility - UpdateObjectVisibility
- updateRole - UpdateRole
- whoAmI - WhoAmI
- create - CreateSandbox
- exec - Exec
- executeCode - ExecuteCode
- getToolAvailability - GetToolAvailability
- loadConnectorData - LoadConnectorData
- executeBash - Runs in the caller's own worker; no connector/source scoping.
- executeQuery - ExecuteQuery
- 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
- executeWrite - ExecuteWrite
- pollAsk - PollAsk
- putAsset - PutAsset
- sendNotify - SendNotify
- startAsk - StartAsk
- stateOp - StateOp
- createOAuthClient - CreateScimOAuthClient
- createScimToken - CreateScimToken
- listScimOAuthClients - ListScimOAuthClients
- list - ListScimTokens
- revokeOAuthClient - RevokeScimOAuthClient
- revokeScimToken - RevokeScimToken
- deleteSecret - DeleteSecret
- getMembersWithSecrets - GetMembersWithSecrets
- listSecrets - ListSecrets
- putSecret - PutSecret
- update - UpdateSecret
- checkMemberStatus - CheckMemberStatus
- deleteMember - DeleteOrganizationMember
- get - GetOrganizationSettings
- inviteMember - InviteOrganizationMember
- listMembers - ListOrganizationMembers
- updateModels - UpdateOrganizationModelSettings
- update - UpdateOrganizationSettings
- createUuid - CreateSlackUuid
- deleteInstallation - DeleteInstallation
- getCurrentUser - GetCurrentUser
- handleOAuthCallback - HandleSlackOAuthCallback
- listChannels - ListChannels
- listInstallations - ListInstallations
- listUsers - ListUsers
- syncWorkspace - SyncWorkspace
- 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
- createUuid - CreateTeamsUuid
- deleteInstallation - DeleteInstallation
- getCurrentUser - GetCurrentUser
- handleOAuthCallback - HandleTeamsOAuthCallback
- list - ListChannels
- listInstallations - ListInstallations
- listUsers - ListUsers
- syncWorkspace - SyncWorkspace
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.
Available standalone functions
agentsCreate- CreateAgentagentsDelete- DeleteAgentagentsDuplicate- DuplicateAgentagentsGetAgent- GetAgentagentsGetDBSchema- GetAgentDBSchemaagentsGetDBTablePreview- GetAgentDBTablePreviewagentsGetRun- 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.appsGet- GetAppappsGetAppVersion- Overwrites the published tree's pinned _runtime/ana-1.js with the platform's current copy so host-driven affordances (comment hit-testing) work on older documents; never touches authored content or data. repinned=false for legacy pre-tree documents.appsGetAppViewStats- Keeps the viewed app's compute worker alive; first view spawns and pre-warms it (dashboard viewer-TTL parity).appsGetDBSchema- Replaces the calling member's entire ordering; capped server-side.appsGetDBTablePreview- View analytics: reads the engagement views recorded on app page load.appsGetMemberState- Per-member notification subscription to an app ("watch this app").appsGetMembersWithApps- GetMembersWithAppsappsHeartbeat- AppHeartbeatappsInvokeComputeFunction- InvokeAppComputeFunctionappsList- ListAppsappsListActivitySince- 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.appsListMyMemberActivity- Watcher management: app owners/editors and org admins list the app's subscribers and add/remove members (Upsert/Delete with member_id).appsListVersions- 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.appsMoveAppToFolder- MoveAppToFolderappsPresenceHeartbeat- Ordering overlay for the sidebar Bookmarks section: one position list per member covering favorites and thread bookmarks (':' keys). Membership truth stays in library_favorite / chat bookmarks; this persists only the drag-and-drop order.appsRecordMemberActivity- RecordAppMemberActivityappsRefresh- Moves an app into a library folder (or to root when folder_id is empty).appsRestoreAppVersion- Version history: git-backed, one version per save (plus legacy publish-era snapshots); authors can list and restore.appsSetFavorite- Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.appsSetMemberState- SetAppMemberStateappsUpdate- UpdateAppappsVerifyRender- Re-fetches data sources, rebuilds the document with a fresh snapshot, re-uploads.auditLogsConfigureOtlpExport- 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- GetChatArtifactsSummarychatsGetAutoAttachedFiles- GetAutoAttachedFileschatsGetChatExecutionTiming- 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- FixWarningobservabilityGetAccessMethodStats- GetAccessMethodStatsobservabilityGetActivePeopleStats- GetActivePeopleStatsobservabilityGetActivePeopleTrend- GetActivePeopleTrendobservabilityGetBackfillPreview- GetBackfillPreviewobservabilityGetBackfillStatus- GetBackfillStatusobservabilityGetBillingStats- GetBillingStatsobservabilityGetChatSourceStats- GetChatSourceStatsobservabilityGetChatTopics- GetChatTopicsobservabilityGetCheckRecordFix- GetCheckRecordFixobservabilityGetCustomTopic- GetCustomTopicobservabilityGetCustomTopicPeople- GetCustomTopicPeopleobservabilityGetCustomTopicThreads- GetCustomTopicThreadsobservabilityGetEngagementSpectrum- GetEngagementSpectrumobservabilityGetMemberActivity- GetMemberActivityobservabilityGetMemberSignalTrend- GetMemberSignalTrendobservabilityGetObservabilityStats- GetObservabilityStatsobservabilityGetThreadWarnings- GetThreadWarningsobservabilityListCustomTopics- ListCustomTopicsobservabilityRefineDraft- RefineTopicDraftobservabilitySetTopicTagFeedback- SetTopicTagFeedbackobservabilityUpdateCustomTopic- UpdateCustomTopicontologyAddSubmodule- AddOntologySubmoduleontologyApprovePatch- ApprovePatchontologyConfigureRemote- ConfigureOntologyRemoteontologyCreateApprovalRule- CreateApprovalRuleontologyCreateContextPatchAutoApproveRule- CreateContextPatchAutoApproveRuleontologyCreateDirectory- CreateOntologyDirectoryontologyCreateFileUploadUrl- Streams how many folders and files a subtree holds, so the UI can report the size of the whole Ontology rather than only the directories it has lazily listed. Counts rise monotonically across frames; the last frame setsfinal. A cache hit emits a singlefinalframe withfrom_cacheset.ontologyDeleteApprovalRule- DeleteApprovalRuleontologyDeleteContextPatchAutoApproveRule- DeleteContextPatchAutoApproveRuleontologyDeleteDirectory- DeleteOntologyDirectoryontologyDeleteFile- DeleteOntologyFileontologyDenyPatch- DenyPatchontologyExchangeGithubCode- ExchangeOntologyGithubCodeontologyFinalizeFileUpload- FinalizeOntologyFileUploadontologyGetAnaConfig- GetOntologyAnaConfigontologyGetCodeownerCoverage- GetCodeownerCoverageontologyGetConfigExportCapabilities- GetConfigExportCapabilitiesontologyGetEffectiveOwners- GetEffectiveOntologyOwnersontologyGetFile- GetOntologyFileontologyGetFileUsage- GetFileUsageontologyGetFileUsageTimeline- GetFileUsageTimelineontologyGetGithubOAuthURL- GetOntologyGithubOAuthURLontologyGetHistoryFileDiff- GetOntologyHistoryFileDiffontologyGetOwners- GetOntologyOwnersontologyGetPatch- GetPatchontologyGetPatchByNumber- GetPatchByNumberontologyGetPatchCapabilities- PlanConfigMigration reports what the lazy config migration WOULD do to this org's objects, and writes nothing. Admin-only, internal: it exists so a release manager can warn the specific orgs a rollout will affect — notably the objects that will stop running because adoption binds a Runner who can no longer run them.ontologyGetRawPatch- GetRawPatchontologyGetRemote- GetOntologyRemoteontologyGetSizeTimeline- GetOntologySizeTimelineontologyGetSyncConflicts- GetOntologySyncConflictsontologyGetUsageDetailsForFile- GetUsageDetailsForFileontologyGetUsageSummary- GetOntologyUsageSummaryontologyListApprovalRules- ListApprovalRulesontologyListChatsForFile- ListChatsForFileontologyListContextPatchAutoApproveRules- ListContextPatchAutoApproveRulesontologyListEntries- ListOntologyEntriesontologyListGoldenFiles- Deprecated: use SetOntologyOwners with the desired entry set. An empty desired set removes every entry and opens the directory.ontologyListHistory- ListOntologyHistoryontologyListImports- ListOntologyImportsontologyListPatches- ListPatchesontologyListPatchObjects- 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).ontologyListPatchReviewers- ListPatchReviewersontologyListSkills- ListSkillsontologyListSubmodules- ListOntologySubmodulesontologyListSyncRuns- ListOntologySyncRunsontologyPlanMerge- PlanOntologyMergeontologyPreviewPullFromRemote- PreviewOntologyPullFromRemoteontologyPullFromRemote- PullOntologyFromRemoteontologyPushToRemote- PushOntologyToRemoteontologyRecover- RecoverOntologyontologyRemoveRemote- 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.ontologyRemoveSubmodule- RemoveOntologySubmoduleontologyRenameFile- RenameOntologyFileontologyRequestPatchReview- RequestPatchReviewontologyResolveSyncConflict- 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.ontologyRestorePatch- RestorePatchontologyRevertPatch- RevertPatchontologySaveAllObjectsAsConfig- SaveAllObjectsAsConfigontologySaveObjectAsConfig- SaveObjectAsConfigontologySetFileGolden- Deprecated: use SetOntologyOwners with the complete desired entry set.ontologySetOwners- SetOntologyOwnersontologyTriggerConfigDriftReconcile- TriggerConfigDriftReconcileontologyUpdateApprovalRule- UpdateApprovalRuleontologyUpdateContextPatchAutoApproveRule- UpdateContextPatchAutoApproveRuleontologyUpdateSyncConfig- UpdateOntologySyncConfigontologyUpsertAnaConfig- UpsertOntologyAnaConfigontologyUpsertFile- UpsertOntologyFileontologyValidateConfig- 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.playbooksAttachDashboard- AttachDashboardplaybooksAttachDataset- AttachDatasetplaybooksCancelTemplateExecution- Cancel template execution for a specific template headerplaybooksCreatePlaybook- CreatePlaybookplaybooksDeactivate- DeactivatePlaybookplaybooksDelete- DeletePlaybookplaybooksDemoPlaybook- DemoPlaybookplaybooksDeploy- DeployPlaybookplaybooksDuplicate- DuplicatePlaybookplaybooksFavoriteReport- Favorite report managementplaybooksFetch- GetPlaybookplaybooksGet- GetPlaybooksplaybooksGetActiveSubscribedCount- GetActiveSubscribedPlaybooksCountplaybooksGetBatchRun- Get a specific batch runplaybooksGetChatReportsSummary- Lightweight endpoint for chat report drawer - returns summaries without full blocksplaybooksGetMembersWith- GetMembersWithPlaybooksplaybooksGetPlaybookLineage- GetPlaybookLineageplaybooksGetPlaybookReportsBatch- Get reports for multiple template data IDs in a single batch requestplaybooksGetPlaybooksPreviews- GetPlaybooksPreviewsplaybooksGetReportById- Get a single report by IDplaybooksGetReports- GetPlaybookReportsplaybooksGetReportsWithFilters- GetReportsWithFiltersplaybooksListAllTeamsChannelContextPlaybooks- ListAllTeamsChannelContextPlaybooksplaybooksListBatchRuns- List batch runs for a playbookplaybooksListSlackChannelContextPlaybooks- List all Slack channels context playbook mappings for the organizationplaybooksListSlackChannelsForContext- List Slack channel IDs where the given playbook is set as the contextplaybooksListTeamsChannelsForContextPlaybook- ListTeamsChannelsForContextPlaybookplaybooksMarkReportAsRead- Report read trackingplaybooksPreviewSlackReport- PreviewSlackReportplaybooksRemoveDashboard- RemoveDashboardplaybooksRemoveDataset- RemoveDatasetplaybooksRun- RunPlaybookplaybooksSetSlackChannelContextPlaybook- 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.playbooksSetTeamsChannelContext- SetTeamsChannelContextPlaybookplaybooksSubscribe- SubscribeToPlaybookplaybooksUnsetSlackChannelContextPlaybook- 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.playbooksUnsetTeamsChannelContext- UnsetTeamsChannelContextPlaybookplaybooksUnsubscribe- UnsubscribeFromPlaybookplaybooksUpdate- UpdatePlaybookpowerbiExportReportImage- ExportPowerBIReportImagepowerbiGenerateEmbedToken- GeneratePowerBIEmbedTokenpowerbiGetDatasetPreview- GetPowerBIDatasetPreviewpowerbiGetSyncedItems- GetSyncedPowerBIItemspowerbiList- ListPowerBIDatasetspowerbiListReports- ListPowerBIReportspowerbiListWorkspaces- ListPowerBIWorkspacespowerbiSyncPowerBIItems- SyncPowerBIItemspowerbiTestConnection- TestPowerBIConnectionpowerbiUnsyncItems- UnsyncPowerBIItemsrbacApproveAccessRequest- ApproveAccessRequestrbacAssignPermissionToRole- AssignPermissionToRolerbacAssignRoleToMember- Bulk add/remove permissions on a role in one call, producing a single audit entry for the whole edit.rbacCreateApiKey- SCIM group-mapping migration tooling: one-time role<->group conversion, internal only.rbacCreatePersonalApiKey- CreatePersonalApiKeyrbacCreateRole- Role managementrbacCreateServiceAccount- CreateServiceAccountrbacCreateServiceAccountApiKey- CreateServiceAccountApiKeyrbacDeleteRole- DeleteRolerbacDeleteServiceAccount- DeleteServiceAccountrbacGenerateShareLink- GenerateShareLinkrbacGetCurrentMemberRolesAndPermissions- GetCurrentMemberRolesAndPermissionsrbacGetEmbedUserApiKey- GetEmbedUserApiKeyrbacGetMemberRoles- Member role assignmentrbacGetObjectAccess- GetObjectAccessrbacGetRole- GetRolerbacGetRolePermissions- Permission managementrbacHasObjectAccess- HasObjectAccessrbacListAccessRequests- ListAccessRequestsrbacListApiKeys- ListApiKeysrbacListPermissions- ListPermissionsrbacListRoles- ListRolesrbacListServiceAccounts- ListServiceAccountsrbacRejectAccessRequest- RejectAccessRequestrbacRemovePermissionFromRole- RemovePermissionFromRolerbacRemoveRoleFromMember- RemoveRoleFromMemberrbacRequestAccess- RequestAccessrbacRevokeApiKey- RevokeApiKeyrbacRevokeObjectAccess- Group management. Internal only.rbacRotateApiKey- Object sharing and access controlrbacSetRolePermissions- SetRolePermissionsrbacShareObject- Get current member roles and permissionsrbacShareObjectWithRole- Describe what a key is allowed to do.rbacUpdateObjectAccess- UpdateObjectAccessrbacUpdateObjectVisibility- UpdateObjectVisibilityrbacUpdateRole- UpdateRolerbacWhoAmI- WhoAmIsandboxAdminGetSandbox- GetSandboxsandboxAdminList- ListSandboxessandboxAdminListExecutions- ListSandboxExecutionssandboxAdminListSandboxEgress- Outbound HTTP(S) calls a sandbox made (the egress ledger). Durable — reads the recorded table, so it works for stopped sandboxes too.sandboxAdminListSandboxFiles- Live filesystem of a running sandbox. Both are NO-OP (read-only) and only return data while the worker is alive; available=false otherwise.sandboxAdminListSandboxSpend- 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.sandboxAdminReadFile- ReadSandboxFilesandboxAdminRestartSandbox- 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).sandboxAdminStop- StopSandboxsandboxCapabilitiesExecuteWrite- ExecuteWritesandboxCapabilitiesPollAsk- PollAsksandboxCapabilitiesPutAsset- PutAssetsandboxCapabilitiesSendNotify- SendNotifysandboxCapabilitiesStartAsk- StartAsksandboxCapabilitiesStateOp- StateOpsandboxCreate- CreateSandboxsandboxExec- ExecsandboxExecuteBash- Runs in the caller's own worker; no connector/source scoping.sandboxExecuteCode- ExecuteCodesandboxExecuteQuery- ExecuteQuerysandboxGetToolAvailability- GetToolAvailabilitysandboxLoadConnectorData- LoadConnectorDatascimCreateOAuthClient- CreateScimOAuthClientscimCreateScimToken- CreateScimTokenscimList- ListScimTokensscimListScimOAuthClients- ListScimOAuthClientsscimRevokeOAuthClient- RevokeScimOAuthClientscimRevokeScimToken- RevokeScimTokensecretsDeleteSecret- DeleteSecretsecretsGetMembersWithSecrets- GetMembersWithSecretssecretsListSecrets- ListSecretssecretsPutSecret- PutSecretsecretsUpdate- UpdateSecretsettingsCheckMemberStatus- CheckMemberStatussettingsDeleteMember- DeleteOrganizationMembersettingsGet- GetOrganizationSettingssettingsInviteMember- InviteOrganizationMembersettingsListMembers- ListOrganizationMemberssettingsUpdate- UpdateOrganizationSettingssettingsUpdateModels- UpdateOrganizationModelSettingsslackCreateUuid- CreateSlackUuidslackDeleteInstallation- DeleteInstallationslackGetCurrentUser- GetCurrentUserslackHandleOAuthCallback- HandleSlackOAuthCallbackslackListChannels- ListChannelsslackListInstallations- ListInstallationsslackListUsers- ListUsersslackSyncWorkspace- SyncWorkspacetableauGenerateEmbedToken- Generate JWT token for embedding viewstableauGetCollectionThumbnail- Get collection thumbnail (first view image)tableauGetConnectedAppStatus- GetConnectedAppStatustableauGetStarredItems- GetStarredTableauItemstableauListProjects- List Tableau projectstableauListTableauDatasources- List Tableau datasourcestableauListViews- List Tableau viewstableauListWorkbooks- List Tableau workbookstableauRefreshCollection- RefreshTableauCollectiontableauResetConnectedApp- ResetConnectedApptableauStarItem- Star/unstar itemstableauTestTableauConnection- Test a Tableau connectiontableauUnstarTableauItem- UnstarTableauItemteamsCreateUuid- CreateTeamsUuidteamsDeleteInstallation- DeleteInstallationteamsGetCurrentUser- GetCurrentUserteamsHandleOAuthCallback- HandleTeamsOAuthCallbackteamsList- ListChannelsteamsListInstallations- ListInstallationsteamsListUsers- ListUsersteamsSyncWorkspace- SyncWorkspace
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
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: {},
}, {
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
});
console.log(result);
}
run();If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
import { Textql } from "@textql/sdk";
const textql = new Textql({
retryConfig: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.agents.create({
body: {},
});
console.log(result);
}
run();TextqlError is the base class for all HTTP error responses. It has the following properties:
| Property | Type | Description |
|---|---|---|
error.message |
string |
Error message |
error.statusCode |
number |
HTTP response status code eg 404 |
error.headers |
Headers |
HTTP response headers |
error.body |
string |
HTTP body. Can be empty string if no body is returned. |
error.rawResponse |
Response |
Raw HTTP response |
import { Textql } from "@textql/sdk";
import * as errors from "@textql/sdk/models/errors";
const textql = new Textql({
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
try {
const result = await textql.agents.create({
body: {},
});
console.log(result);
} catch (error) {
if (error instanceof errors.TextqlError) {
console.log(error.message);
console.log(error.statusCode);
console.log(error.body);
console.log(error.headers);
}
}
}
run();Primary error:
TextqlError: The base class for HTTP error responses.
Less common errors (6)
Network errors:
ConnectionError: HTTP client was unable to make a request to a server.RequestTimeoutError: HTTP request timed out due to an AbortSignal signal.RequestAbortedError: HTTP request was aborted by the client.InvalidRequestError: Any input used to create a request is invalid.UnexpectedClientError: Unrecognised or unexpected error.
Inherit from TextqlError:
ResponseValidationError: Type mismatch between the data returned from the server and the structure expected by the SDK. Seeerror.rawValuefor the raw value anderror.pretty()for a nicely formatted multi-line string.
The default server can be overridden globally by passing a URL to the serverURL: string optional parameter when initializing the SDK client instance. For example:
import { Textql } from "@textql/sdk";
const textql = new Textql({
serverURL: "https://app.textql.com/rpc/public",
apiKey: process.env["TEXTQL_API_KEY"] ?? "",
});
async function run() {
const result = await textql.agents.create({
body: {},
});
console.log(result);
}
run();The TypeScript SDK makes API calls using an HTTPClient that wraps the native
Fetch API. This
client is a thin wrapper around fetch and provides the ability to attach hooks
around the request lifecycle that can be used to modify the request or handle
errors and response.
The HTTPClient constructor takes an optional fetcher argument that can be
used to integrate a third-party HTTP client or when writing tests to mock out
the HTTP client and feed in fixtures.
The following example shows how to:
- route requests through a proxy server using undici's ProxyAgent
- use the
"beforeRequest"hook to add a custom header and a timeout to requests - use the
"requestError"hook to log errors
import { Textql } from "@textql/sdk";
import { ProxyAgent } from "undici";
import { HTTPClient } from "@textql/sdk/lib/http";
const dispatcher = new ProxyAgent("http://proxy.example.com:8080");
const httpClient = new HTTPClient({
// 'fetcher' takes a function that has the same signature as native 'fetch'.
fetcher: (input, init) =>
// 'dispatcher' is specific to undici and not part of the standard Fetch API.
fetch(input, { ...init, dispatcher } as RequestInit),
});
httpClient.addHook("beforeRequest", (request) => {
const nextRequest = new Request(request, {
signal: request.signal || AbortSignal.timeout(5000)
});
nextRequest.headers.set("x-custom-header", "custom value");
return nextRequest;
});
httpClient.addHook("requestError", (error, request) => {
console.group("Request Error");
console.log("Reason:", `${error}`);
console.log("Endpoint:", `${request.method} ${request.url}`);
console.groupEnd();
});
const sdk = new Textql({ httpClient: httpClient });You can setup your SDK to emit debug logs for SDK requests and responses.
You can pass a logger that matches console's interface as an SDK option.
Warning
Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
import { Textql } from "@textql/sdk";
const sdk = new Textql({ debugLogger: console });You can also enable a default debug logger by setting an environment variable TEXTQL_DEBUG to true.
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.