Skip to Content
Integration GuidesContent Catalogue

Content catalogue

Bella organises articles and workouts into dedicated collection routes under /api/v1/content/*, with typed list, metadata, and get by ID endpoints for each resource plus one shared Cloud CDN media endpoint (/api/v1/content/{content_id}/media):

  1. Articles (/api/v1/content/articles*): Stage- and week-safe educational guides that power assistant citations and your in-app wellness library.
  2. Workouts (/api/v1/content/workouts*): Structured sessions with signed cover images and ordered exercises[] video streams (1080p, 720p, 540p, 360p) delivered via Cloud CDN (https://media.bellacoach.ai).

You can integrate the catalogue into your product in three ways:

  1. Resolve citations: Fetch articles cited in assistant replies via /api/v1/content/articles/{article_id} to display full guides in your app.
  2. Resource library: Build a stage- and week-filtered wellness library using /api/v1/content/articles.
  3. Workout & video player: Filter /api/v1/content/workouts, fetch full bundles via /api/v1/content/workouts/{workout_id}, and stream each step in exercises[] directly from signed Cloud CDN URLs.

Integration architecture & security boundary

Always keep $BELLA_API_KEY on your backend server. Your backend fetches JSON metadata and signed Cloud CDN URLs from api.bellacoach.ai, and your mobile or web app streams images and video directly from media.bellacoach.ai using those time-limited URLs (2-hour TTL):

App session requestJSON + signed CDN URLsDirect video & image stream(?Expires=...&Signature=...)Web / iOS / Android AppYour Backend($BELLA_API_KEY)Bella API(api.bellacoach.ai)Bella Cloud CDN(media.bellacoach.ai)

Life stages and safe weeks

Every item in the catalogue belongs to a life stage and specifies a safe week range:

StageFocus areaSafe week range
generalFunctional movement, strength, nutrition, and recovery.All
preconceptionPregnancy preparation, cycle tracking, and conditioning.All
pregnancyTrimester-specific movement adaptations and symptom comfort.Weeks 1 to 42
postpartumRecovery, core restoration, and returning to higher intensity.Weeks 1 to 157
perimenopauseStrength training, joint health, and hormonal symptom support.All

Safe week filtering

The catalogue uses an integer range from 1 to 157 to represent gestational and postpartum progression.

When you pass week as a query parameter (e.g. GET /api/v1/content/articles?stage=pregnancy&week=24), the endpoint filters articles where min_week <= 24 <= max_week. This ensures members only see guidance safe for their milestone.


Pattern 1: Resolving citations from assistant replies

When the assistant references curated content in its reply, it cites the resource using its permanent public identifier.

To display full details (such as the Markdown body, summary, tags, or related articles) to the member, call GET /api/v1/content/articles/{article_id}:

curl -X GET "https://api.bellacoach.ai/api/v1/content/articles/kno_7f1c9d2e4a8b" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Pattern 2: Building a filtered resource library

You can use Bella’s content catalogue to power a native wellness library in your application.

Step 1: Inspect catalogue metadata

Before querying articles, call GET /api/v1/content/articles/metadata to retrieve available stages, content counts, active week ranges, and unique taxonomy tags:

curl -X GET "https://api.bellacoach.ai/api/v1/content/articles/metadata" \ -H "Authorization: Bearer $BELLA_API_KEY"

Example response:

{ "total_count": 184, "stages": [ { "id": "general", "label": "General Wellness", "count": 32, "weeks": null }, { "id": "pregnancy", "label": "Pregnancy", "count": 68, "weeks": { "min_week": 1, "max_week": 42 } }, { "id": "postpartum", "label": "Postpartum", "count": 45, "weeks": { "min_week": 1, "max_week": 157 } } ], "tags": ["core", "mobility", "nutrition", "pelvic-floor", "strength"] }

Step 2: Query articles with filters and pagination

Query articles using GET /api/v1/content/articles. Filter by stage, safe week, category, and tag, using limit and offset for pagination:

curl -X GET "https://api.bellacoach.ai/api/v1/content/articles?stage=pregnancy&week=24&tag=pelvic-floor&limit=10&offset=0" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Pattern 3: Integrating workouts & streaming exercise videos

Every workout bundle groups ordered exercise videos. Both the workout’s cover_image_url and every exercise’s default 720p stream url arrive pre-signed with a 2-hour TTL (expires_at), so your player can start playback immediately without extra round-trips.

Step 1: Discover workout filter facets & list workouts

Fetch filter counts from GET /api/v1/content/workouts/metadata (categories, levels, body_focuses, lengths, equipment, goals, tags), then query GET /api/v1/content/workouts:

curl -X GET "https://api.bellacoach.ai/api/v1/content/workouts?category=Strength+Training&level=Beginner&equipment=Yoga+Mat&limit=10" \ -H "Authorization: Bearer $BELLA_API_KEY"

Step 2: Fetch the workout bundle & start playback

Call GET /api/v1/content/workouts/{workout_id}. Render cover_image_url as the video poster or header artwork, and pass workout.exercises[0].url directly to your video player.

Step 3: Switch video quality or refresh expired URLs

When the member switches resolution (1080p, 720p, 540p, 360p), or when playback fails with HTTP 403 because expires_at has elapsed, request a fresh signed URL from GET /api/v1/content/{content_id}/media:

# Request a fresh 540p signed Cloud CDN URL curl -X GET "https://api.bellacoach.ai/api/v1/content/kno_d3f2ee150f75624548a42cea/media?quality=540p" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Client integration checklist

Key rules for smooth web & mobile media playback:

  • Never expose $BELLA_API_KEY on devices: Fetch workouts and signed URLs through your backend, then hand signed https://media.bellacoach.ai/... URLs to the client.
  • Do not modify signed URLs: Keep the exact ?Expires=...&KeyName=...&Signature=... query parameters intact and do not send an Authorization header to media.bellacoach.ai.
  • Respect expires_at (2-hour TTL): Re-fetch /api/v1/content/{content_id}/media on playback error or before resuming a stale paused session.

Next steps

Last updated on