Skip to content
Barynt v1.0.12

Members

REST API: the people of a workspace or a project.

Read-only. People are added and removed in the app. Every call needs the scope shown and a key (or token) that belongs to someone who may do this in the app. See Authentication and basics.

GET /api/v1/workspaces/{id}/members

Scope: members:read

List every member of a workspace.

Path parameters

NameTypeRequiredDescription
idstringyesThe workspace’s id.

Example

Terminal window
curl "$BARYNT_URL/api/v1/workspaces/$WORKSPACE_ID/members" \
-H "Authorization: Bearer $BARYNT_API_KEY"

Response

{
"data": [
{
"id": "u_7h3j2k",
"name": "Priya Shah",
"email": "priya@example.com",
"handle": "priya",
"role": "admin"
}
]
}

GET /api/v1/projects/{id}/members

Scope: members:read

List every member of a project — the project’s own membership rows. A workspace owner/admin who can reach into a private project without being listed there explicitly won’t appear here.

Path parameters

NameTypeRequiredDescription
idstringyesThe project’s id.

Example

Terminal window
curl "$BARYNT_URL/api/v1/projects/$PROJECT_ID/members" \
-H "Authorization: Bearer $BARYNT_API_KEY"

Response

{
"data": [
{
"id": "u_7h3j2k",
"name": "Priya Shah",
"email": "priya@example.com",
"handle": "priya",
"role": "contributor"
}
]
}