To enable the Compliance API, see the setup guide.
Set up the Compliance APIDaftar kolaborator proyek
GET/v1/compliance/apps/projects/{project_id}/collaborators
Mendaftar pengguna, grup, dan pemberian akses tingkat organisasi pada sebuah proyek.
Setiap entri mewakili satu penetapan peran aktif pada proyek. Principal
dikembalikan sebagai discriminated union pada type — pengguna individu, grup
RBAC, seluruh organisasi, atau semua pemegang peran tingkat organisasi.
Path parameters
Query parameters
Headers
Returns
Daftar kolaborator proyek
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/collaborators \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"data": [
{
"granted_at": "2019-12-27T18:11:19.117Z",
"role": "admin",
"type": "user",
"user_id": "user_id"
}
],
"has_more": true,
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"granted_at": "2019-12-27T18:11:19.117Z",
"role": "admin",
"type": "user",
"user_id": "user_id"
}
],
"has_more": true,
"next_page": "next_page"
}