# List template ACL shares

> Source: https://elaichi.ai/docs/api-reference/templates/template/listtemplateshares/

`GET /template/{id}/share`

Resource: **Template** · API: **Templates**

## Path parameters

- **`id`** _(string, required)_
  Template id (`tpl_…`).

## Query parameters

- **`q`** _(string)_
  Match member name or email, or team name. LIKE wildcards are matched literally. Max 200 characters.
- **`grantee_type`** _(string)_
  Restrict to one kind of grantee.
  Allowed: `user`, `team`, `org`

## Response body

- **`result`** _(array<object>)_
  - **`id`** _(string)_
    ACL id (`acl_…`) — what `DELETE …/share/{aclId}` takes.
  - **`grantee_type`** _(string)_
    Allowed: `user`, `team`, `org`
  - **`grantee_id`** _(string,null)_
    Null for org-wide grants.
  - **`level`** _(string)_
    Allowed: `view`, `use`, `edit`
  - **`grantee`** _(object)_
    Resolved display data, so a page of grants needs no follow-up lookups.
    - **`name`** _(string,null)_
    - **`email`** _(string,null)_
    - **`member_count`** _(integer,null)_
      Team grants only: how many people the grant reaches.
  - **`created_at`** _(string)_
- **`next_cursor`** _(string,null)_
- **`prev_cursor`** _(string,null)_

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/template/<id>/share' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/template/<id>/share', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/template/<id>/share"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
