Python
import requests
url = "https://app.langwatch.ai/api/v1/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/v1/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/v1/role-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"id": "<string>",
"principal": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"role": "ADMIN",
"customRoleId": "<string>",
"customRoleName": "<string>",
"scopeType": "PROJECT",
"scopeId": "<string>",
"scopeName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}
],
"totalCount": 123
}Role Bindings
List role bindings
deprecated
List the organization’s role bindings, each naming its principal (user, group or API key), role, scope, and the date its access ends if one was set. Filter by principal or scope; totalCount counts the filtered set. superseded by /api/grants, which answers the same rows as grants
GET
/
api
/
v1
/
role-bindings
Python
import requests
url = "https://app.langwatch.ai/api/v1/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/v1/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/v1/role-bindings \
--header 'Authorization: Bearer <token>'{
"bindings": [
{
"id": "<string>",
"principal": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"role": "ADMIN",
"customRoleId": "<string>",
"customRoleName": "<string>",
"scopeType": "PROJECT",
"scopeId": "<string>",
"scopeName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}
],
"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:
PROJECT, TEAM, ORGANIZATION Minimum string length:
1Required range:
0 <= x <= 9007199254740991Required range:
1 <= x <= 200Last modified on October 12, 2026
Was this page helpful?