Skip to content
POST /connection/{id}/share

Grants one member, team, or the whole organization `view` or `use` access to this connection. Sharing never changes `owner_user_id`; that moves only through `POST /connection/{id}/transfer`. `use` lets the grantee bind this connection into their own toolbox entries and run tools through it. `edit` is not a valid level here: renaming, deleting or transferring a connection stays with the owner. A private connection (no existing grants) may be shared only by its own owner; no organization permission reaches another member's private connection. Requires `edit` access or ownership, and `connection:share`; for a connection granted to a team, that team's admin also qualifies.

Path Parameters

idstring
required·

Connection id (conn_…).

curl -X POST '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: 'POST',
  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.post(url, headers=headers)
print(response.json())