Skip to Content
API ReferenceContentOverview

Content API

Bella’s Content API organises verified health articles and structured workout sessions into dedicated collections, while sharing one global Cloud CDN media signing endpoint for video and audio streams:

  • Articles: Stage- and week-safe educational guides (type: "article") with companion links and CommonMark Markdown bodies.
  • Workouts: Structured movement bundles (type: "workout") with signed cover images and ordered exercises[] video steps.
  • Get content media: Shared endpoint (GET /api/v1/content/{content_id}/media) to resolve, switch rendition quality (1080p, 720p, 540p, 360p), or refresh expiring signed Cloud CDN URLs for any exercise or media-backed asset.

Integration architecture

Partner integrations follow a two-tier model so your integration key stays private on your server while heavy media streams directly from Bella’s global CDN (https://media.bellacoach.ai):

  1. Server-to-server catalogue fetch: Your backend authenticates to api.bellacoach.ai using Authorization: Bearer $BELLA_API_KEY to list or filter articles and workouts and retrieve full objects with pre-signed media URLs.
  2. Direct client rendering & playback: Your backend passes the returned Markdown body, signed cover_image_url, and signed https://media.bellacoach.ai/... video URLs down to your web or mobile client. Client apps render Markdown natively and pass signed URLs straight to <video>, AVPlayer, or ExoPlayer — never embedding $BELLA_API_KEY in client apps.

Endpoints

GroupMethodEndpointDescription
ArticlesGET/api/v1/content/articlesBrowse and filter articles by stage, safe week, category, or tag.
GET/api/v1/content/articles/metadataList article stages, week ranges, categories, and tags.
GET/api/v1/content/articles/{article_id}Retrieve The Article object with full Markdown body and related_content.
WorkoutsGET/api/v1/content/workoutsBrowse and filter workout bundles by category, level, body_focus, length, equipment, goal, or tag.
GET/api/v1/content/workouts/metadataList workout categories, difficulty levels, body focuses, duration brackets, equipment, goals, and tags.
GET/api/v1/content/workouts/{workout_id}Retrieve The Workout object with signed cover_image_url and ordered exercises[].
Shared mediaGET/api/v1/content/{content_id}/mediaGenerate a short-lived signed Cloud CDN URL (or 302 redirect) for video or audio playback.

Next steps

Last updated on