Embed content from a tenant organization
This is a premium feature. To enable it for your Sigma organization, contact your Sigma Account Executive.
When you use Sigma Tenants, you can embed documents deployed to a tenant organization and sign the JSON web token (JWT) using embed credentials from either the parent organization or the tenant organization.
If you want to embed a document created in a tenant organization, you must sign the JWT using embed credentials from the tenant organization. See Create an embed API with JSON Web Tokens.
Requirements
- You must be assigned the Admin account type in the parent organization.
- You must have API client credentials with REST API scope in the parent organization to make the API calls in this workflow. See Generate Sigma API client credentials.
- You must have embed client credentials to sign the JWT. You can use embed credentials from either the parent organization or the tenant organization. See Generate embed client credentials.
Embed a workbook from a tenant organization
To embed a workbook from a tenant organization, do the following:
- Retrieve tenant organization details
- Retrieve details about the content that you want to embed
- Sign the embed URL
Retrieve tenant organization details
To construct the URL for the embedded content, you must know the organization ID and organization slug for the tenant organization.
In the code that you use to create an embed API, retrieve the organization details for the tenant organization:
-
Call the List tenant organizations (
GET /v2/tenants) endpoint. -
For the relevant tenant organization, identify the following details from the response:
tenantOrganizationIdtenantOrganizationSlug
Retrieve details about the content that you want to embed
In the code that you use to create an embed API, do the following:
-
Retrieve the ID of the deployment policy used to deploy the workbook from the parent organization to the tenant organization:
- Call the List deployment policies (
GET /v2/deploymentPolicies) endpoint. - In the response, retrieve the
deploymentPolicyId.
- Call the List deployment policies (
-
Retrieve the ID of the deployed workbook from the deployment policy:
- Call the List documents for a deployment policy (
GET /v2/deploymentPolicies/{deploymentPolicyId}/files) endpoint. - In the response, retrieve the
workbookIdfor the workbook that you want to embed and store it as theparentWorkbookId.
- Call the List documents for a deployment policy (
-
Identify the ID of the same workbook in the tenant organization:
- Call the Get deployed workbook in tenant organization (
GET /v2/tenants/{tenantOrganizationId}/workbooks) endpoint and provide thetenantOrganizationId,parentWorkbookId, anddeploymentPolicyId. - In the response, retrieve the
workbookUrlfor the workbook on the tenant organization.
- Call the Get deployed workbook in tenant organization (
To embed the workbook in the tenant organization, use the workbookUrl in the response. The workbook URL is formatted as follows:
https://app.sigmacomputing.com/<tenantOrganizationSlug>/workbook/<tenantWorkbookId>
If you want to embed a tagged version of the workbook, a page, or an element, or another supported document type, see the other URL structures in Create an embed API with JSON Web Tokens.
Sign the embed URL
After you construct the relevant URL for the embedded content, sign the URL with a JWT.
You can use embed credentials from either the parent organization or the tenant organization. Refer to the example script in Create an embed API with JSON web tokens.
You must include a tenant JWT claim that passes the value of the tenantOrganizationId. See tenant in the JWT claims reference.

