Thrive AI Health
Api reference

Retrieve the member's current program

Stable partner contract for the member's active coaching plan. Returns one program (the active one) with focus categories, goals, and an AI-generated analysis insight. Partners use this to render the program home screen.

GET
/v1/users/{user_id}/program

Authorization

MemberBearer
AuthorizationBearer <token>

Member-scoped JWT minted by POST /v1/auth/token. Required on every /v1/users/{user_id}/... route; the token's sub claim must match the path user_id.

In: header

Path Parameters

user_id*User Id
Formatuuid

Header Parameters

org-id?string|null
x-user-id?string|null
x-request-id?string|null
traceparent?string|null
Idempotency-Key?|null

Response Body

application/json

application/json

curl -X GET "https://loading/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/program"
{
  "data": {
    "program_id": "string",
    "name": "string",
    "description": "string",
    "analysis_insight": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "active": true,
    "focus_categories": [
      {
        "id": "string",
        "rationale": "string",
        "objectives": "string",
        "rank": 1,
        "program_category": {
          "id": "string",
          "name": "string",
          "category_id": "string",
          "description": "string",
          "domain_id": "string"
        }
      }
    ],
    "goals": [
      {
        "goal_id": "string",
        "category_ref": "string",
        "category_id": "string",
        "domain_id": "string",
        "description": "string",
        "targets": [
          {
            "id": "string",
            "description": "string",
            "frequency": "string",
            "value": "string",
            "vital_metric": "string"
          }
        ],
        "phase_id": "string",
        "phase": {
          "id": "string",
          "name": "string",
          "description": "string",
          "order": 0
        }
      }
    ]
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}