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": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 0,
"startIndex": 0,
"itemsPerPage": 0,
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"id": "<string>",
"displayName": "<string>",
"meta": {
"resourceType": "Group",
"created": "<string>",
"lastModified": "<string>"
},
"externalId": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
]
}
]
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "<string>",
"detail": "<string>",
"scimType": "<string>"
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "<string>",
"detail": "<string>",
"scimType": "<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": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"totalResults": 0,
"startIndex": 0,
"itemsPerPage": 0,
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"id": "<string>",
"displayName": "<string>",
"meta": {
"resourceType": "Group",
"created": "<string>",
"lastModified": "<string>"
},
"externalId": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
]
}
]
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "<string>",
"detail": "<string>",
"scimType": "<string>"
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "<string>",
"detail": "<string>",
"scimType": "<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 attribute eq "..." is understood; any other expression is refused.
1-based index of the first resource to return. Anything that does not parse as a positive integer is read as 1.
-9007199254740991 <= x <= 9007199254740991How 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.
-9007199254740991 <= 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.
Response
A page of provisioned groups.
"urn:ietf:params:scim:api:messages:2.0:ListResponse"-9007199254740991 <= x <= 9007199254740991-9007199254740991 <= x <= 9007199254740991-9007199254740991 <= x <= 9007199254740991Show child attributes
Show child attributes
Was this page helpful?