Thrive AI Health
Api reference

List health actions for a user

Paginated list of scheduled health actions. Filter by `status` and/or a `start_date`/`end_date` date window. `sort_by` defaults to `scheduled_at` ascending — typical partner usage is `sort_by=scheduled_at&sort_order=asc` for the upcoming-actions feed.

GET
/v1/users/{user_id}/health-actions

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

Query Parameters

status?|null
start_date?|null
end_date?|null
limit?Limit
Default25
Range1 <= value <= 100
offset?Offset
Default0
Range0 <= value
sort_by?|null
sort_order?|null

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/health-actions"
{
  "data": [
    {
      "health_action_id": "eccd4d38-9aca-457f-af38-f6997b7f00d0",
      "title": "string",
      "description": "string",
      "status": "pending",
      "scheduled_at": "2019-08-24T14:15:22Z",
      "execution_options": {}
    }
  ],
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 0
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}