curl --request GET \
--url https://core.ravenna.ai/api/user-groups/with-workspaces \
--header 'x-ravenna-api-token: <api-key>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"emoji": "<string>",
"icon": "<string>",
"color": "<string>",
"organizationId": "<string>",
"users": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"image": "<string>",
"emailVerified": "<string>",
"defaultWorkspaceId": "<string>",
"isGuestCreated": true,
"isBot": true,
"createdAt": "<string>",
"auth0Id": "<string>",
"updatedAt": "<string>",
"slackUsers": [
{
"id": "<string>",
"slackUserId": "<string>",
"slackTeamId": "<string>",
"slackAppId": "<string>",
"slackImageUrl": "<string>",
"slackRealName": "<string>",
"isBot": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slackApp": {
"appId": "<string>"
}
}
]
}
],
"workspaces": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"color": "<string>"
}
],
"_count": {
"users": 123,
"workspaces": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"nextCursor": "<string>",
"totalCount": 123
}
curl --request GET \
--url https://core.ravenna.ai/api/user-groups/with-workspaces \
--header 'x-ravenna-api-token: <api-key>'
{
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"emoji": "<string>",
"icon": "<string>",
"color": "<string>",
"organizationId": "<string>",
"users": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"image": "<string>",
"emailVerified": "<string>",
"defaultWorkspaceId": "<string>",
"isGuestCreated": true,
"isBot": true,
"createdAt": "<string>",
"auth0Id": "<string>",
"updatedAt": "<string>",
"slackUsers": [
{
"id": "<string>",
"slackUserId": "<string>",
"slackTeamId": "<string>",
"slackAppId": "<string>",
"slackImageUrl": "<string>",
"slackRealName": "<string>",
"isBot": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slackApp": {
"appId": "<string>"
}
}
]
}
],
"workspaces": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"color": "<string>"
}
],
"_count": {
"users": 123,
"workspaces": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"nextCursor": "<string>",
"totalCount": 123
}
x >= 1
x >= 0
1 <= x <= 10000
asc
, desc
asc
, desc
Successful response
The response is of type object
.
Was this page helpful?