Python
import requests
url = "https://app.langwatch.ai/api/role-bindings"
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/role-bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/role-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"id": "<string>",
"principal": {
"id": "<string>",
"name": "<string>"
},
"customRoleId": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"createdAt": "<string>"
}
],
"totalCount": 123
}Role Bindings
List role bindings
List the organization’s role bindings, each naming its principal (user, group or API key), role and scope. Filter by principal or scope; totalCount counts the filtered set.
GET
/
api
/
role-bindings
Python
import requests
url = "https://app.langwatch.ai/api/role-bindings"
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/role-bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/role-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"id": "<string>",
"principal": {
"id": "<string>",
"name": "<string>"
},
"customRoleId": "<string>",
"customRoleName": "<string>",
"scopeId": "<string>",
"scopeName": "<string>",
"createdAt": "<string>"
}
],
"totalCount": 123
}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}.
Query Parameters
Minimum string length:
1Minimum string length:
1Minimum string length:
1Available options:
ORGANIZATION, TEAM, PROJECT Minimum string length:
1Required range:
x >= 0Required range:
1 <= x <= 200Was this page helpful?
⌘I