import requests
url = "https://app.langwatch.ai/api/scim/v2/Groups"
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/scim/v2/Groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/scim/v2/Groups \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"totalResults": 123,
"startIndex": 123,
"itemsPerPage": 123,
"Resources": [
{
"schemas": [
"<string>"
],
"id": "<string>",
"displayName": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z"
}
}
]
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}List provisioned groups
The organization’s SCIM-provisioned access groups. Groups created in LangWatch itself are not listed: the directory sees what it provisioned, and nothing else. One filter expression is understood, displayName eq "Engineering", matched without regard to case.
import requests
url = "https://app.langwatch.ai/api/scim/v2/Groups"
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/scim/v2/Groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/scim/v2/Groups \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"totalResults": 123,
"startIndex": 123,
"itemsPerPage": 123,
"Resources": [
{
"schemas": [
"<string>"
],
"id": "<string>",
"displayName": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z"
}
}
]
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}Authorizations
SCIM token for one organization's directory connection, created with POST /api/scim-tokens or in Settings > SCIM. It authenticates provisioning calls only, and stops working if the organization's Enterprise plan lapses.
Query Parameters
A SCIM filter. Only displayName eq "..." is applied; anything else is ignored and the full page is returned.
1-based index of the first resource to return. Anything that does not parse as a positive integer is read as 1.
How many resources to return, capped at 100 (the filter.maxResults ServiceProviderConfig publishes). Anything that does not parse as a positive integer is read as 100, and anything above 100 is served as 100.
x <= 100Comma-separated attribute names to leave out of the response. Only members is honoured, and it is what lets a directory page through groups without pulling every membership.
Was this page helpful?