Thrive AI Health
Api reference

Materialize a recommendation as a program focus action

Accepts one item from a session-analysis `recommended_focus_actions` array and materializes it as a program focus action. The server assigns `source`, `program`, `category`, and `scheduled_at` based on the underlying recommendation — clients do not pass raw recommendation JSON. Returns the new `focus_action_id`, queryable via `GET /v1/users/{user_id}/health-actions/{focus_action_id}`.

POST
/v1/users/{user_id}/recommended-actions/{recommendation_id}/accept

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
recommendation_id*Recommendation 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 POST "https://loading/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/recommended-actions/497f6eca-6276-4993-bfeb-53cbbbba6f08/accept"
{
  "data": {
    "recommendation_id": "ddb15214-abd6-4c83-931f-eaff12e7f260",
    "focus_action_id": "f4d6db9a-2fa9-44d2-959c-8030cdb0c487",
    "accepted_at": "2019-08-24T14:15:22Z"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}