🔒 Admin only. Requires administrator privileges — the authenticated principal (API key, embed JWT, or any bearer token) must belong to a user with the admin role.Creates a one-time embed session for a deployment and returns its sessionId.The session captures the embed context that will be baked into the embed token once redeemed — the target deploymentId, the end user’s identity (externalId / email / userProfile), their group memberships, userAttributes, and an optional securityContext. Exchange the returned sessionId for a signed embed JWT via POST /api/v1/embed/session/token (single use).The end user can be assigned to two independent kinds of group, which serve different purposes:
groups — global, tenant-wide groups for data-model access control. Their names are passed verbatim into the Cube security context (cubeCloud.groups), where your data model’s access_policy rules use them to gate cubes, views, members, and row-/column-level filters. They must already exist in the tenant.
tenantGroups — per-embed-tenant groups for sharing and organizing content within a single embed tenant (e.g. sharing a workbook or dashboard with a group in Creator Mode). Requires creatorMode: true and embedTenantName; create them inline via tenantGroupDefinitions. In the security context they are namespaced as system:tenant:{embedTenantName}:group:{group}, so they never collide with a same-named global group.
See the individual request-body fields for the full contract.deploymentId is required and the caller must have read access to it. Embedding must be enabled for the tenant, otherwise 403 is returned.
Branch of deploymentId whose data model this session queries. Omit it — or pass the deployment’s production branch — to query the production environment, which is the default. Any other branch of the deployment is accepted: a branch with a staging environment enabled, a shared branch, or a personal dev branch. The branch must be served when the session is generated, otherwise the request is rejected: a branch without a staging environment runs only while someone has it open in Cube (dev mode or the branch switcher), so enable its staging environment for a branch an embedded app should be able to reach at any time. A name that is not a branch of the deployment returns 404. Content (dashboards, workbooks, reports) is not branch-scoped — the same saved content is rendered against the branch’s data model.
creatorMode
boolean | null
email
string | null
embedTenantName
string | null
Pattern: ^[a-z][a-z0-9-]{0,34}[a-z0-9]$
embedTenantProfile
object | null
Show child attributes
embedTheme
object | null
Show child attributes
externalId
string | null
groupDefinitions
object[] | null
deprecated
Deprecated and ignored. Global groups can no longer be created through this endpoint — define them beforehand via the Cube UI or admin API. Still accepted for backward compatibility (no error), but it has no effect. To create per-embed-tenant groups, use tenantGroupDefinitions.
Show child attributes
groups
string[] | null
Global user groups — defined once at the tenant level and shared across every embed tenant — to assign this embed user to. Use groups for data-model access control: each name is placed verbatim into the Cube security context as cubeCloud.groups, where your data model's access_policy rules reference it to gate cubes, views, members, and row-/column-level filters. The groups must already exist in the tenant (create them via the Cube UI or admin API beforehand) — this endpoint never creates global groups, and names that do not resolve to an existing group are rejected. Global groups are NOT shown in an embed tenant’s Creator Mode UI. To share or organize content inside a single embed tenant, use tenantGroups instead.
internalId
string | null
isEphemeral
boolean | null
publicDashboardId
string | null
roles
string[] | null
securityContext
object | null
settings
object | null
Per-session overrides for embed behavior, stored in the signed embed token. Each documented key applies only to this session; omitted keys preserve their existing default behavior.
Show child attributes
tenantGroupDefinitions
object[] | null
Idempotently create or update the per-embed-tenant groups referenced by tenantGroups, before they are assigned. Requires creatorMode: true and embedTenantName. Use this to declare a tenant’s groups in the same call that assigns them, so you do not need a separate admin request. Applies only to per-embed-tenant groups; global groups must be defined beforehand.
Show child attributes
tenantGroups
string[] | null
Per-embed-tenant user groups — scoped to the single embed tenant named by embedTenantName — to assign this embed user to. Use tenantGroups for content sharing and organization within one embed tenant: for example, so a creator can share a workbook, dashboard, or folder with a group of that tenant’s users. These are the only groups shown in the embed tenant’s Creator Mode UI. Requires creatorMode: true and embedTenantName. Define the groups beforehand — or in the same request — via tenantGroupDefinitions. In the Cube security context they appear namespaced as system:tenant:{embedTenantName}:group:{groupName}, so a tenant group can never collide with — or be mistaken for — a global groups entry of the same name. For organization-wide data-model access policies, use groups.
userAttributeDefinitions
object[] | null
Show child attributes
userAttributes
object[] | null
Show child attributes
userProfile
object | null
Show child attributes
Response
200 - application/json
sessionId
string
required
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cube Documentation","colors":{"primary":"#5339CF","light":"#A5A3FF","dark":"#716EEE"},"logo":{"light":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/light.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=8bbf45ba64eac6116629064fac55aad7","dark":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/dark.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=d8fa230950c8c63b3c2f88d2768694d0"},"favicon":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/favicon.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=3b0cb7aa770d2abd546ef19463fbba8c","navbar":{"links":[{"href":"https://cube.dev/demos","label":"Demos"},{"href":"https://cube.dev/changelog","label":"Changelog"},{"href":"https://slack.cube.dev","label":"Community"}],"primary":{"type":"button","label":"Get Started","href":"https://cubecloud.dev/auth/signup"}},"footer":{"socials":{"x":"https://x.com/the_cube_dev","github":"https://github.com/cube-js/cube","linkedin":"https://www.linkedin.com/company/cube-dev"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://cube.dev/legal/privacy-policy"},{"label":"Cookie Preferences","href":"#cookie-preferences"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Cube Documentation"},"indexing":"navigable"},"icons":{"library":"tabler"},"styling":{"codeblocks":"dark","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cubed3","hasAudioNarration":false,"actualSubdomain":"cubed3","customDomains":["docs.cube.dev"],"gitSource":{"type":"github","owner":"cube-js","repo":"cube","deployBranch":"master","contentDirectory":"docs-mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6b10dd409ffae5051c40fe8d"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b14051213ed3bd32f212297","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API","count":253},{"language":"default","tag":"Platform Endpoints","count":246},{"language":"default","tag":"Documentation","count":115},{"language":"default","tag":"Admin","count":102},{"language":"default","tag":"Data Modeling","count":68},{"language":"default","tag":"Reference","count":48},{"language":"default","tag":"Recipes","count":47},{"language":"default","tag":"Topics","count":47},{"language":"default","tag":"Explore \u0026 Analyze","count":36},{"language":"default","tag":"Connect to data","count":32}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area table,.mdx-content table{width:100%!important}.cube-consent{position:fixed;right:16px;bottom:16px;z-index:2147483000;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;width:min(440px, calc(100vw - 32px));padding:16px;background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px rgb(0 0 0 / 12%);font-size:14px;line-height:1.5}html.dark .cube-consent{background:#111318;color:#f3f4f6;border-color:#2b2f38}.cube-consent__title{margin:0;padding-right:24px;font-size:16px;font-weight:600}.cube-consent__text,.cube-consent__status{margin:0;color:#4b5563}html.dark .cube-consent__text,html.dark .cube-consent__status{color:#b6bcc8}.cube-consent__link{color:inherit;text-decoration:underline}.cube-consent__actions{display:flex;gap:8px}.cube-consent__button{flex:1;padding:8px 16px;border:1px solid #111827;border-radius:6px;background:#111827;color:#fff;font:inherit;font-weight:500;cursor:pointer}html.dark .cube-consent__button{border-color:#f3f4f6;background:#f3f4f6;color:#111318}.cube-consent__button:hover{opacity:0.88}.cube-consent__button:focus-visible,.cube-consent__close:focus-visible,.cube-consent__link:focus-visible{outline:2px solid #111827;outline-offset:2px}html.dark .cube-consent :focus-visible{outline-color:#f3f4f6}.cube-consent__close{position:absolute;top:8px;right:8px;width:24px;height:24px;padding:0;border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer}.frame:has([data-ramka-trigger] img){padding:0;background:transparent;border-radius:6px}.frame:has([data-ramka-trigger] img)>div{border-radius:6px}.frame [data-ramka-trigger] img{border:1px solid rgb(0 0 0 / 0.1);border-radius:6px!important}.dark .frame [data-ramka-trigger] img{border-color:rgb(255 255 255 / 0.1)}.zoom-image-content [data-ramka-media] img{border:1px solid rgb(0 0 0 / 0.1);border-radius:6px;box-shadow:0 8px 32px rgb(0 0 0 / 0.12)}.dark .zoom-image-content [data-ramka-media] img{border-color:rgb(255 255 255 / 0.1)}svg[id^=\"mermaid-\"]{--d-tile: #f3f3fb;--d-ink: #141446;--d-line: #6f6f7b;--d-violet: #7a77ff;--d-orange: #f4982b;--d-ask: #fff;--d-bg: #fff}html.dark svg[id^=\"mermaid-\"]{--d-tile: #22223a;--d-ink: #e6e6f4;--d-line: #9a9aaa;--d-ask: #0c0c10;--d-bg: #0c0c10}svg[id^=\"mermaid-\"] .node:is(.tile,.hub,.start,.out) :is(rect,polygon,path){stroke:none!important}svg[id^=\"mermaid-\"] .node.tile :is(rect,polygon,path){fill:var(--d-tile)!important}svg[id^=\"mermaid-\"] .node:is(.start,.out) :is(rect,polygon,path){fill:var(--d-violet)!important}svg[id^=\"mermaid-\"] .node.ask :is(rect,polygon,path){fill:var(--d-ask)!important;stroke:var(--d-ink)!important;stroke-width:1px!important}svg[id^=\"mermaid-\"] .nodeLabel,svg[id^=\"mermaid-\"] .edgeLabel{color:var(--d-ink)!important}svg[id^=\"mermaid-\"] .node:is(.start,.out) .nodeLabel{color:#fff!important;font-weight:700}svg[id^=\"mermaid-\"] .flowchart-link{stroke:var(--d-line)!important;stroke-width:1.2px!important}svg[id^=\"mermaid-\"] .flowchart-link[class*=\"dotted\"]{stroke:var(--d-ink)!important;stroke-width:1.5px!important;stroke-dasharray:0.1 5!important;stroke-linecap:round}svg[id^=\"mermaid-\"] marker path{fill:var(--d-ink)!important;stroke:none!important}svg[id^=\"mermaid-\"] :is(.labelBkg,.edgeLabel,.edgeLabel p){background:var(--d-bg)!important}svg[id^=\"mermaid-\"] .edgeLabel rect{fill:var(--d-bg)!important}svg[id^=\"mermaid-\"] foreignObject{overflow:visible}svg[id^=\"mermaid-\"] :is(.yes,.no){display:inline-block;margin:2px;padding:3px 9px;border-radius:6px;color:#fff}svg[id^=\"mermaid-\"] .yes{background:var(--d-violet)}svg[id^=\"mermaid-\"] .no{background:var(--d-orange)}svg[id^=\"mermaid-\"] code{font-size:0.85em;padding:0;background:none;border:0;color:inherit;white-space:nowrap}svg[id^=\"mermaid-\"] .node:is(.tile,.hub,.out) rect{rx:10px;ry:10px}svg[id^=\"mermaid-\"] .node .label div{max-width:360px!important}svg[id^=\"mermaid-\"] .node.tile img{display:inline-block!important;width:26px!important;height:26px!important;margin:0 10px 0 0;vertical-align:middle}svg[id^=\"mermaid-\"] .node.hub img{display:block!important;width:44px!important;height:44px!important;margin:4px auto 6px}svg[id^=\"mermaid-\"] .node.hub rect{fill:var(--d-tile)!important}svg[id^=\"mermaid-\"] .node img.on-dark,html.dark svg[id^=\"mermaid-\"] .node img.on-light{display:none!important}html.dark svg[id^=\"mermaid-\"] .node.hub img.on-dark{display:block!important}html.dark svg[id^=\"mermaid-\"] .node.tile img.on-dark{display:inline-block!important}svg[id^=\"mermaid-\"] .node.hub .nodeLabel{display:block;padding:14px 18px}"}]}
{"page":{"pagePath":"api-reference/embed/generate-an-embed-session","slug":"/api-reference/embed/generate-an-embed-session","pageMetadata":{"title":"Generate an embed session","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/generate-session","href":"/api-reference/embed/generate-an-embed-session","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`🔒 Admin only.`}),` Requires administrator privileges — the authenticated principal (API key, embed JWT, or any bearer token) must belong to a user with the admin role.`]}),`\n`,_jsxs(_components.p,{children:[`Creates a one-time embed session for a deployment and returns its `,_jsx(_components.code,{children:`sessionId`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The session captures the embed context that will be baked into the embed token once redeemed — the target `,_jsx(_components.code,{children:`deploymentId`}),`, the end user’s identity (`,_jsx(_components.code,{children:`externalId`}),` / `,_jsx(_components.code,{children:`email`}),` / `,_jsx(_components.code,{children:`userProfile`}),`), their group memberships, `,_jsx(_components.code,{children:`userAttributes`}),`, and an optional `,_jsx(_components.code,{children:`securityContext`}),`. Exchange the returned `,_jsx(_components.code,{children:`sessionId`}),` for a signed embed JWT via `,_jsx(_components.code,{children:`POST /api/v1/embed/session/token`}),` (single use).`]}),`\n`,_jsx(_components.p,{children:`The end user can be assigned to two independent kinds of group, which serve different purposes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`groups`})}),` — global, tenant-wide groups for `,_jsx(_components.strong,{children:`data-model access control`}),`. Their names are passed verbatim into the Cube security context (`,_jsx(_components.code,{children:`cubeCloud.groups`}),`), where your data model’s `,_jsx(_components.code,{children:`access_policy`}),` rules use them to gate cubes, views, members, and row-/column-level filters. They must already exist in the tenant.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`tenantGroups`})}),` — per-embed-tenant groups for `,_jsx(_components.strong,{children:`sharing and organizing content within a single embed tenant`}),` (e.g. sharing a workbook or dashboard with a group in Creator Mode). Requires `,_jsx(_components.code,{children:`creatorMode: true`}),` and `,_jsx(_components.code,{children:`embedTenantName`}),`; create them inline via `,_jsx(_components.code,{children:`tenantGroupDefinitions`}),`. In the security context they are namespaced as `,_jsx(_components.code,{children:`system:tenant:{embedTenantName}:group:{group}`}),`, so they never collide with a same-named global group.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`See the individual request-body fields for the full contract.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deploymentId`}),` is required and the caller must have read access to it. Embedding must be enabled for the tenant, otherwise `,_jsx(_components.code,{children:`403`}),` is returned.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Generate an embed session","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/generate-session","href":"/api-reference/embed/generate-an-embed-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cubed3/73c42f6b43b9b3b0/scripts/extract-chat.js","/_mintlify/custom/cubed3/08d502537a7bd0d7/scripts/extract-core-data.js","/_mintlify/custom/cubed3/476a9fa93e98d93b/consent.js"],"openApiReferenceData":{"operation":{"operationId":"generateSession","requestBody":"915111ff-5bd2-4dce-8e8c-9055fdfdcbe0","responses":{"200":"462dd1e0-8e91-4055-82dc-dfa23699057c"},"summary":"Generate an embed session","tags":["Embed"],"x-mint":{"content":"**🔒 Admin only.** Requires administrator privileges — the authenticated principal (API key, embed JWT, or any bearer token) must belong to a user with the admin role.\n\nCreates a one-time embed session for a deployment and returns its `sessionId`.\n\nThe session captures the embed context that will be baked into the embed token once redeemed — the target `deploymentId`, the end user's identity (`externalId` / `email` / `userProfile`), their group memberships, `userAttributes`, and an optional `securityContext`. Exchange the returned `sessionId` for a signed embed JWT via `POST /api/v1/embed/session/token` (single use).\n\nThe end user can be assigned to two independent kinds of group, which serve different purposes:\n\n- **`groups`** — global, tenant-wide groups for **data-model access control**. Their names are passed verbatim into the Cube security context (`cubeCloud.groups`), where your data model's `access_policy` rules use them to gate cubes, views, members, and row-/column-level filters. They must already exist in the tenant.\n- **`tenantGroups`** — per-embed-tenant groups for **sharing and organizing content within a single embed tenant** (e.g. sharing a workbook or dashboard with a group in Creator Mode). Requires `creatorMode: true` and `embedTenantName`; create them inline via `tenantGroupDefinitions`. In the security context they are namespaced as `system:tenant:{embedTenantName}:group:{group}`, so they never collide with a same-named global group.\n\nSee the individual request-body fields for the full contract.\n\n`deploymentId` is required and the caller must have read access to it. Embedding must be enabled for the tenant, otherwise `403` is returned."},"method":"post","type":"path","servers":["de9ada8f-9b45-49c6-9466-8130619a1f8f"],"security":["ad32ddae-364f-4eee-a122-d19f4a3cca1f"],"path":"/api/v1/embed/generate-session","baseUrlOptions":["https://{tenant}.cubecloud.dev"],"title":"Generate an embed session","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"deploymentId":{"type":"number","isRequired":true,"uniqueKey":"deploymentId","typeLabel":"number"},"branchName":{"oneOf":[{"type":"string","description":"Branch of `deploymentId` whose data model this session queries. Omit it — or pass the deployment’s production branch — to query the production environment, which is the default. Any other branch of the deployment is accepted: a branch with a staging environment enabled, a shared branch, or a personal dev branch. The branch must be served when the session is generated, otherwise the request is rejected: a branch without a staging environment runs only while someone has it open in Cube (dev mode or the branch switcher), so enable its staging environment for a branch an embedded app should be able to reach at any time. A name that is not a branch of the deployment returns `404`. Content (dashboards, workbooks, reports) is not branch-scoped — the same saved content is rendered against the branch’s data model.","uniqueKey":"branchName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Branch of `deploymentId` whose data model this session queries. Omit it — or pass the deployment’s production branch — to query the production environment, which is the default. Any other branch of the deployment is accepted: a branch with a staging environment enabled, a shared branch, or a personal dev branch. The branch must be served when the session is generated, otherwise the request is rejected: a branch without a staging environment runs only while someone has it open in Cube (dev mode or the branch switcher), so enable its staging environment for a branch an embedded app should be able to reach at any time. A name that is not a branch of the deployment returns `404`. Content (dashboards, workbooks, reports) is not branch-scoped — the same saved content is rendered against the branch’s data model.","uniqueKey":"branchName.oneOf.1","typeLabel":"null"}],"uniqueKey":"branchName","typeLabel":"string | null"},"creatorMode":{"oneOf":[{"type":"boolean","uniqueKey":"creatorMode.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"creatorMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"creatorMode","typeLabel":"boolean | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string | null"},"embedTenantName":{"oneOf":[{"type":"string","pattern":"^[a-z][a-z0-9-]{0,34}[a-z0-9]$","uniqueKey":"embedTenantName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTenantName.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTenantName","typeLabel":"string | null"},"embedTenantProfile":{"oneOf":[{"type":"object","properties":{"displayName":{"oneOf":[{"type":"string","uniqueKey":"embedTenantProfile.oneOf.0.displayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTenantProfile.oneOf.0.displayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTenantProfile.oneOf.0.displayName","typeLabel":"string | null"}},"uniqueKey":"embedTenantProfile.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"embedTenantProfile.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTenantProfile","typeLabel":"object | null"},"embedTheme":{"oneOf":[{"type":"object","properties":{"analyticsChat":{"oneOf":[{"type":"object","properties":{"backgroundColor":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.backgroundColor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.backgroundColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.backgroundColor","typeLabel":"string | null"},"chatInput":{"oneOf":[{"type":"object","properties":{"backgroundColor":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.backgroundColor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.backgroundColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.backgroundColor","typeLabel":"string | null"},"borderColor":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.borderColor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.borderColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0.borderColor","typeLabel":"string | null"}},"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0.chatInput","typeLabel":"object | null"}},"uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.analyticsChat.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.analyticsChat","typeLabel":"object | null"},"chat":{"oneOf":[{"type":"object","properties":{"inputColor":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.chat.oneOf.0.inputColor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.chat.oneOf.0.inputColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.chat.oneOf.0.inputColor","typeLabel":"string | null"}},"uniqueKey":"embedTheme.oneOf.0.chat.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.chat.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.chat","typeLabel":"object | null"},"font":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.font.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.font.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.font","typeLabel":"string | null"},"primaryColor":{"oneOf":[{"type":"string","uniqueKey":"embedTheme.oneOf.0.primaryColor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"embedTheme.oneOf.0.primaryColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme.oneOf.0.primaryColor","typeLabel":"string | null"}},"uniqueKey":"embedTheme.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"embedTheme.oneOf.1","typeLabel":"null"}],"uniqueKey":"embedTheme","typeLabel":"object | null"},"externalId":{"oneOf":[{"type":"string","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"groupDefinitions":{"oneOf":[{"type":"array","items":{"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"groupDefinitions.oneOf.0.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"groupDefinitions.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"groupDefinitions.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"groupDefinitions.oneOf.0.items.[INDEX].description","typeLabel":"string | null"}},"required":["name"],"type":"object","uniqueKey":"groupDefinitions.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Deprecated and ignored. Global groups can no longer be created through this endpoint — define them beforehand via the Cube UI or admin API. Still accepted for backward compatibility (no error), but it has no effect. To create per-embed-tenant groups, use `tenantGroupDefinitions`.","deprecated":true,"uniqueKey":"groupDefinitions.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Deprecated and ignored. Global groups can no longer be created through this endpoint — define them beforehand via the Cube UI or admin API. Still accepted for backward compatibility (no error), but it has no effect. To create per-embed-tenant groups, use `tenantGroupDefinitions`.","deprecated":true,"uniqueKey":"groupDefinitions.oneOf.1","typeLabel":"null"}],"uniqueKey":"groupDefinitions","typeLabel":"object[] | null"},"groups":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"groups.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Global user groups — defined once at the tenant level and shared across every embed tenant — to assign this embed user to. Use `groups` for **data-model access control**: each name is placed verbatim into the Cube security context as `cubeCloud.groups`, where your data model's `access_policy` rules reference it to gate cubes, views, members, and row-/column-level filters. The groups must already exist in the tenant (create them via the Cube UI or admin API beforehand) — this endpoint never creates global groups, and names that do not resolve to an existing group are rejected. Global groups are NOT shown in an embed tenant’s Creator Mode UI. To share or organize content inside a single embed tenant, use `tenantGroups` instead.","uniqueKey":"groups.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Global user groups — defined once at the tenant level and shared across every embed tenant — to assign this embed user to. Use `groups` for **data-model access control**: each name is placed verbatim into the Cube security context as `cubeCloud.groups`, where your data model's `access_policy` rules reference it to gate cubes, views, members, and row-/column-level filters. The groups must already exist in the tenant (create them via the Cube UI or admin API beforehand) — this endpoint never creates global groups, and names that do not resolve to an existing group are rejected. Global groups are NOT shown in an embed tenant’s Creator Mode UI. To share or organize content inside a single embed tenant, use `tenantGroups` instead.","uniqueKey":"groups.oneOf.1","typeLabel":"null"}],"uniqueKey":"groups","typeLabel":"string[] | null"},"internalId":{"oneOf":[{"type":"string","uniqueKey":"internalId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"internalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"internalId","typeLabel":"string | null"},"isEphemeral":{"oneOf":[{"type":"boolean","uniqueKey":"isEphemeral.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"isEphemeral.oneOf.1","typeLabel":"null"}],"uniqueKey":"isEphemeral","typeLabel":"boolean | null"},"publicDashboardId":{"oneOf":[{"type":"string","uniqueKey":"publicDashboardId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"publicDashboardId.oneOf.1","typeLabel":"null"}],"uniqueKey":"publicDashboardId","typeLabel":"string | null"},"roles":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"roles.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"roles.oneOf.0","typeLabel":"string[]"},{"type":"null","uniqueKey":"roles.oneOf.1","typeLabel":"null"}],"uniqueKey":"roles","typeLabel":"string[] | null"},"securityContext":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"securityContext.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"securityContext.oneOf.1","typeLabel":"null"}],"uniqueKey":"securityContext","typeLabel":"object | null"},"settings":{"oneOf":[{"type":"object","description":"Per-session overrides for embed behavior, stored in the signed embed token. Each documented key applies only to this session; omitted keys preserve their existing default behavior.","properties":{"allowAi":{"oneOf":[{"type":"boolean","description":"Whether this session may use AI at all. This is the master switch over every AI surface in the embed: the dashboard agent, the workbook chat, the AI summary widgets and the standalone embedded chat. Omit to inherit the account-wide embed setting (allowed by default); `false` disables AI even if it is enabled account-wide. Unlike the `show*` keys below it is enforced server-side — the session cannot obtain AI Chat credentials at all, so no request made with it can consume AI tokens — and it outranks them: a `false` here disables a surface whose own `show*` key is `true`. It does not change user roles or permissions for non-AI API calls. `null` is accepted and means the same as omitting it.","uniqueKey":"settings.oneOf.0.allowAi.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether this session may use AI at all. This is the master switch over every AI surface in the embed: the dashboard agent, the workbook chat, the AI summary widgets and the standalone embedded chat. Omit to inherit the account-wide embed setting (allowed by default); `false` disables AI even if it is enabled account-wide. Unlike the `show*` keys below it is enforced server-side — the session cannot obtain AI Chat credentials at all, so no request made with it can consume AI tokens — and it outranks them: a `false` here disables a surface whose own `show*` key is `true`. It does not change user roles or permissions for non-AI API calls. `null` is accepted and means the same as omitting it.","uniqueKey":"settings.oneOf.0.allowAi.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.allowAi","typeLabel":"boolean | null"},"allowChatWorkspaceAuthoring":{"oneOf":[{"type":"boolean","description":"Whether AI Chat authenticated with this session may create or modify persistent Cube Workspace content. Set to `false` for headless chat integrations that render answers in their own UI: ad-hoc data analysis and inline tables/charts remain available, but the agent cannot save or update standalone explorations/reports, create or modify workbooks, create or publish dashboards, or direct users to those Cube UI surfaces. Omit or set to `true` to preserve the session user's role-derived authoring capabilities; `true` never grants access the user does not already have. For an `externalId` session, authoring also requires `creatorMode: true`: outside creator mode the agent never saves workspace content. This setting changes only AI Chat tools and instructions. It does not change user roles or permissions for direct API calls.","uniqueKey":"settings.oneOf.0.allowChatWorkspaceAuthoring.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether AI Chat authenticated with this session may create or modify persistent Cube Workspace content. Set to `false` for headless chat integrations that render answers in their own UI: ad-hoc data analysis and inline tables/charts remain available, but the agent cannot save or update standalone explorations/reports, create or modify workbooks, create or publish dashboards, or direct users to those Cube UI surfaces. Omit or set to `true` to preserve the session user's role-derived authoring capabilities; `true` never grants access the user does not already have. For an `externalId` session, authoring also requires `creatorMode: true`: outside creator mode the agent never saves workspace content. This setting changes only AI Chat tools and instructions. It does not change user roles or permissions for direct API calls.","uniqueKey":"settings.oneOf.0.allowChatWorkspaceAuthoring.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.allowChatWorkspaceAuthoring","typeLabel":"boolean | null"},"locale":{"oneOf":[{"type":"string","description":"UI language for every embed viewed with this session, as a BCP-47 code — a full code (`es-ES`), a short code (`es`) or a regional variant all resolve to a shipped locale. Sits between the per-iframe `?locale=` parameter, which still wins because it is the more specific answer, and the account-wide default under Embed → Settings. A language Cube does not ship falls through to that default rather than failing the session.","uniqueKey":"settings.oneOf.0.locale.oneOf.0","typeLabel":"string"},{"type":"null","description":"UI language for every embed viewed with this session, as a BCP-47 code — a full code (`es-ES`), a short code (`es`) or a regional variant all resolve to a shipped locale. Sits between the per-iframe `?locale=` parameter, which still wins because it is the more specific answer, and the account-wide default under Embed → Settings. A language Cube does not ship falls through to that default rather than failing the session.","uniqueKey":"settings.oneOf.0.locale.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.locale","typeLabel":"string | null"},"showAiWidgets":{"oneOf":[{"type":"boolean","description":"Whether AI summary widgets are authorable and refreshable with this session: the \"AI widget\" entry in the dashboard editor's Add widgets menu, and the prompt input plus Generate/Regenerate controls on an existing widget. An already-generated summary still renders, so a published dashboard keeps its content — it simply cannot be regenerated. Omit to inherit the account-wide embed setting (enabled by default); `false` disables them even if they are enabled account-wide, `true` enables them even if they are disabled account-wide.","uniqueKey":"settings.oneOf.0.showAiWidgets.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether AI summary widgets are authorable and refreshable with this session: the \"AI widget\" entry in the dashboard editor's Add widgets menu, and the prompt input plus Generate/Regenerate controls on an existing widget. An already-generated summary still renders, so a published dashboard keeps its content — it simply cannot be regenerated. Omit to inherit the account-wide embed setting (enabled by default); `false` disables them even if they are enabled account-wide, `true` enables them even if they are disabled account-wide.","uniqueKey":"settings.oneOf.0.showAiWidgets.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showAiWidgets","typeLabel":"boolean | null"},"showDashboardChat":{"oneOf":[{"type":"boolean","description":"Whether embedded published dashboards viewed with this session show the AI chat (agent panel and launcher bubble). Omit to inherit the account-wide embed setting (shown by default); `false` hides the chat even if it is enabled account-wide, `true` shows it even if it is disabled account-wide. Only affects the dashboard surface, and only hides the entry point — use `allowAi` to withhold AI from the session.","uniqueKey":"settings.oneOf.0.showDashboardChat.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether embedded published dashboards viewed with this session show the AI chat (agent panel and launcher bubble). Omit to inherit the account-wide embed setting (shown by default); `false` hides the chat even if it is enabled account-wide, `true` shows it even if it is disabled account-wide. Only affects the dashboard surface, and only hides the entry point — use `allowAi` to withhold AI from the session.","uniqueKey":"settings.oneOf.0.showDashboardChat.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showDashboardChat","typeLabel":"boolean | null"},"showDashboardSettings":{"oneOf":[{"type":"boolean","description":"Whether the dashboard editor viewed with this session offers its settings panel — the gear button and the sidebar behind it. That panel is the ONLY place an embed user can reach the dashboard slug, the per-dashboard time zone, the per-dashboard agent, the grid behaviour switches and the dashboard theme, so `false` withdraws all of them together. Omit or set to `true` to keep the panel (the default).","uniqueKey":"settings.oneOf.0.showDashboardSettings.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the dashboard editor viewed with this session offers its settings panel — the gear button and the sidebar behind it. That panel is the ONLY place an embed user can reach the dashboard slug, the per-dashboard time zone, the per-dashboard agent, the grid behaviour switches and the dashboard theme, so `false` withdraws all of them together. Omit or set to `true` to keep the panel (the default).","uniqueKey":"settings.oneOf.0.showDashboardSettings.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showDashboardSettings","typeLabel":"boolean | null"},"showGroupByCube":{"oneOf":[{"type":"boolean","description":"Whether the workbook data pane viewed with this session offers the \"Group by Cube\" / \"Group by Folder\" item in its more-actions menu. `false` hides the item AND pins the pane to the grouping it would have defaulted to — by folder when the view defines folders, by cube otherwise. The choice is remembered per browser, so pinning is what makes the pane look the same for every user of the session rather than freezing whatever each of them last picked. No content is withdrawn either way. Omit or set to `true` to leave the choice with the user (the default).","uniqueKey":"settings.oneOf.0.showGroupByCube.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the workbook data pane viewed with this session offers the \"Group by Cube\" / \"Group by Folder\" item in its more-actions menu. `false` hides the item AND pins the pane to the grouping it would have defaulted to — by folder when the view defines folders, by cube otherwise. The choice is remembered per browser, so pinning is what makes the pane look the same for every user of the session rather than freezing whatever each of them last picked. No content is withdrawn either way. Omit or set to `true` to leave the choice with the user (the default).","uniqueKey":"settings.oneOf.0.showGroupByCube.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showGroupByCube","typeLabel":"boolean | null"},"showMemberNames":{"oneOf":[{"type":"boolean","description":"Whether the workbook data pane viewed with this session may display raw member NAMES instead of their titles (the \"Show Member Names\" item in the pane's more-actions menu). Member names are the data model's own identifiers, so this is a schema-protection setting in the same family as the account-wide Show Generated SQL switch. `false` hides the menu item AND pins the pane to titles, so a user who already switched to names is returned to titles — hiding the control alone would leave them stuck on names with no way back. Omit or set to `true` to leave the choice with the user (the default).","uniqueKey":"settings.oneOf.0.showMemberNames.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the workbook data pane viewed with this session may display raw member NAMES instead of their titles (the \"Show Member Names\" item in the pane's more-actions menu). Member names are the data model's own identifiers, so this is a schema-protection setting in the same family as the account-wide Show Generated SQL switch. `false` hides the menu item AND pins the pane to titles, so a user who already switched to names is returned to titles — hiding the control alone would leave them stuck on names with no way back. Omit or set to `true` to leave the choice with the user (the default).","uniqueKey":"settings.oneOf.0.showMemberNames.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showMemberNames","typeLabel":"boolean | null"},"showWorkbookChat":{"oneOf":[{"type":"boolean","description":"Whether the Creator Mode workbook viewed with this session shows its AI entry points: the chat side panel and its toggle, the launchpad's \"Ask Cube Agent\" button and the \"Fix in chat\" action on a failed report. Omit to inherit the account-wide embed setting (shown by default); `false` hides them even if they are enabled account-wide, `true` shows them even if they are disabled account-wide. Hides entry points only — use `allowAi` to withhold AI from the session.","uniqueKey":"settings.oneOf.0.showWorkbookChat.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the Creator Mode workbook viewed with this session shows its AI entry points: the chat side panel and its toggle, the launchpad's \"Ask Cube Agent\" button and the \"Fix in chat\" action on a failed report. Omit to inherit the account-wide embed setting (shown by default); `false` hides them even if they are enabled account-wide, `true` shows them even if they are disabled account-wide. Hides entry points only — use `allowAi` to withhold AI from the session.","uniqueKey":"settings.oneOf.0.showWorkbookChat.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showWorkbookChat","typeLabel":"boolean | null"},"showWorkbookShare":{"oneOf":[{"type":"boolean","description":"Whether the Creator Mode workspace viewed with this session offers sharing: the workbook header's Share button and the Share action on a workbook, dashboard, exploration or folder row in the workspace list. Set to `false` for a deployment where each embed user should only ever see their own content. Omit or set to `true` to keep sharing available (the default). Hides the entry points only — it does not revoke access already granted, and it never widens what the session's own permissions allow.","uniqueKey":"settings.oneOf.0.showWorkbookShare.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the Creator Mode workspace viewed with this session offers sharing: the workbook header's Share button and the Share action on a workbook, dashboard, exploration or folder row in the workspace list. Set to `false` for a deployment where each embed user should only ever see their own content. Omit or set to `true` to keep sharing available (the default). Hides the entry points only — it does not revoke access already granted, and it never widens what the session's own permissions allow.","uniqueKey":"settings.oneOf.0.showWorkbookShare.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.showWorkbookShare","typeLabel":"boolean | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone the agent runs its queries in for every embed viewed with this session (e.g. `America/New_York`). Sits between the per-iframe `?timezone=` parameter and the account-wide default, and remains subject to the tenant time-zone policy — it is not a way around it. A bare UTC offset or an unknown name falls through to the account default rather than failing the session, because Cube would compute in UTC and report nothing.","uniqueKey":"settings.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone the agent runs its queries in for every embed viewed with this session (e.g. `America/New_York`). Sits between the per-iframe `?timezone=` parameter and the account-wide default, and remains subject to the tenant time-zone policy — it is not a way around it. A bare UTC offset or an unknown name falls through to the account default rather than failing the session, because Cube would compute in UTC and report nothing.","uniqueKey":"settings.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings.oneOf.0.timezone","typeLabel":"string | null"}},"uniqueKey":"settings.oneOf.0","typeLabel":"object"},{"type":"null","description":"Per-session overrides for embed behavior, stored in the signed embed token. Each documented key applies only to this session; omitted keys preserve their existing default behavior.","uniqueKey":"settings.oneOf.1","typeLabel":"null"}],"uniqueKey":"settings","typeLabel":"object | null"},"tenantGroupDefinitions":{"oneOf":[{"type":"array","items":{"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"tenantGroupDefinitions.oneOf.0.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"tenantGroupDefinitions.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tenantGroupDefinitions.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tenantGroupDefinitions.oneOf.0.items.[INDEX].description","typeLabel":"string | null"}},"required":["name"],"type":"object","uniqueKey":"tenantGroupDefinitions.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Idempotently create or update the per-embed-tenant groups referenced by `tenantGroups`, before they are assigned. Requires `creatorMode: true` and `embedTenantName`. Use this to declare a tenant’s groups in the same call that assigns them, so you do not need a separate admin request. Applies only to per-embed-tenant groups; global groups must be defined beforehand.","uniqueKey":"tenantGroupDefinitions.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Idempotently create or update the per-embed-tenant groups referenced by `tenantGroups`, before they are assigned. Requires `creatorMode: true` and `embedTenantName`. Use this to declare a tenant’s groups in the same call that assigns them, so you do not need a separate admin request. Applies only to per-embed-tenant groups; global groups must be defined beforehand.","uniqueKey":"tenantGroupDefinitions.oneOf.1","typeLabel":"null"}],"uniqueKey":"tenantGroupDefinitions","typeLabel":"object[] | null"},"tenantGroups":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tenantGroups.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Per-embed-tenant user groups — scoped to the single embed tenant named by `embedTenantName` — to assign this embed user to. Use `tenantGroups` for **content sharing and organization within one embed tenant**: for example, so a creator can share a workbook, dashboard, or folder with a group of that tenant’s users. These are the only groups shown in the embed tenant’s Creator Mode UI. Requires `creatorMode: true` and `embedTenantName`. Define the groups beforehand — or in the same request — via `tenantGroupDefinitions`. In the Cube security context they appear namespaced as `system:tenant:{embedTenantName}:group:{groupName}`, so a tenant group can never collide with — or be mistaken for — a global `groups` entry of the same name. For organization-wide data-model access policies, use `groups`.","uniqueKey":"tenantGroups.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Per-embed-tenant user groups — scoped to the single embed tenant named by `embedTenantName` — to assign this embed user to. Use `tenantGroups` for **content sharing and organization within one embed tenant**: for example, so a creator can share a workbook, dashboard, or folder with a group of that tenant’s users. These are the only groups shown in the embed tenant’s Creator Mode UI. Requires `creatorMode: true` and `embedTenantName`. Define the groups beforehand — or in the same request — via `tenantGroupDefinitions`. In the Cube security context they appear namespaced as `system:tenant:{embedTenantName}:group:{groupName}`, so a tenant group can never collide with — or be mistaken for — a global `groups` entry of the same name. For organization-wide data-model access policies, use `groups`.","uniqueKey":"tenantGroups.oneOf.1","typeLabel":"null"}],"uniqueKey":"tenantGroups","typeLabel":"string[] | null"},"userAttributeDefinitions":{"oneOf":[{"type":"array","items":{"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].name","typeLabel":"string"},"type":{"enum":["string","number","boolean","string_array","number_array"],"type":"string","isRequired":true,"uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"defaultValue":{"oneOf":[{"type":"string","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].defaultValue.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].defaultValue.oneOf.1","typeLabel":"null"}],"uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].defaultValue","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"displayName":{"oneOf":[{"type":"string","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].displayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].displayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX].displayName","typeLabel":"string | null"}},"required":["name","type"],"type":"object","uniqueKey":"userAttributeDefinitions.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"userAttributeDefinitions.oneOf.0","typeLabel":"object[]"},{"type":"null","uniqueKey":"userAttributeDefinitions.oneOf.1","typeLabel":"null"}],"uniqueKey":"userAttributeDefinitions","typeLabel":"object[] | null"},"userAttributes":{"oneOf":[{"type":"array","items":{"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"userAttributes.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"oneOf":[{"type":"string","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.3.items.[INDEX]","typeLabel":"string"},"uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.3","typeLabel":"string[]"},{"type":"array","items":{"type":"number","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.4.items.[INDEX]","typeLabel":"number"},"uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.4","typeLabel":"number[]"},{"type":"null","uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value.oneOf.5","typeLabel":"null"}],"uniqueKey":"userAttributes.oneOf.0.items.[INDEX].value","typeLabel":"string | number | boolean | string[] | number[] | null"}},"required":["name"],"type":"object","uniqueKey":"userAttributes.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"userAttributes.oneOf.0","typeLabel":"object[]"},{"type":"null","uniqueKey":"userAttributes.oneOf.1","typeLabel":"null"}],"uniqueKey":"userAttributes","typeLabel":"object[] | null"},"userProfile":{"oneOf":[{"type":"object","properties":{"displayName":{"oneOf":[{"type":"string","uniqueKey":"userProfile.oneOf.0.displayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"userProfile.oneOf.0.displayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"userProfile.oneOf.0.displayName","typeLabel":"string | null"},"picture":{"oneOf":[{"type":"string","format":"url","uniqueKey":"userProfile.oneOf.0.picture.oneOf.0","typeLabel":"string\u003curl>"},{"type":"null","uniqueKey":"userProfile.oneOf.0.picture.oneOf.1","typeLabel":"null"}],"uniqueKey":"userProfile.oneOf.0.picture","typeLabel":"string\u003curl> | null"}},"uniqueKey":"userProfile.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"userProfile.oneOf.1","typeLabel":"null"}],"uniqueKey":"userProfile","typeLabel":"object | null"}},"required":["deploymentId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"deploymentId":123,"branchName":"\u003cstring>","creatorMode":true,"email":"\u003cstring>","embedTenantName":"\u003cstring>","embedTenantProfile":{"displayName":"\u003cstring>"},"embedTheme":{"analyticsChat":{"backgroundColor":"\u003cstring>","chatInput":{"backgroundColor":"\u003cstring>","borderColor":"\u003cstring>"}},"chat":{"inputColor":"\u003cstring>"},"font":"\u003cstring>","primaryColor":"\u003cstring>"},"externalId":"\u003cstring>","groupDefinitions":[{"name":"\u003cstring>","description":"\u003cstring>"}],"groups":["\u003cstring>"],"internalId":"\u003cstring>","isEphemeral":true,"publicDashboardId":"\u003cstring>","roles":["\u003cstring>"],"securityContext":{},"settings":{"allowAi":true,"allowChatWorkspaceAuthoring":true,"locale":"\u003cstring>","showAiWidgets":true,"showDashboardChat":true,"showDashboardSettings":true,"showGroupByCube":true,"showMemberNames":true,"showWorkbookChat":true,"showWorkbookShare":true,"timezone":"\u003cstring>"},"tenantGroupDefinitions":[{"name":"\u003cstring>","description":"\u003cstring>"}],"tenantGroups":["\u003cstring>"],"userAttributeDefinitions":[{"name":"\u003cstring>","defaultValue":"\u003cstring>","description":"\u003cstring>","displayName":"\u003cstring>"}],"userAttributes":[{"name":"\u003cstring>","value":"\u003cstring>"}],"userProfile":{"displayName":"\u003cstring>","picture":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"GenerateSession","required":false,"exampleType":"generated"},"responses":{"462dd1e0-8e91-4055-82dc-dfa23699057c":{"content":{"application/json":{"schema":{"properties":{"sessionId":{"type":"string","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string"}},"required":["sessionId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"sessionId":"\u003cstring>"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"ad32ddae-364f-4eee-a122-d19f4a3cca1f":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Token authentication. Send `Authorization: Bearer \u003cYOUR_TOKEN>`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"de9ada8f-9b45-49c6-9466-8130619a1f8f":{"url":"https://{tenant}.cubecloud.dev","description":"Your tenant host. Replace the whole host if you use a custom domain.","variables":{"tenant":{"default":"your-tenant","description":"Your Cube tenant subdomain"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Token authentication. Send `Authorization: Bearer \u003cYOUR_TOKEN>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Token authentication. Send `Authorization: Bearer \u003cYOUR_TOKEN>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/api.yaml"},"subdomain":"cubed3","siteName":"Cube Documentation","title":"Generate an embed session - Cube Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-05T02:53:35.402Z","originalFileLocation":"api-reference/embed/generate-an-embed-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Cube Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate an embed session - Cube Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cube Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Embed\u0026amp;title=Generate+an+embed+session\u0026amp;theme=6d1e003873cec4de62649d7c\u0026amp;signature=7dd611bbaa775efadac1d4e994a062d978a652fe36eebcf2c282970a6658eec5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generate an embed session - Cube Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Embed\u0026amp;title=Generate+an+embed+session\u0026amp;theme=6d1e003873cec4de62649d7c\u0026amp;signature=7dd611bbaa775efadac1d4e994a062d978a652fe36eebcf2c282970a6658eec5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cube Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5339CF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/embed/generate-an-embed-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cube.dev/#organization\",\"name\":\"Cube Documentation\",\"url\":\"https://docs.cube.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/light.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=8bbf45ba64eac6116629064fac55aad7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cube.dev#website\",\"name\":\"Cube Documentation\",\"url\":\"https://docs.cube.dev\",\"publisher\":{\"@id\":\"https://docs.cube.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session#webpage\",\"url\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session\",\"name\":\"Generate an embed session\",\"dateModified\":\"2026-12-05T02:53:35.402Z\",\"isPartOf\":{\"@id\":\"https://docs.cube.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform Endpoints\",\"item\":\"https://docs.cube.dev/api-reference/deployments/get-deployments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Embed\",\"item\":\"https://docs.cube.dev/api-reference/embed/get-an-embeddable-dashboard\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Generate an embed session\",\"item\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session#apireference\",\"headline\":\"Generate an embed session\",\"name\":\"Generate an embed session\",\"url\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cube.dev/api-reference/embed/generate-an-embed-session#webpage\"},\"dateModified\":\"2026-12-05T02:53:35.402Z\",\"publisher\":{\"@id\":\"https://docs.cube.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cube.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cube Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cube Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/embed/generate-an-embed-session.md","siteName":"Cube Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/introduction"}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/admin/connect-to-data"}]},{"tab":"Embedding","pages":[{"title":"Embedding","href":"/embedding"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/data-modeling/cube"}]},{"tab":"Cube Core","pages":[{"title":"Cube Core","href":"/cube-core"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes"}]},{"tab":"API","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Core Data Endpoints","pages":[{"title":"JSON query","deprecated":null,"version":null,"openapi":"/api-reference/core-data.yaml post /v1/load","href":"/api-reference/data/json-query"},{"title":"SQL query","deprecated":null,"version":null,"openapi":"/api-reference/core-data.yaml post /v1/cubesql","href":"/api-reference/data/sql-query"},{"title":"Load Metadata","deprecated":null,"version":null,"openapi":"/api-reference/core-data.yaml get /v1/meta","href":"/api-reference/data/load-metadata"}]},{"group":"AI Endpoints","pages":[{"title":"Stream chat state","deprecated":null,"version":null,"openapi":"/api-reference/chat.yaml post /chat/stream-chat-state","href":"/api-reference/chat/stream-chat-state"},{"title":"Abort chat stream","deprecated":null,"version":null,"openapi":"/api-reference/chat.yaml post /chat/abort","href":"/api-reference/chat/abort-chat-stream"}]},{"group":"Platform Endpoints","pages":[{"group":"Deployments","pages":[{"title":"Get deployments","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments","href":"/api-reference/deployments/get-deployments"},{"title":"Get deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}","href":"/api-reference/deployments/get-deployment"},{"title":"Update a deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}","href":"/api-reference/deployments/update-a-deployment"},{"title":"Delete deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}","href":"/api-reference/deployments/delete-deployment"},{"title":"Latest build/compile status for a branch (production build or dev-mode)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/build-status","href":"/api-reference/deployments/latest-buildcompile-status-for-a-branch-production-build-or-dev-mode"},{"title":"Advance a deployment to a given onboarding step (e.g. after connecting a source)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/creation-step/advance","href":"/api-reference/deployments/advance-a-deployment-to-a-given-onboarding-step-eg-after-connecting-a-source"},{"title":"Reset a deployment to the first onboarding step (project)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/creation-step/reset","href":"/api-reference/deployments/reset-a-deployment-to-the-first-onboarding-step-project"},{"title":"Recent runtime logs (tail) for a deployment. With no `source`, reads both the production API / worker pods and the dev-mode worker, merged chronologically; scope with `?source=production` or `?source=dev`.","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/logs","href":"/api-reference/deployments/recent-runtime-logs-tail-for-a-deployment-with-no-`source`-reads-both-the-production-api-worker-pods-and-the-dev-mode-worker-merged-chronologically;-scope-with-`?source=production`-or-`?source=dev`"},{"title":"List the pods currently scheduled for a deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/pods","href":"/api-reference/deployments/list-the-pods-currently-scheduled-for-a-deployment"},{"title":"Get deployment settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/settings","href":"/api-reference/deployments/get-deployment-settings"},{"title":"Deployment token","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/token","href":"/api-reference/deployments/deployment-token"},{"title":"List available Cube versions","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/versions","href":"/api-reference/deployments/list-available-cube-versions"}]},{"group":"Deployment Creation","pages":[{"title":"Create a deployment with an empty starter project and trigger its first build","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments","href":"/api-reference/deployment-creation/create-a-deployment-with-an-empty-starter-project-and-trigger-its-first-build"}]},{"group":"Environments","pages":[{"title":"Get deployment environments","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/environments","href":"/api-reference/environments/get-deployment-environments"},{"title":"Get deployment environment tokens","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/environments/{environmentId}/tokens","href":"/api-reference/environments/get-deployment-environment-tokens"},{"title":"Create deployment environment token","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/environments/{environmentId}/tokens","href":"/api-reference/environments/create-deployment-environment-token"},{"title":"Create deployment environment token for meta sync","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/environments/{environmentId}/tokens-for-meta-sync","href":"/api-reference/environments/create-deployment-environment-token-for-meta-sync"}]},{"group":"Env Variables","pages":[{"title":"List environment variables, including the database connection settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/env-vars","href":"/api-reference/env-variables/list-environment-variables-including-the-database-connection-settings"},{"title":"Set environment variables, including connecting or changing a database","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/env-vars","href":"/api-reference/env-variables/set-environment-variables-including-connecting-or-changing-a-database"}]},{"group":"Regions","pages":[{"title":"List regions","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/regions","href":"/api-reference/regions/list-regions"}]},{"group":"Data Model","pages":[{"title":"List a deployment's branches","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/branches","href":"/api-reference/data-model/list-a-deployments-branches"},{"title":"Create a branch (optionally entering dev mode on it)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/branches","href":"/api-reference/data-model/create-a-branch-optionally-entering-dev-mode-on-it"},{"title":"Delete a branch","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /build/api/v1/deployments/{deploymentId}/branches","href":"/api-reference/data-model/delete-a-branch"},{"title":"Enable or disable a branch's staging environment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /build/api/v1/deployments/{deploymentId}/branches/staging-environment","href":"/api-reference/data-model/enable-or-disable-a-branchs-staging-environment"},{"title":"Commit (and push) the active branch's pending changes","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/commit","href":"/api-reference/data-model/commit-and-push-the-active-branchs-pending-changes"},{"title":"List the data-model source files for a deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/files","href":"/api-reference/data-model/list-the-data-model-source-files-for-a-deployment"},{"title":"Create or overwrite data-model source files","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /build/api/v1/deployments/{deploymentId}/data-model/files","href":"/api-reference/data-model/create-or-overwrite-data-model-source-files"},{"title":"Delete data-model source files","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /build/api/v1/deployments/{deploymentId}/data-model/files","href":"/api-reference/data-model/delete-data-model-source-files"},{"title":"Rename data-model source files","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/data-model/files/rename","href":"/api-reference/data-model/rename-data-model-source-files"},{"title":"Compile a deployment's data model and report compilation errors","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/validate","href":"/api-reference/data-model/compile-a-deployments-data-model-and-report-compilation-errors"},{"title":"Enter dev mode (switch to a branch)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/dev-mode","href":"/api-reference/data-model/enter-dev-mode-switch-to-a-branch"},{"title":"Exit dev mode","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /build/api/v1/deployments/{deploymentId}/dev-mode","href":"/api-reference/data-model/exit-dev-mode"},{"title":"Merge a branch into its parent branch (git-flow merge)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/merge","href":"/api-reference/data-model/merge-a-branch-into-its-parent-branch-git-flow-merge"},{"title":"Merge a branch straight into the deploy (default) branch","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/merge-to-default","href":"/api-reference/data-model/merge-a-branch-straight-into-the-deploy-default-branch"},{"title":"Pull the latest for a branch from its remote and rebuild if changed","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/pull","href":"/api-reference/data-model/pull-the-latest-for-a-branch-from-its-remote-and-rebuild-if-changed"}]},{"group":"Data Model Uploads","pages":[{"title":"Content hashes of the current data-model files (for upload diffing)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/file-hashes","href":"/api-reference/data-model-uploads/content-hashes-of-the-current-data-model-files-for-upload-diffing"},{"title":"Upload a single file into an open transaction","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/data-model/upload/file","href":"/api-reference/data-model-uploads/upload-a-single-file-into-an-open-transaction"},{"title":"Finish the upload transaction (prune removed files) and trigger a build","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/data-model/upload/finish","href":"/api-reference/data-model-uploads/finish-the-upload-transaction-prune-removed-files-and-trigger-a-build"},{"title":"Start a data-model upload transaction","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/data-model/upload/start","href":"/api-reference/data-model-uploads/start-a-data-model-upload-transaction"}]},{"group":"GitHub","pages":[{"title":"List the user's GitHub App installations (orgs/accounts)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/github/installations","href":"/api-reference/github/list-the-users-github-app-installations-orgsaccounts"},{"title":"List repositories accessible to a GitHub App installation","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/github/installations/{installationId}/repositories","href":"/api-reference/github/list-repositories-accessible-to-a-github-app-installation"},{"title":"List branches of a repository","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/github/repositories/{owner}/{repo}/branches","href":"/api-reference/github/list-branches-of-a-repository"},{"title":"Whether GitHub is linked, plus the link/install URLs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/github/status","href":"/api-reference/github/whether-github-is-linked-plus-the-linkinstall-urls"}]},{"group":"GitHub Connection","pages":[{"title":"Connect a deployment to a GitHub repository and trigger a build","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /build/api/v1/deployments/{deploymentId}/github/connect","href":"/api-reference/github-connection/connect-a-deployment-to-a-github-repository-and-trigger-a-build"}]},{"group":"dbt Sync","pages":[{"title":"List dbt syncs for a deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dbt-sync","href":"/api-reference/dbt-sync/list-dbt-syncs-for-a-deployment"},{"title":"Start a dbt sync for a deployment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/dbt-sync","href":"/api-reference/dbt-sync/start-a-dbt-sync-for-a-deployment"},{"title":"Get the status of a dbt sync","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}","href":"/api-reference/dbt-sync/get-the-status-of-a-dbt-sync"},{"title":"Cancel a running dbt sync","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}","href":"/api-reference/dbt-sync/cancel-a-running-dbt-sync"},{"title":"Get the files generated by a dbt sync that did not commit them","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}/generated-files","href":"/api-reference/dbt-sync/get-the-files-generated-by-a-dbt-sync-that-did-not-commit-them"},{"title":"Get the log of a dbt sync","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}/logs","href":"/api-reference/dbt-sync/get-the-log-of-a-dbt-sync"},{"title":"Get the result of a completed dbt sync","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}/result","href":"/api-reference/dbt-sync/get-the-result-of-a-completed-dbt-sync"}]},{"group":"Databricks Metric View Publication","pages":[{"title":"Start a Databricks Metric View publication preview","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/databricks-metric-view-previews","href":"/api-reference/databricks-metric-view-publication/start-a-databricks-metric-view-publication-preview"},{"title":"Get Databricks Metric View preview status","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/databricks-metric-view-previews/{previewId}","href":"/api-reference/databricks-metric-view-publication/get-databricks-metric-view-preview-status"},{"title":"Cancel a Databricks Metric View preview","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/databricks-metric-view-previews/{previewId}","href":"/api-reference/databricks-metric-view-publication/cancel-a-databricks-metric-view-preview"},{"title":"Get a completed Databricks Metric View preview result","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/databricks-metric-view-previews/{previewId}/result","href":"/api-reference/databricks-metric-view-publication/get-a-completed-databricks-metric-view-preview-result"}]},{"group":"Databricks Metric View Integration","pages":[{"title":"Get Databricks Metric View publication settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}","href":"/api-reference/databricks-metric-view-integration/get-databricks-metric-view-publication-settings"},{"title":"Create or update Databricks Metric View publication settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}","href":"/api-reference/databricks-metric-view-integration/create-or-update-databricks-metric-view-publication-settings"},{"title":"List Databricks Metric View publication runs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs","href":"/api-reference/databricks-metric-view-integration/list-databricks-metric-view-publication-runs"},{"title":"Start a Databricks Metric View publication run","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs","href":"/api-reference/databricks-metric-view-integration/start-a-databricks-metric-view-publication-run"},{"title":"Get a Databricks Metric View publication run","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs/{runId}","href":"/api-reference/databricks-metric-view-integration/get-a-databricks-metric-view-publication-run"},{"title":"Cancel a Databricks Metric View publication run","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/databricks-metric-view-integrations/{dataSourceName}/syncs/{runId}","href":"/api-reference/databricks-metric-view-integration/cancel-a-databricks-metric-view-publication-run"}]},{"group":"Snowflake Semantic View Sync","pages":[{"title":"List Snowflake Semantic View pull runs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-pulls","href":"/api-reference/snowflake-semantic-view-sync/list-snowflake-semantic-view-pull-runs"},{"title":"Pull Snowflake Semantic Views into Cube","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/snowflake-semantic-view-pulls","href":"/api-reference/snowflake-semantic-view-sync/pull-snowflake-semantic-views-into-cube"},{"title":"Get Snowflake Semantic View pull status","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-pulls/{syncJobId}","href":"/api-reference/snowflake-semantic-view-sync/get-snowflake-semantic-view-pull-status"},{"title":"Cancel a Snowflake Semantic View pull","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/snowflake-semantic-view-pulls/{syncJobId}","href":"/api-reference/snowflake-semantic-view-sync/cancel-a-snowflake-semantic-view-pull"},{"title":"Get the result of a completed Snowflake Semantic View pull","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-pulls/{syncJobId}/result","href":"/api-reference/snowflake-semantic-view-sync/get-the-result-of-a-completed-snowflake-semantic-view-pull"},{"title":"List Snowflake Semantic View push runs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-syncs","href":"/api-reference/snowflake-semantic-view-sync/list-snowflake-semantic-view-push-runs"},{"title":"Push Cube views to Snowflake Semantic Views","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/snowflake-semantic-view-syncs","href":"/api-reference/snowflake-semantic-view-sync/push-cube-views-to-snowflake-semantic-views"},{"title":"Get Snowflake Semantic View push status","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-syncs/{syncJobId}","href":"/api-reference/snowflake-semantic-view-sync/get-snowflake-semantic-view-push-status"},{"title":"Cancel a Snowflake Semantic View push","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/snowflake-semantic-view-syncs/{syncJobId}","href":"/api-reference/snowflake-semantic-view-sync/cancel-a-snowflake-semantic-view-push"},{"title":"Get the result of a completed Snowflake Semantic View push","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/snowflake-semantic-view-syncs/{syncJobId}/result","href":"/api-reference/snowflake-semantic-view-sync/get-the-result-of-a-completed-snowflake-semantic-view-push"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/folders","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/folders","href":"/api-reference/folders/create-a-folder"},{"title":"Update a folder","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/folders/{folderId}","href":"/api-reference/folders/update-a-folder"},{"title":"Delete a folder","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/folders/{folderId}","href":"/api-reference/folders/delete-a-folder"},{"title":"List folder ancestors","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/folders/{folderId}/ancestors","href":"/api-reference/folders/list-folder-ancestors"}]},{"group":"Reports","pages":[{"title":"List reports","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/reports","href":"/api-reference/reports/list-reports"},{"title":"Create a report","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/reports","href":"/api-reference/reports/create-a-report"},{"title":"Create or update a report by publicId","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/reports/by-public-id/{publicId}","href":"/api-reference/reports/create-or-update-a-report-by-publicid"},{"title":"Get report","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/reports/{reportId}","href":"/api-reference/reports/get-report"},{"title":"Update a report","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/reports/{reportId}","href":"/api-reference/reports/update-a-report"},{"title":"Delete report","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/reports/{reportId}","href":"/api-reference/reports/delete-report"},{"title":"Connect a report to the calling spreadsheet","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/reports/{reportId}/connect-workbook","href":"/api-reference/reports/connect-a-report-to-the-calling-spreadsheet"},{"title":"Disconnect a report from one spot in a spreadsheet","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/reports/{reportId}/connect-workbook","href":"/api-reference/reports/disconnect-a-report-from-one-spot-in-a-spreadsheet"},{"title":"Read a report definition as editable JSON text","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/reports/{reportId}/file","href":"/api-reference/reports/read-a-report-definition-as-editable-json-text"},{"title":"Replace text in a report definition","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/deployments/{deploymentId}/reports/{reportId}/file","href":"/api-reference/reports/replace-text-in-a-report-definition"},{"title":"Refresh report","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/reports/{reportId}/refresh","href":"/api-reference/reports/refresh-report"}]},{"group":"External Documents","pages":[{"title":"Prove the caller has an external spreadsheet open","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/external-documents/{externalWorkbookId}/placement-proof","href":"/api-reference/external-documents/prove-the-caller-has-an-external-spreadsheet-open"},{"title":"List the Cube placements in an external spreadsheet","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/external-documents/{externalWorkbookId}/placements","href":"/api-reference/external-documents/list-the-cube-placements-in-an-external-spreadsheet"}]},{"group":"Workbooks","pages":[{"title":"Get workbooks","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks","href":"/api-reference/workbooks/get-workbooks"},{"title":"Create workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks","href":"/api-reference/workbooks/create-workbook"},{"title":"Create or update a workbook by slug","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/workbooks/by-slug/{slug}","href":"/api-reference/workbooks/create-or-update-a-workbook-by-slug"},{"title":"Get workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}","href":"/api-reference/workbooks/get-workbook"},{"title":"Update a workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/workbooks/{workbookId}","href":"/api-reference/workbooks/update-a-workbook"},{"title":"Delete a workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/workbooks/{workbookId}","href":"/api-reference/workbooks/delete-a-workbook"},{"title":"Create a workbook calculated field","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/calculated-fields","href":"/api-reference/workbooks/create-a-workbook-calculated-field"},{"title":"Update a workbook calculated field","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/calculated-fields/{fieldId}","href":"/api-reference/workbooks/update-a-workbook-calculated-field"},{"title":"Delete a workbook calculated field","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/calculated-fields/{fieldId}","href":"/api-reference/workbooks/delete-a-workbook-calculated-field"},{"title":"Update workbook dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/dashboard","href":"/api-reference/workbooks/update-workbook-dashboard"},{"title":"Update published dashboard AI widget thread","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/dashboard/ai-widget-thread","href":"/api-reference/workbooks/update-published-dashboard-ai-widget-thread"},{"title":"Read the dashboard draft as editable JSON text","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/dashboard/file","href":"/api-reference/workbooks/read-the-dashboard-draft-as-editable-json-text"},{"title":"Replace text in the dashboard draft","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/dashboard/file","href":"/api-reference/workbooks/replace-text-in-the-dashboard-draft"},{"title":"Clone a workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/duplicate","href":"/api-reference/workbooks/clone-a-workbook"},{"title":"Suggest a workbook name","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/name-suggestion","href":"/api-reference/workbooks/suggest-a-workbook-name"},{"title":"List workbook parameters","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/parameters","href":"/api-reference/workbooks/list-workbook-parameters"},{"title":"Create a workbook parameter","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/parameters","href":"/api-reference/workbooks/create-a-workbook-parameter"},{"title":"Update a workbook parameter","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/parameters/{parameterId}","href":"/api-reference/workbooks/update-a-workbook-parameter"},{"title":"Delete a workbook parameter","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/parameters/{parameterId}","href":"/api-reference/workbooks/delete-a-workbook-parameter"},{"title":"Publish a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/publish","href":"/api-reference/workbooks/publish-a-dashboard"}]},{"group":"Workbook Promotions","pages":[{"title":"Get workbook promotion provenance","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotion","href":"/api-reference/workbook-promotions/get-workbook-promotion-provenance"},{"title":"List workbook promotion destinations","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotion-links","href":"/api-reference/workbook-promotions/list-workbook-promotion-destinations"},{"title":"Preview a workbook promotion","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotion-previews","href":"/api-reference/workbook-promotions/preview-a-workbook-promotion"},{"title":"List workbook promotion history","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotions","href":"/api-reference/workbook-promotions/list-workbook-promotion-history"},{"title":"Promote and publish a workbook","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotions","href":"/api-reference/workbook-promotions/promote-and-publish-a-workbook"}]},{"group":"Dashboard Exports","pages":[{"title":"Export a dashboard as PNG or PDF","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/dashboard-exports","href":"/api-reference/dashboard-exports/export-a-dashboard-as-png-or-pdf"},{"title":"Get the status of a dashboard export","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dashboard-exports/{jobId}","href":"/api-reference/dashboard-exports/get-the-status-of-a-dashboard-export"},{"title":"Download a completed dashboard export","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/dashboard-exports/{jobId}/download","href":"/api-reference/dashboard-exports/download-a-completed-dashboard-export"}]},{"group":"Notifications","pages":[{"title":"List scheduled notifications","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/notifications","href":"/api-reference/notifications/list-scheduled-notifications"},{"title":"Create a scheduled notification","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/notifications","href":"/api-reference/notifications/create-a-scheduled-notification"},{"title":"Get a scheduled notification","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/notifications/{id}","href":"/api-reference/notifications/get-a-scheduled-notification"},{"title":"Update a scheduled notification","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/notifications/{id}","href":"/api-reference/notifications/update-a-scheduled-notification"},{"title":"Delete a scheduled notification","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/notifications/{id}","href":"/api-reference/notifications/delete-a-scheduled-notification"},{"title":"List notification recipients","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/notifications/{id}/recipients","href":"/api-reference/notifications/list-notification-recipients"},{"title":"Add notification recipients","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/notifications/{id}/recipients","href":"/api-reference/notifications/add-notification-recipients"},{"title":"Remove notification recipients","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/notifications/{id}/recipients","href":"/api-reference/notifications/remove-notification-recipients"}]},{"group":"Scheduled Tasks","pages":[{"title":"List scheduled tasks","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/scheduled-tasks","href":"/api-reference/scheduled-tasks/list-scheduled-tasks"},{"title":"Create a scheduled task","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/scheduled-tasks","href":"/api-reference/scheduled-tasks/create-a-scheduled-task"},{"title":"Get a scheduled task","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/scheduled-tasks/{taskId}","href":"/api-reference/scheduled-tasks/get-a-scheduled-task"},{"title":"Update a scheduled task","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/scheduled-tasks/{taskId}","href":"/api-reference/scheduled-tasks/update-a-scheduled-task"},{"title":"Delete a scheduled task","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/scheduled-tasks/{taskId}","href":"/api-reference/scheduled-tasks/delete-a-scheduled-task"},{"title":"Run a scheduled task now","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/scheduled-tasks/{taskId}/run","href":"/api-reference/scheduled-tasks/run-a-scheduled-task-now"},{"title":"List a scheduled task's runs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/scheduled-tasks/{taskId}/runs","href":"/api-reference/scheduled-tasks/list-a-scheduled-tasks-runs"}]},{"group":"Workspace","pages":[{"title":"List shared workspace items","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/shared-workspace","href":"/api-reference/workspace/list-shared-workspace-items"},{"title":"List workspace items","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workspace","href":"/api-reference/workspace/list-workspace-items"},{"title":"Delete workspace items in bulk","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workspace/bulk-delete","href":"/api-reference/workspace/delete-workspace-items-in-bulk"},{"title":"Move workspace items in bulk","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workspace/bulk-move","href":"/api-reference/workspace/move-workspace-items-in-bulk"},{"title":"Move a workspace item","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workspace/move","href":"/api-reference/workspace/move-a-workspace-item"}]},{"group":"Agents","pages":[{"title":"Get agent defaults","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/agent-defaults","href":"/api-reference/agents/get-agent-defaults"},{"title":"Get agent suggestions","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/agent-suggestions","href":"/api-reference/agents/get-agent-suggestions"}]},{"group":"Users","pages":[{"title":"Update my settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/users/me/settings","href":"/api-reference/users/update-my-settings"}]},{"group":"Users Admin","pages":[{"title":"Create user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/users","href":"/api-reference/users-admin/create-user"},{"title":"Apply an action to many users","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/users/bulk","href":"/api-reference/users-admin/apply-an-action-to-many-users"},{"title":"Update user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/users/{id}","href":"/api-reference/users-admin/update-user"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/users/{id}","href":"/api-reference/users-admin/delete-user"},{"title":"List a user's roles","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/users/{id}/roles","href":"/api-reference/users-admin/list-a-users-roles"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Get API key","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/api-keys/{id}","href":"/api-reference/api-keys/get-api-key"},{"title":"Delete API key","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/api-keys/{id}","href":"/api-reference/api-keys/delete-api-key"}]},{"group":"Roles","pages":[{"title":"List custom roles","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/roles","href":"/api-reference/roles/list-custom-roles"},{"title":"Create a custom role","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/roles","href":"/api-reference/roles/create-a-custom-role"},{"title":"Get a custom role","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/roles/{roleId}","href":"/api-reference/roles/get-a-custom-role"},{"title":"Update a custom role","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/roles/{roleId}","href":"/api-reference/roles/update-a-custom-role"},{"title":"Delete a custom role","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/roles/{roleId}","href":"/api-reference/roles/delete-a-custom-role"},{"title":"List the users holding a role","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/roles/{roleId}/users","href":"/api-reference/roles/list-the-users-holding-a-role"},{"title":"Assign a role to a user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/roles/{roleId}/users/{userId}","href":"/api-reference/roles/assign-a-role-to-a-user"},{"title":"Remove a role from a user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/roles/{roleId}/users/{userId}","href":"/api-reference/roles/remove-a-role-from-a-user"}]},{"group":"User Attributes","pages":[{"title":"Get user attributes","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/user-attributes","href":"/api-reference/user-attributes/get-user-attributes"},{"title":"Create user attribute","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/user-attributes","href":"/api-reference/user-attributes/create-user-attribute"},{"title":"Update user attribute","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/user-attributes/{id}","href":"/api-reference/user-attributes/update-user-attribute"}]},{"group":"User Attribute Values","pages":[{"title":"Upsert user attribute value","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/user-attribute-values","href":"/api-reference/user-attribute-values/upsert-user-attribute-value"},{"title":"Get user attribute values","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/user-attribute-values/{userId}","href":"/api-reference/user-attribute-values/get-user-attribute-values"}]},{"group":"Tenant Settings","pages":[{"title":"Get tenant settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/tenant/settings","href":"/api-reference/tenant-settings/get-tenant-settings"},{"title":"Update tenant settings","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/tenant/settings","href":"/api-reference/tenant-settings/update-tenant-settings"}]},{"group":"OAuth Integrations","pages":[{"title":"List OAuth integrations","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/oauth-integrations","href":"/api-reference/oauth-integrations/list-oauth-integrations"},{"title":"Create OAuth integration","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/oauth-integrations","href":"/api-reference/oauth-integrations/create-oauth-integration"},{"title":"Get OAuth integration","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/oauth-integrations/{id}","href":"/api-reference/oauth-integrations/get-oauth-integration"},{"title":"Update OAuth integration","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/oauth-integrations/{id}","href":"/api-reference/oauth-integrations/update-oauth-integration"},{"title":"Delete OAuth integration","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/oauth-integrations/{id}","href":"/api-reference/oauth-integrations/delete-oauth-integration"}]},{"group":"User OAuth Tokens","pages":[{"title":"List user OAuth tokens","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/user-oauth-tokens","href":"/api-reference/user-oauth-tokens/list-user-oauth-tokens"},{"title":"Get user OAuth token","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/user-oauth-tokens/{integrationId}","href":"/api-reference/user-oauth-tokens/get-user-oauth-token"},{"title":"Revoke user OAuth token","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/user-oauth-tokens/{integrationId}","href":"/api-reference/user-oauth-tokens/revoke-user-oauth-token"},{"title":"Initiate OAuth flow","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/user-oauth-tokens/{integrationId}/initiate","href":"/api-reference/user-oauth-tokens/initiate-oauth-flow"}]},{"group":"OIDC Token Configs","pages":[{"title":"List OIDC token configs","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/oidc-token-configs","href":"/api-reference/oidc-token-configs/list-oidc-token-configs"},{"title":"Create OIDC token config","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/oidc-token-configs","href":"/api-reference/oidc-token-configs/create-oidc-token-config"},{"title":"Get OIDC token config","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/oidc-token-configs/{id}","href":"/api-reference/oidc-token-configs/get-oidc-token-config"},{"title":"Update OIDC token config","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/oidc-token-configs/{id}","href":"/api-reference/oidc-token-configs/update-oidc-token-config"},{"title":"Delete OIDC token config","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/oidc-token-configs/{id}","href":"/api-reference/oidc-token-configs/delete-oidc-token-config"}]},{"group":"App Theme","pages":[{"title":"Get app config","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/app-config","href":"/api-reference/app-theme/get-app-config"}]},{"group":"Embed","pages":[{"title":"Get an embeddable dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed/dashboard/{publicId}","href":"/api-reference/embed/get-an-embeddable-dashboard"},{"title":"Enable or disable signed embedding for a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/embed/dashboard/{publicId}","href":"/api-reference/embed/enable-or-disable-signed-embedding-for-a-dashboard"},{"title":"List comment threads on an embeddable dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed/dashboard/{publicId}/comments","href":"/api-reference/embed/list-comment-threads-on-an-embeddable-dashboard"},{"title":"Post a comment on an embeddable dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/dashboard/{publicId}/comments","href":"/api-reference/embed/post-a-comment-on-an-embeddable-dashboard"},{"title":"List embed users mentionable in a dashboard comment","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed/dashboard/{publicId}/comments/mentionable-users","href":"/api-reference/embed/list-embed-users-mentionable-in-a-dashboard-comment"},{"title":"Edit a comment on an embeddable dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/embed/dashboard/{publicId}/comments/{commentId}","href":"/api-reference/embed/edit-a-comment-on-an-embeddable-dashboard"},{"title":"Delete a comment on an embeddable dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/embed/dashboard/{publicId}/comments/{commentId}","href":"/api-reference/embed/delete-a-comment-on-an-embeddable-dashboard"},{"title":"Resolve or re-open a comment thread","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/dashboard/{publicId}/comments/{commentId}/resolve","href":"/api-reference/embed/resolve-or-re-open-a-comment-thread"},{"title":"Run a python report over dashboard-filtered SQL","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/dashboard/{publicId}/python-run","href":"/api-reference/embed/run-a-python-report-over-dashboard-filtered-sql"},{"title":"Find an embeddable dashboard by slug","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed/deployments/{deploymentId}/dashboards/by-slug/{slug}","href":"/api-reference/embed/find-an-embeddable-dashboard-by-slug"},{"title":"Generate an embed session","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/generate-session","href":"/api-reference/embed/generate-an-embed-session"},{"title":"Revoke an embed session","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/session/revoke","href":"/api-reference/embed/revoke-an-embed-session"},{"title":"Exchange a session for an embed token","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed/session/token","href":"/api-reference/embed/exchange-a-session-for-an-embed-token"}]},{"group":"Embed Tenants","pages":[{"title":"List embed tenants","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed-tenants","href":"/api-reference/embed-tenants/list-embed-tenants"},{"title":"Delete embed tenant","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/embed-tenants/{embedTenantName}","href":"/api-reference/embed-tenants/delete-embed-tenant"},{"title":"List embed groups","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed-tenants/{embedTenantName}/groups","href":"/api-reference/embed-tenants/list-embed-groups"},{"title":"Create an embed group","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed-tenants/{embedTenantName}/groups","href":"/api-reference/embed-tenants/create-an-embed-group"},{"title":"Get an embed group","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed-tenants/{embedTenantName}/groups/{id}","href":"/api-reference/embed-tenants/get-an-embed-group"},{"title":"Update an embed group","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml patch /api/v1/embed-tenants/{embedTenantName}/groups/{id}","href":"/api-reference/embed-tenants/update-an-embed-group"},{"title":"Delete an embed group","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/embed-tenants/{embedTenantName}/groups/{id}","href":"/api-reference/embed-tenants/delete-an-embed-group"},{"title":"List embed group members","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed-tenants/{embedTenantName}/groups/{id}/users","href":"/api-reference/embed-tenants/list-embed-group-members"},{"title":"Add embed group members","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed-tenants/{embedTenantName}/groups/{id}/users","href":"/api-reference/embed-tenants/add-embed-group-members"},{"title":"Remove embed group members","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/embed-tenants/{embedTenantName}/groups/{id}/users","href":"/api-reference/embed-tenants/remove-embed-group-members"},{"title":"Provision an embed user","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed-tenants/{embedTenantName}/user","href":"/api-reference/embed-tenants/provision-an-embed-user"},{"title":"List embed users","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/embed-tenants/{embedTenantName}/users","href":"/api-reference/embed-tenants/list-embed-users"},{"title":"Provision embed users in bulk","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/embed-tenants/{embedTenantName}/users","href":"/api-reference/embed-tenants/provision-embed-users-in-bulk"}]},{"group":"Dashboard Embed Access","pages":[{"title":"List workbooks accessible to an embed tenant","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/embed-tenants/{embedTenantName}/workbooks","href":"/api-reference/dashboard-embed-access/list-workbooks-accessible-to-an-embed-tenant"},{"title":"List a dashboard's embed access","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/embed-access","href":"/api-reference/dashboard-embed-access/list-a-dashboards-embed-access"},{"title":"Update a dashboard's embed access","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/embed-access","href":"/api-reference/dashboard-embed-access/update-a-dashboards-embed-access"}]},{"group":"Usage Analytics","pages":[{"title":"Issue a Cube API token for Usage Analytics","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/usage-analytics/token","href":"/api-reference/usage-analytics/issue-a-cube-api-token-for-usage-analytics"}]},{"group":"OpenAPI Spec","pages":[{"title":"Get the OpenAPI specification","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/spec","href":"/api-reference/openapi-spec/get-the-openapi-specification"}]},{"group":"Audit Log","pages":[{"title":"Export the audit log","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/audit-logs/export","href":"/api-reference/audit-log/export-the-audit-log"}]},{"group":"Chat History","pages":[{"title":"List chat threads","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/chat-history/threads","href":"/api-reference/chat-history/list-chat-threads"},{"title":"Get a chat thread","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/chat-history/threads/{chatId}","href":"/api-reference/chat-history/get-a-chat-thread"}]},{"group":"Data Model History","pages":[{"title":"Show what a data-model branch changed against its base (git diff of branches)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/branch-diff","href":"/api-reference/data-model-history/show-what-a-data-model-branch-changed-against-its-base-git-diff-of-branches"},{"title":"Show what data-model git commits on a branch changed (git diff of commits)","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/commit-diff","href":"/api-reference/data-model-history/show-what-data-model-git-commits-on-a-branch-changed-git-diff-of-commits"},{"title":"List a branch's data-model git commits (the git log), newest first","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /build/api/v1/deployments/{deploymentId}/data-model/commits","href":"/api-reference/data-model-history/list-a-branchs-data-model-git-commits-the-git-log-newest-first"}]},{"group":"Ossie Conversion","pages":[{"title":"Start an Apache Ossie conversion","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/ossie-conversions","href":"/api-reference/ossie-conversion/start-an-apache-ossie-conversion"},{"title":"Get an Apache Ossie conversion status","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/ossie-conversions/{conversionId}","href":"/api-reference/ossie-conversion/get-an-apache-ossie-conversion-status"},{"title":"Cancel an Apache Ossie conversion","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/ossie-conversions/{conversionId}","href":"/api-reference/ossie-conversion/cancel-an-apache-ossie-conversion"},{"title":"Get the files of an Apache Ossie conversion","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/ossie-conversions/{conversionId}/files","href":"/api-reference/ossie-conversion/get-the-files-of-an-apache-ossie-conversion"},{"title":"Get an Apache Ossie conversion result","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/ossie-conversions/{conversionId}/result","href":"/api-reference/ossie-conversion/get-an-apache-ossie-conversion-result"}]},{"group":"Query History","pages":[{"title":"List Query History requests","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/query-history/requests","href":"/api-reference/query-history/list-query-history-requests"},{"title":"Get a Query History request","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/query-history/requests/{id}","href":"/api-reference/query-history/get-a-query-history-request"}]},{"group":"Report Deliveries","pages":[{"title":"List report deliveries","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/report-deliveries","href":"/api-reference/report-deliveries/list-report-deliveries"},{"title":"Create a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/report-deliveries","href":"/api-reference/report-deliveries/create-a-report-delivery"},{"title":"Get a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/report-deliveries/{id}","href":"/api-reference/report-deliveries/get-a-report-delivery"},{"title":"Update a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml put /api/v1/deployments/{deploymentId}/report-deliveries/{id}","href":"/api-reference/report-deliveries/update-a-report-delivery"},{"title":"Delete a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/report-deliveries/{id}","href":"/api-reference/report-deliveries/delete-a-report-delivery"},{"title":"Pause a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/report-deliveries/{id}/pause","href":"/api-reference/report-deliveries/pause-a-report-delivery"},{"title":"Resume a paused report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/report-deliveries/{id}/resume","href":"/api-reference/report-deliveries/resume-a-paused-report-delivery"},{"title":"List runs of a report delivery","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/report-deliveries/{id}/runs","href":"/api-reference/report-deliveries/list-runs-of-a-report-delivery"},{"title":"Run a report delivery now","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml post /api/v1/deployments/{deploymentId}/report-deliveries/{id}/runs","href":"/api-reference/report-deliveries/run-a-report-delivery-now"},{"title":"Get a report delivery run","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml get /api/v1/deployments/{deploymentId}/report-deliveries/{id}/runs/{runId}","href":"/api-reference/report-deliveries/get-a-report-delivery-run"}]},{"group":"Workbook Dashboards","pages":[{"title":"Unpublish a workbook's dashboard","deprecated":null,"version":null,"openapi":"/api-reference/api.yaml delete /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/dashboard","href":"/api-reference/workbook-dashboards/unpublish-a-workbooks-dashboard"}]},{"group":"Users (SCIM)","pages":[{"title":"List users","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml get /scim/v2/Users","href":"/api-reference/scim-users/list-users"},{"title":"Create user","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml post /scim/v2/Users","href":"/api-reference/scim-users/create-user"},{"title":"Get user","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml get /scim/v2/Users/{id}","href":"/api-reference/scim-users/get-user"},{"title":"Replace user","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml put /scim/v2/Users/{id}","href":"/api-reference/scim-users/replace-user"},{"title":"Patch user","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml patch /scim/v2/Users/{id}","href":"/api-reference/scim-users/patch-user"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml delete /scim/v2/Users/{id}","href":"/api-reference/scim-users/delete-user"}]},{"group":"Groups (SCIM)","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml get /scim/v2/Groups","href":"/api-reference/scim-groups/list-groups"},{"title":"Create group","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml post /scim/v2/Groups","href":"/api-reference/scim-groups/create-group"},{"title":"Get group","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml get /scim/v2/Groups/{id}","href":"/api-reference/scim-groups/get-group"},{"title":"Replace group","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml put /scim/v2/Groups/{id}","href":"/api-reference/scim-groups/replace-group"},{"title":"Patch group","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml patch /scim/v2/Groups/{id}","href":"/api-reference/scim-groups/patch-group"},{"title":"Delete group","deprecated":null,"version":null,"openapi":"/api-reference/scim.yaml delete /scim/v2/Groups/{id}","href":"/api-reference/scim-groups/delete-group"}]}]}]}]},"basePath":"","title":"Generate an embed session - Cube Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}