List Project Policies
GEThttps://api.confident-ai.com/v1/projects/{projectId}/policies
Lists the custom policies defined for a project. Each policy is a named collection of permissions.
curl -X GET "https://api.confident-ai.com/v1/projects/{projectId}/policies" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"policies": [
{
"id": "policy-uuid-1",
"name": "View traces",
"description": "Grants read access to traces",
"permissions": [
{
"id": "perm-uuid-1",
"name": "trace:read"
}
]
}
]
}
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
projectIdstringRequiredThe unique identifier of the project.
Response
successbooleanIndicates if the request was successful
dataobjectShow 1 propertyHide 1 property
policieslist of objectsList of the project's custom policies
Show 4 propertiesHide 4 properties
idstringUnique identifier for the policy
namestringName of the policy
descriptionstringOptional description of the policy
permissionslist of objectsThe permissions granted by this policy
Show 2 propertiesHide 2 properties
idstringUnique identifier
namestringName