Skip to main content
GET
/
api
/
access
/
clients
/
{client_profile_id}
/
collections
List Client's Collections
curl --request GET \
  --url https://api.example.com/api/access/clients/{client_profile_id}/collections \
  --header 'Authorization: <authorization>'

Authentication

Authorization
string
required
Bearer token: Bearer <admin_token>

Path Parameters

client_profile_id
string
required
The client’s profile ID (UUID)

Example Request

curl https://api.sari-platform.com/api/access/clients/550e8400-e29b-41d4-a716-446655440000/collections \
  -H "Authorization: Bearer <admin_token>"

Response

Returns all collections with access status for the specified client.
[
  {
    "id": "collection-uuid-1",
    "name": "Stripe API",
    "description": "Payment processing",
    "has_access": true,
    "granted_at": "2024-01-15T10:00:00Z"
  },
  {
    "id": "collection-uuid-2",
    "name": "PayPal API",
    "description": "Online payments",
    "has_access": false,
    "granted_at": null
  }
]

Errors

StatusDescription
401Invalid or expired token
403Admin access required
404Client not found