Thrive AI Health
Api reference

List processed and in-flight lab results

Combines pending, processing, ready, and failed results in one paginated read so partners can render an at-a-glance lab history. Sort order is by `created_at` descending.

GET
/v1/users/{user_id}/labs

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

limit?Limit
Default25
Range1 <= value <= 200
offset?Offset
Default0
Range0 <= value
status?|

Optional exact-match filter on the lab lifecycle state.

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/labs"
{
  "data": [
    {
      "lab_result_id": "f0d3eac0-9599-4eef-977f-96a8777c2dd8",
      "status": "pending",
      "test_date": "2019-08-24",
      "lab_name": "string"
    }
  ],
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 0
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}