Skip to Content

Get a workout

GET/api/v1/content/workouts/{workout_id}

Retrieves a single workout bundle by ID, returning signed cover artwork and ordered exercise videos pre-signed for Cloud CDN playback.

Path parameters

workout_idstringrequired

Permanent workout bundle identifier.

Returns

HTTP Status Codes

200 OKWorkoutDetailoptional

Complete Workout object including signed cover_image_url, expires_at, and ordered exercises[].

401 UnauthorizedErroroptional

The integration key is missing, invalid, or revoked.

404 Not FoundErroroptional

No workout found with this identifier.

Playback & quality switching

  • Pre-signed streams: Every entry in exercises[] comes with a pre-signed 720p Cloud CDN stream URL (url) valid for 2 hours (expires_at), ready for <video>, AVPlayer, or ExoPlayer.
  • Adaptive resolution & refresh: Pass an exercise step’s content_id to GET /api/v1/content/{content_id}/media to switch between 1080p, 720p, 540p, and 360p or mint a fresh signed URL after expires_at.
curl -X GET "https://api.bellacoach.ai/api/v1/content/workouts/wrk_10731cb16a3baf020dd17d0c" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Response (200 OK)

{ "id": "wrk_10731cb16a3baf020dd17d0c", "type": "workout", "title": "Clarity Flow", "slug": "clarity-flow-509a36", "category": "Yoga", "level": "All Levels", "length": "16-20 minutes", "body_focus": "Full Body", "goals": ["Improve Flexibility"], "equipment": ["Yoga Mat"], "equipment_details": ["Yoga Mat"], "tags": ["yoga", "mindfulness"], "summary": "20-minute restorative vinyasa sequence for focus and spinal mobility.", "cover_image_id": "img_4821", "cover_image_url": "https://media.bellacoach.ai/...", "expires_at": "2026-11-16T11:40:00Z", "exercise_count": 8, "exercises": [ { "sort_value": 1, "content_id": "kno_d3f2ee150f75624548a42cea", "title": "Plié Breath", "slug": "plie-breath", "summary": "Stand wide, inhale overhead, and soften hips on exhale.", "duration_seconds": 30, "media_type": "video", "default_quality": "720p", "available_qualities": ["1080p", "720p", "540p", "360p"], "media_url": "https://api.bellacoach.ai/api/v1/content/kno_d3f2ee150f75624548a42cea/media", "url": "https://media.bellacoach.ai/content/kno_d3f2ee150f75624548a42cea/720p.mp4?..." } ] }

Next steps

Last updated on