List Members
GEThttps://api.confident-ai.com/v2/projects/{projectId}/members
Lists the members of one project a page at a time, each with the project role that decides what they can do inside it. Project members are drawn from the organization's members: someone can belong to the organization and not appear here, and being here is what gives them access to this project's data. Removing a member from the organization removes them from every project in it, this one included.
curl -X GET "https://api.confident-ai.com/v2/projects/{projectId}/members" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"members": [
{
"id": "<USER-ID>",
"email": "jane@acme.com",
"name": "Jane Doe",
"image": null,
"projectRole": {
"id": "<ROLE-ID>",
"name": "Admin"
}
}
],
"totalProjectMembers": 3,
"page": 1,
"pageSize": 25
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
projectIdstringRequiredThe id of the project, which must belong to your organization.
Query parameters
pageintegerdefault: 1The page to return. Defaults to 1.
pageSizeintegerdefault: 25The number of members per page, at most 100. Defaults to 25.
Response
List Members succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of project members, with the total across all pages.
Show 4 propertiesHide 4 properties
memberslist of objectsThe project's members for the current page.
Show 5 propertiesHide 5 properties
idstringThis is the id of the user.
emailstringThis is the email address of the user.
namestring | nullThis is the display name of the user, or null when they have not set one.
imagestring | nullThis is the URL of the user's avatar, or null when they have none.
projectRoleobject | nullThe role a member holds, as referenced from the member. Retrieve the role by id from the roles endpoint of the same scope to see the policies behind it.
Show 2 propertiesHide 2 properties
idstringThe id of the role.
namestringThe name of the role.
totalProjectMembersintegerThe total number of members in the project, across every page.
pageintegerThe page this response covers.
pageSizeintegerThe number of members per page.
deprecatedbooleanIndicates if this endpoint is deprecated.