List Org Members
curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"orgSlug": "<string>",
"userId": "<string>",
"status": "active",
"id": "<string>",
"roleSlug": "<string>",
"invitedBy": "<string>",
"invitedAt": "<string>",
"inviteEmail": "<string>",
"inviteToken": "<string>",
"joinedAt": "<string>",
"joinedVia": "direct",
"groups": [
"<string>"
],
"pendingGroups": [
"<string>"
],
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 123
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Organizations
List Org Members
List members of an organization
GET
/
v2
/
orgs
/
{orgSlug}
/
members
List Org Members
curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"orgSlug": "<string>",
"userId": "<string>",
"status": "active",
"id": "<string>",
"roleSlug": "<string>",
"invitedBy": "<string>",
"invitedAt": "<string>",
"inviteEmail": "<string>",
"inviteToken": "<string>",
"joinedAt": "<string>",
"joinedVia": "direct",
"groups": [
"<string>"
],
"pendingGroups": [
"<string>"
],
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 123
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Sort field and direction, e.g. -createdAt
Comma-separated list of user IDs to filter on
When true, each returned membership includes a groups field listing the slugs of org groups the user belongs to. Requires an additional lookup per page.
Response
Success
Hide child attributes
Hide child attributes
Available options:
active, invited, suspended Available options:
direct, invite-code, invite-email, auto-join, join-rule Org group slugs the user belongs to. Only populated on listOrgMembers when includeGroups=true.
Group slugs to add the user to once they accept their invite. Set at import time for pending/invited members; cleared and applied as real group memberships when the invite is claimed.
Was this page helpful?