Skip to Content
API ReferenceOverview

API reference

The Bella API lets you integrate conversational health and fitness coaching into your app.

All requests use HTTPS from a single base URL:

https://api.bellacoach.ai

Endpoints

ResourceMethodEndpointReference
OnboardingGET/api/v1/onboarding/questionsList onboarding questions
MembersGET/api/v1/members/{external_member_id}Get a member
PUT/api/v1/members/{external_member_id}Upsert a member
DELETE/api/v1/members/{external_member_id}Delete a member
ThreadsGET/api/v1/members/{external_member_id}/threadsList threads
GET/api/v1/threads/{id}Get a thread
POST/api/v1/members/{external_member_id}/threadsOpen a thread
Thread MessagesPOST/api/v1/threads/{id}/messagesSend a message
ContentGET/api/v1/content/articlesList articles
GET/api/v1/content/articles/metadataGet articles metadata
GET/api/v1/content/articles/{article_id}Get an article
GET/api/v1/content/workoutsList workouts
GET/api/v1/content/workouts/metadataGet workouts metadata
GET/api/v1/content/workouts/{workout_id}Get a workout
GET/api/v1/content/{content_id}/mediaGet content media

Authentication

Pass your integration key in the Authorization header:

Authorization: Bearer bella_sk_live_...

See the Authentication guide for details on rotation and key management.


Prefixed public identifiers

Bella uses typed, prefixed identifiers across resources:

PrefixEntityExampleDescription
mem_Membermem_8f3a1c9e4b2d7061a5c8e2f1Internal member ID. You can also address members by external_member_id.
asst_Assistantasst_4d9e2a7b1c8f3052e6a9c4b0Configured assistant persona. Configured in the dashboard.
thr_Threadthr_9c41f0b7a2d64e83b15c7f20Conversation thread between a member and an assistant.
msg_Messagemsg_7d02edd7fc430c94162cba02Single turn in a conversation thread.
kno_Contentkno_7f1c9d2e4a8bArticle ID fetched via /api/v1/content/articles/{article_id}, or exercise video ID passed to /api/v1/content/{content_id}/media.
wrk_Workoutwrk_9a4c1e2b7d8f0314a56c8e90Workout bundle ID fetched via /api/v1/content/workouts/{workout_id}.
ik_Integration keyik_3f9a2b1c8d4ePublic key handle. Safe to quote in logs and audit records.

Pagination

List endpoints (such as GET /api/v1/content/articles or /api/v1/content/workouts) support limit and offset query parameters:

ParameterTypeDefaultDescription
limitinteger20Maximum number of records to return.
offsetinteger0Number of records to skip before returning results.

Errors

Failed requests return standard HTTP error codes (401, 404, 409, 422, 503) with a JSON payload:

{ "detail": "No such thread." }

See the Errors and status codes guide for complete definitions and retry strategies.


Resources

Last updated on