List template ACL shares
/template/{id}/share
Cursor-paginated, and the only place the grant list is served. Each entry carries a resolved `grantee`. Filter with `grantee_type`, search member names/emails and team names with `q`. Requires owner or `edit` access (own grant) — no `template:manage` fallback.
Path Parameters
Template id (tpl_…).
Query Parameters
Match member name or email, or team name. LIKE wildcards are matched literally. Max 200 characters.
Restrict to one kind of grantee.
userteamorg
Response Body
Resolved display data, so a page of grants needs no follow-up lookups.
3 properties
Team grants only: how many people the grant reaches.
Null for org-wide grants.
userteamorg
ACL id (acl_…) — what DELETE …/share/{aclId} takes.
viewuseedit
curl -X GET 'https://api.elaichi.ai/template/<id>/share' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'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);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())