List Collection's Clients
curl --request GET \
--url https://api.example.com/api/access/collections/{collection_id}/clients \
--header 'Authorization: <authorization>'import requests
url = "https://api.example.com/api/access/collections/{collection_id}/clients"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.example.com/api/access/collections/{collection_id}/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/access/collections/{collection_id}/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/access/collections/{collection_id}/clients"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/access/collections/{collection_id}/clients")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/access/collections/{collection_id}/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodyAccess Control
List Collection's Clients
List all clients with access to a collection (admin only)
GET
/
api
/
access
/
collections
/
{collection_id}
/
clients
List Collection's Clients
curl --request GET \
--url https://api.example.com/api/access/collections/{collection_id}/clients \
--header 'Authorization: <authorization>'import requests
url = "https://api.example.com/api/access/collections/{collection_id}/clients"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.example.com/api/access/collections/{collection_id}/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/access/collections/{collection_id}/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/access/collections/{collection_id}/clients"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/access/collections/{collection_id}/clients")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/access/collections/{collection_id}/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodyAuthentication
string
required
Bearer token:
Bearer <admin_token>Path Parameters
string
required
The collection ID (UUID)
Example Request
curl https://api.sari-platform.com/api/access/collections/550e8400-e29b-41d4-a716-446655440000/clients \
-H "Authorization: Bearer <admin_token>"
Response
Returns all clients with access to the specified collection.[
{
"client_id": "client-uuid-1",
"email": "user@example.com",
"full_name": "John Doe",
"company_name": "Acme Corp",
"granted_at": "2024-01-15T10:00:00Z"
},
{
"client_id": "client-uuid-2",
"email": "jane@company.com",
"full_name": "Jane Smith",
"company_name": "Tech Inc",
"granted_at": "2024-01-16T14:00:00Z"
}
]
Errors
| Status | Description |
|---|---|
| 401 | Invalid or expired token |
| 403 | Admin access required |
| 404 | Collection not found |
⌘I

