GET /api/v1/programs/{programId}/courses
Returns the courses of one program, in composition order. Archived courses are included: an archived course stays readable, it does not vanish behind a default filter.
| Role in the organization | This endpoint |
|---|---|
OWNER | Allowed |
ADMIN | Allowed |
MEMBER | Conditional — with the program_director business role scoped to the organization, or as coach of this program |
| Parameter | Type | Required | Description |
|---|---|---|---|
programId | UUID | yes | Program visible from the key's school |
| Header | Required | Description |
|---|---|---|
x-api-key | yes | API key created for this school |
X-Correlation-Id | no | Caller correlation id, returned or generated |
curl "$COHORTE_API_BASE_URL/api/v1/programs/$PROGRAM_ID/courses" \
-H "x-api-key: $COHORTE_API_KEY"200 OK — the list, possibly empty. A program of another school also
answers an empty list rather than confirming it exists.400 Bad Request — programId is not a UUID.401 Unauthorized — the key is missing, invalid, or no longer attached to a member.403 Forbidden — the bearer is not OWNER, ADMIN, an organization-scoped program_director of this school, nor the coach of this program.| Field | Type | Nullable | Description |
|---|---|---|---|
success | boolean | no | true for a successful request |
data[].id | UUID | no | Course identifier |
data[].programId | UUID | no | Program that holds the course |
data[].name | string | no | Course name |
data[].slug | string | yes | URL identity inside the program |
data[].image | string | yes | Cover URL |
data[].position | integer | no | Rank in the program, starting at 1 |
data[].status | string | no | active or archived |
data[].createdAt | ISO 8601 string | no | Creation time, in UTC |
data[].updatedAt | ISO 8601 string | no | Last change, in UTC |
correlationId | UUID | no | Correlation id for support |
{
"success": true,
"data": [
{
"id": "3b8e2d41-7a6c-4f1e-8b25-9c0d1e2f3a4b",
"programId": "9f2c0a1e-4b7d-4c1a-9e3f-2a6b8c0d1e2f",
"name": "Week 1 — Your first agent",
"slug": "week-1-your-first-agent",
"image": "https://files.example.com/covers/week-1.png",
"position": 1,
"status": "active",
"createdAt": "2026-09-01T09:00:00.000Z",
"updatedAt": "2026-09-04T17:12:00.000Z"
},
{
"id": "6a1d4c27-2e9b-4d3a-a8f6-1b2c3d4e5f60",
"programId": "9f2c0a1e-4b7d-4c1a-9e3f-2a6b8c0d1e2f",
"name": "Week 2 — Tools and memory",
"slug": "week-2-tools-and-memory",
"image": null,
"position": 2,
"status": "active",
"createdAt": "2026-09-01T09:00:00.000Z",
"updatedAt": "2026-09-04T17:12:00.000Z"
}
],
"correlationId": "0f6b1d92-5c3e-4a8b-9d71-3e2f4a6b8c10"
}