List access bindings
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"items": [
{
"object": "collection.access",
"collection_id": "<string>",
"principal_type": "user",
"principal_id": "<string>",
"role": "owner",
"email": "<string>"
}
],
"total": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}Sharing
List access bindings
Lists who the collection is shared with (owner, users, groups, org).
GET
/
v1
/
collections
/
{collection_id}
/
access
List access bindings
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"items": [
{
"object": "collection.access",
"collection_id": "<string>",
"principal_type": "user",
"principal_id": "<string>",
"role": "owner",
"email": "<string>"
}
],
"total": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuth
User session JWT. Send as Authorization: Bearer <token>.
Path Parameters
Collection identifier returned at creation.
Query Parameters
Page size (max 100).
Required range:
1 <= x <= 100Page number.
Required range:
x >= 1Response
Access bindings.
Example:
"list"
Was this page helpful?