Python
import requests
url = "https://app.langwatch.ai/api/organization/members/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/organization/members/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/members/{userId} \
--header 'Authorization: Bearer <token>'{
"userId": "<string>",
"disabled": true,
"disabledAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"teams": [
{
"teamId": "<string>",
"teamName": "<string>",
"customRoleId": "<string>",
"customRoleName": "<string>"
}
]
}Members
Get member
Read one member, including the teams they reach through team-scoped role bindings. Personal workspaces are not listed: they are not access an administrator manages.
GET
/
api
/
organization
/
members
/
{userId}
Python
import requests
url = "https://app.langwatch.ai/api/organization/members/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/organization/members/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/members/{userId} \
--header 'Authorization: Bearer <token>'{
"userId": "<string>",
"disabled": true,
"disabledAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"teams": [
{
"teamId": "<string>",
"teamName": "<string>",
"customRoleId": "<string>",
"customRoleName": "<string>"
}
]
}Authorizations
Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.
Path Parameters
Minimum string length:
1Response
200 - application/json
Success
Was this page helpful?
⌘I