List connection shares
/connection/{id}/share
Lists who a connection is shared with, cursor-paginated. This is the only place the full grant list is served; other responses carry only a short summary. Each entry carries a resolved `grantee` (name, email, and a member count for teams), so rendering a page needs no extra lookups. Filter with `grantee_type`; search member names and emails and team names with `q`. Requires being able to share the connection (owner, `edit` access, or a team admin on a team-granted one); a bare `connection:manage` permission with no grant of the caller's own does not open it.
Path Parameters
Connection id (conn_…).
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.
4 properties
The person's picture: their stored profile picture, else a Gravatar URL (d=404, 96px) derived from their email (the address itself is not sent), else null. Draw initials when it is null or the image fails to load.
Team grants only: how many people the grant reaches.
Null for org-wide grants.
userteamorg
Share id (acl_…), the {aclId} that DELETE …/share/{aclId} takes.
viewuse
curl -X GET 'https://api.elaichi.ai/connection/<id>/share' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/connection/<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/connection/<id>/share"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())