---
title: "Share a workbook with another organization"
method: POST
path: "/v2/workbooks/{workbookId}/shareCrossOrg"
tags: ["Workbooks"]
---

# Share a workbook with another organization

`POST /v2/workbooks/{workbookId}/shareCrossOrg`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/workbooks/{workbookId}/shareCrossOrg`
- Auth: HTTP bearer

Share a workbook or a template with another organization. Optionally share the associated datasets, if datasets (deprecated) are used as the source.

### Usage notes
- Retrieve the **workbookId** by calling the [/v2/workbooks](https://help.sigmacomputing.com/reference/list-workbooks) endpoint.
- Retrieve the **templateId** by calling the [v2/templates](https://help.sigmacomputing.com/reference/list-templates) endpoint.
- Retrieve the organization slug from the URL. Ask the recipient organization for the segment of their Sigma URL following `app.sigmacomputing.com`. For example, `app.sigmacomputing.com/sigma-docs` has an organization slug of `sigma-docs`.

## Path parameters

- `workbookId` string, required

## Request body

- object
  - `orgSlugs` string[], required: The unique identifiers of the organizations to share the workbook with.
  - `shareDatasets` boolean: Whether to share the datasets (deprecated) associated with the workbook.
  - `copyInputTableData` boolean: Whether to copy input table data to the recipient organization.
  - `sendEmail` boolean: Whether to send an email to admins in the recipient org.
  - `emailMessage` string: The message to send to the recipients, if sendEmail is true.

## Response `200`

The response body.

- WorkbooksShareWorkbookCrossOrgResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
