Thrive AI Health
Api reference

Create a partner-linked user

Register a partner-scoped `user_id` (UUID) so subsequent member-scoped calls can be routed against it. `user_id` is the only required field; `first_name`, `last_name`, and `email` are optional seed values. The server keeps an internal identifier but never exposes it — the partner-supplied `user_id` is the canonical handle and is reused in every `/v1/users/{user_id}/*` path going forward.

POST
/v1/users
org-id<token>

Tenant identifier resolved by Kong from the authenticated taih-tenant-key. Required on partner-scoped routes (e.g. POST /v1/users, POST /v1/auth/token, /v1/admin/*). In production Kong injects this header after validating the tenant key; local-dev callers must set it themselves.

In: header

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" \  -H "Content-Type: application/json" \  -d '{    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  }'
{
  "data": {
    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}