Have the course factory write a course for a trainer, within the organisation's budget
POST
/v1/integration-api/course-runs
const url = 'https://api.academy.example.com/v1/integration-api/course-runs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"trainerEmail":"trainer@example.com","title":"Arbeitsschutz im Lager","language":"de","audience":"new warehouse staff","size":"short","notes":"Forklifts, shelving, first aid"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.academy.example.com/v1/integration-api/course-runs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "trainerEmail": "trainer@example.com", "title": "Arbeitsschutz im Lager", "language": "de", "audience": "new warehouse staff", "size": "short", "notes": "Forklifts, shelving, first aid" }'Versioned integration contract.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
trainerId
string format: uuid
trainerEmail
string format: email
title
required
string
language
string
audience
string
domain
string
level
string
size
string
notes
string
seeds
Array<string>
approveObjectives
boolean
costCap
number
hardCap
number
Example
{ "trainerEmail": "trainer@example.com", "title": "Arbeitsschutz im Lager", "language": "de", "audience": "new warehouse staff", "size": "short", "notes": "Forklifts, shelving, first aid"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
id
required
string format: uuid
title
required
string
language
required
string | null
status
required
string
stage
required
string | null
costEur
required
number
costCapEur
required
number | null
hardCapEur
required
number | null
courseStatus
required
string | null
error
required
string | null
createdAt
required
string format: date-time
Example
{ "id": "6f1c2a10-0000-4000-8000-000000000101", "title": "Arbeitsschutz im Lager", "language": "de", "trainerId": "6f1c2a10-0000-4000-8000-0000000000a3", "status": "queued", "stage": null, "waitReason": null, "costEur": 0, "costCapEur": 3, "hardCapEur": null, "courseId": null, "courseStatus": null, "error": null, "createdAt": "2026-11-03T08:00:00.000Z", "startedAt": null, "finishedAt": null}default
Section titled “default”Error; error and message identify the reason
Media typeapplication/json
object
error
required
Stable code, e.g. insufficient_scope, not_found, validation_failed
string
message
string
Example generated
{ "error": "example", "message": "example"}