Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Edge S2 Briefing Service Courses API
description: Serves OGT briefings and handles report ingestion.
version: 0.1.0
tags:
- name: Courses
paths:
/courses:
get:
summary: Courses Index
description: 'Catalog page listing every course/clip available. Linked from the top nav.
Inline HTML for the drop-in — port to a Jinja template when ogt-engine has
bandwidth, so it inherits the OGT site shell (topbar + footer).'
operationId: courses_index_courses_get
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
tags:
- Courses
/courses/waitlist:
get:
summary: Waitlist Form
description: 'Tiny standalone form page. Replace the inline template with a Jinja
render using the OGT site shell so it inherits the nav + footer.'
operationId: waitlist_form_courses_waitlist_get
parameters:
- name: course
in: query
required: false
schema:
type: string
default: sgc-active
title: Course
- name: source_clip
in: query
required: false
schema:
type: string
default: ''
title: Source Clip
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Courses
/courses/{slug}:
get:
summary: Course Player No Slash
description: 'Redirect /courses/ → /courses// (301) so browser relative-URL
resolution finds the asset proxy at /courses//. Without the
trailing slash, `` resolves to /courses/ogt-owl.jpg
(parent dir) instead of /courses//ogt-owl.jpg.'
operationId: course_player_no_slash_courses__slug__get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Courses
/courses/{slug}/:
get:
summary: Course Player
description: 'Serve the player shell for /courses//. Injects the slug→clip mapping
so the player knows which scenes.json to load via relative URLs (which then
hit the asset-proxy route below).'
operationId: course_player_courses__slug___get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Courses
/courses/{slug}/sample/:
get:
summary: Course Sample
description: 'The free first chapter (src/engage/free_chapter.py): the same player, loading the course''s
chapter-1 clip (its own file, never the full video). A link without a valid sample token goes to
the sales page''s free-chapter form. Relative assets resolve under sample/, which course_asset strips.'
operationId: course_sample_courses__slug__sample__get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Courses
/courses/{slug}/{asset}:
get:
summary: Course Asset
description: 'Serve an asset under /courses//... from the GCS bucket.
Media (mp4/m4a/…) is **302-redirected straight to the public GCS URL** rather
than proxied. The old code buffered the whole object into memory and returned
it as one Response(content=…); Cloud Run caps a non-chunked response at 32 MiB,
so a chapter video larger than that (tomorrows-trades mka-3.mp4 was 36 MiB)
came back as an empty HTTP 500 and the browser''s showed a black screen.
A redirect sidesteps the proxy, the middleware, and the 32 MiB ceiling entirely,
lets GCS serve range/seek natively at any size, and offloads media bandwidth
off Cloud Run. Non-media assets (scenes.json, vtt, png — all tiny, same-origin
so JS fetch() has no CORS issue) are still proxied through.'
operationId: course_asset_courses__slug___asset__get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: asset
in: path
required: true
schema:
type: string
title: Asset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Courses
/api/courses/track:
post:
summary: Track Event
description: 'Player engagement beacon. Tolerates malformed payloads silently so a
misbehaving client never spams the FastAPI error log.'
operationId: track_event_api_courses_track_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Courses
/api/courses/waitlist:
post:
summary: Waitlist Signup
description: 'Capture a waitlist signup. Idempotent on (course_slug, email) — a second
signup with the same email updates the timestamp instead of creating a dup.'
operationId: waitlist_signup_api_courses_waitlist_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Courses
/api/courses/feedback:
post:
summary: Submit Feedback
description: 'End-of-course feedback. Tolerates missing/empty fields silently — the form
is opt-in field-by-field; the player allows submission with any combination.'
operationId: submit_feedback_api_courses_feedback_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Courses
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError