List Members
const url = 'https://example.com/v1/members';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/members \ --header 'X-API-Key: <X-API-Key>'Everyone with access to the organization, or to one workspace with
project_id: their role there and each path that gives it.
Needs members:read (and projects:read, which reading any space
takes). can_manage_members says whether this caller may change people
there.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”A workspace of the organization; omit it for the organization itself. A workspace key names its own workspace.
A workspace of the organization; omit it for the organization itself. A workspace key names its own workspace.
Responses
Section titled “ Responses ”Everyone with access and their roles
Everyone with access to the organization or one workspace.
object
Enough of a space to name it.
object
A workspace’s icon; null for none
A person with access to the space, their role and where it comes from.
object
Their effective role here
One reason a person holds a role on a space.
object
Direct, inherited (from the organization), membership or inherited_membership
The space the grant sits on: this one or the organization
object
A workspace’s icon; null for none
The space whose membership carried the grant, if any
object
A workspace’s icon; null for none
The caller may change people here: for a key, its creator’s role holds spaces:members and the key holds members:write
The caller may create, rename and delete workspaces
The caller’s role here: the most they may grant
Example
{ "space": { "kind": "organization" }, "people": [ { "role": "viewer", "paths": [ { "role": "viewer", "granted_on": { "kind": "organization" }, "via": { "kind": "organization" } } ] } ], "can_manage_members": false, "can_create_children": false, "my_role": "viewer"}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}The key lacks members:read, or its creator’s role does not allow it
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Not found or not readable
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}