List cohorts
curl --request GET \
--url https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"has_next_page": true,
"items": [
{
"created_at": "<string>",
"created_by": "<string>",
"dead_keys": [
"<string>"
],
"description": "<string>",
"id": "<string>",
"member_count": 123,
"name": "<string>",
"rules": {
"operator": "and",
"predicates": [
{
"key": "<string>",
"op": "<string>",
"type": "attribute",
"value": "<string>"
}
],
"version": 1
},
"updated_at": "<string>"
}
],
"limit": 123,
"page": 123,
"total_count": 123,
"total_pages": 123
},
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}Cohorts
List cohorts
Lists the cohorts defined under your tenant, paged with page and limit. The response data carries items alongside total_count, page, limit, total_pages and has_next_page.
GET
/
tenant
/
{tenantId}
/
cohorts
List cohorts
curl --request GET \
--url https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kintra.io/api/v1/tenant/{tenantId}/cohorts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"has_next_page": true,
"items": [
{
"created_at": "<string>",
"created_by": "<string>",
"dead_keys": [
"<string>"
],
"description": "<string>",
"id": "<string>",
"member_count": 123,
"name": "<string>",
"rules": {
"operator": "and",
"predicates": [
{
"key": "<string>",
"op": "<string>",
"type": "attribute",
"value": "<string>"
}
],
"version": 1
},
"updated_at": "<string>"
}
],
"limit": 123,
"page": 123,
"total_count": 123,
"total_pages": 123
},
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}⌘I

