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.aiEndpoints
| Resource | Method | Endpoint | Reference |
|---|---|---|---|
| Onboarding | GET | /api/v1/onboarding/questions | List onboarding questions |
| Members | GET | /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 | |
| Threads | GET | /api/v1/members/{external_member_id}/threads | List threads |
GET | /api/v1/threads/{id} | Get a thread | |
POST | /api/v1/members/{external_member_id}/threads | Open a thread | |
| Thread Messages | POST | /api/v1/threads/{id}/messages | Send a message |
| Content | GET | /api/v1/content/articles | List articles |
GET | /api/v1/content/articles/metadata | Get articles metadata | |
GET | /api/v1/content/articles/{article_id} | Get an article | |
GET | /api/v1/content/workouts | List workouts | |
GET | /api/v1/content/workouts/metadata | Get workouts metadata | |
GET | /api/v1/content/workouts/{workout_id} | Get a workout | |
GET | /api/v1/content/{content_id}/media | Get 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:
| Prefix | Entity | Example | Description |
|---|---|---|---|
mem_ | Member | mem_8f3a1c9e4b2d7061a5c8e2f1 | Internal member ID. You can also address members by external_member_id. |
asst_ | Assistant | asst_4d9e2a7b1c8f3052e6a9c4b0 | Configured assistant persona. Configured in the dashboard. |
thr_ | Thread | thr_9c41f0b7a2d64e83b15c7f20 | Conversation thread between a member and an assistant. |
msg_ | Message | msg_7d02edd7fc430c94162cba02 | Single turn in a conversation thread. |
kno_ | Content | kno_7f1c9d2e4a8b | Article ID fetched via /api/v1/content/articles/{article_id}, or exercise video ID passed to /api/v1/content/{content_id}/media. |
wrk_ | Workout | wrk_9a4c1e2b7d8f0314a56c8e90 | Workout bundle ID fetched via /api/v1/content/workouts/{workout_id}. |
ik_ | Integration key | ik_3f9a2b1c8d4e | Public 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:
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Maximum number of records to return. |
offset | integer | 0 | Number 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