List Projects
GEThttps://api.confident-ai.com/v2/organization/governance-policies/{policyId}/projects
Lists the projects enrolled in a governance policy one page at a time, newest created project first, as ids and names only. totalGovernancePolicyProjects counts every enrolled project, not just the current page. Retrieve the policy by id for each project's verdict per control, or a project's own governance view for its verdict history.
curl -X GET "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}/projects" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"projects": [
{
"id": "<PROJECT-ID>",
"name": "Customer Support Agent"
}
],
"totalGovernancePolicyProjects": 4,
"page": 1,
"pageSize": 25
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe id of the governance policy.
Query parameters
pageintegerdefault: 1The page to return. Defaults to 1.
pageSizeintegerdefault: 25The number of projects per page, at most 100. Defaults to 25.
Response
List Projects succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of the projects enrolled in a governance policy, with the total across all pages.
Show 4 propertiesHide 4 properties
projectslist of objectsThe projects enrolled in this policy for the current page, newest created project first.
Show 2 propertiesHide 2 properties
idstringThe id of the project.
namestringThe name of the project.
totalGovernancePolicyProjectsintegerHow many projects are enrolled in this policy across every page.
pageintegerThe page this response covers.
pageSizeintegerThe number of projects per page.
deprecatedbooleanIndicates if this endpoint is deprecated.