Skip to content

Get one cohort-program assignment

GET
/cohorts/{id}/programs/{cohortProgramExtId}
curl --request GET \
--url https://api.retorio.com/be/v2/cohorts/b2d7e4a1_55c3_4f28_9e10_7a3d6c4b8f02/programs/e90f3b7c_1a26_44d5_b8c1_0d94e7f25a63 \
--header 'Authorization: Bearer <token>'

One program assigned to the cohort: the program, its period and position, whether it is upcoming, active or finished, and its scenarios counted by publish status.

Auth
Access key
Roles
Owner / Admin / Custom
id
required
string

Example

b2d7e4a1_55c3_4f28_9e10_7a3d6c4b8f02
cohortProgramExtId
required
string

Example

e90f3b7c_1a26_44d5_b8c1_0d94e7f25a63

OK

Media typeapplication/json
object
createdAt
required
string format: date-time
extId
required
string
<= 64 characters
startDate
required
string format: date-time
endDate
required
string format: date-time
nullable
order
required
integer
programId
required

The assigned program’s ext id.

string
title
required

The assigned program’s title.

string
scenarioStatusCounts
required
object
unpublished
required
integer
publishing
required
integer
published
required
integer
cohortProgramStatus
required

upcoming before startDate, finished once endDate has passed (never for an open-ended assignment, which has no endDate), active otherwise.

string
Allowed values: upcoming active finished

Example

{
"cohortProgramStatus": "upcoming"
}

Not authenticated: the bearer token is missing, malformed, expired or revoked, its sign-in method does not match your organization’s configuration, the user it belongs to was removed, or your organization is deactivated.

Media typeapplication/json
object
message
required
string
status
required

Canonical error name, e.g. INVALID_ARGUMENT.

string
details
nullable

Example generated

{
"message": "example",
"status": "example",
"details": "example"
}

Refused: the token does not belong to an admin, or your organization does not have the coaching product, or the admin’s roles do not grant cohorts:view.

Media typeapplication/json
Any of:
object
message
required
string
status
required

Canonical error name, e.g. INVALID_ARGUMENT.

string
details
nullable

Example generated

{
"message": "example",
"status": "example",
"details": "example"
}

No cohort with this id in your organization, or no assignment with this ext id in it.

Media typeapplication/json
object
message
required
string
status
required

Canonical error name, e.g. INVALID_ARGUMENT.

string
details
nullable

Example generated

{
"message": "example",
"status": "example",
"details": "example"
}

Internal Server Error

Media typeapplication/json
object
key
additional properties
nullable

Example generated

{
"additionalProperty": "example"
}

Retorio is GDPR and DSGVO compliant, EU AI Act aligned, ISO 27001 certified, and hosted on Google Cloud with EU data residency. For anything specific to your rollout, ask your Retorio contact.