---
title: "Accept a pending template share"
method: POST
path: "/v2/shared_templates/accept"
tags: ["Shared templates"]
---

# Accept a pending template share

`POST /v2/shared_templates/accept`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/shared_templates/accept`
- Auth: HTTP bearer

If a workbook template has been shared with your organization but not yet accepted, accept the template share.
  
  ### Usage notes
  - Retrieve pending template shares by calling the [/v2/shared_templates/shared_with_you](https://help.sigmacomputing.com/reference/list-templates-shared-with-you) endpoint and specifying `pending` as `true`.
  - Retrieve the **shareId** by calling the [/v2/shared_templates/shared_with_you](https://help.sigmacomputing.com/reference/list-templates-shared-with-you) endpoint and using the `shareId` included in the response.
  - Retrieve the **connectionId** by calling the [/v2/connections](https://help.sigmacomputing.com/reference/list-connections) endpoint.
  - Retrieve the **inodeId** for a table by calling the [/v2/connections/{connectionId}/lookup](https://help.sigmacomputing.com/reference/lookup-connection) endpoint.

  - The key of the **sourceSwaps** object is the original id of the table, dataset, or connection in the organization that shared the template

## Request body

- object
  - `shareId` string, required
  - `sourceSwaps` object

## Response `200`

The response body.

- SharedTemplatesAcceptTemplateShareResponse200

---

[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)
