Get the list of members for any workspace. This endpoint can only be used by instance level admins.
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"users": [
{
"id": 123,
"email": "<string>",
"role": "<string>"
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"role": "<string>"
}
]
}"<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Workspaces
Get the list of members for any workspace. This endpoint can only be used by instance level admins.
⚠️ ALPHA ENDPOINT - This endpoint is in alpha and subject to breaking changes. Use with caution in production environments.
Returns the list of members linked to a workspace in the authenticated user’s company. This endpoint can only be used by company-level admins or higher.
GET
/
api
/
v3
/
instance
/
workspaces
/
{id}
/
members
Get the list of members for any workspace. This endpoint can only be used by instance level admins.
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/instance/workspaces/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"users": [
{
"id": 123,
"email": "<string>",
"role": "<string>"
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"role": "<string>"
}
]
}"<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.