Thrive AI Health
Api reference

Register a native health platform (Apple Health / Health Connect)

Called after the partner's app obtains OS-level health permissions. Creates the user link with the underlying health-data service and triggers the historical backfill. Partners poll `GET /v1/users/{user_id}/devices/{provider_slug}/status` to track backfill completion.

POST
/v1/users/{user_id}/devices/actions/register

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/devices/actions/register" \  -H "Content-Type: application/json" \  -d '{    "platform": "apple_health_kit"  }'
{
  "data": {
    "provider_slug": "string",
    "health_data_user_id": "string",
    "backfill_status": "pending"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}