Users

Users belong to one or more organizations. Roles include developer, clinician, admin, and viewer.

The User Object

FieldTypeDescription
idstringUnique user ID with prefix usr_ (e.g. usr_8hq3zk)
emailstringPrimary email address used for authentication and notifications
namestringFull display name of the user
rolestringOne of: developer, clinician, admin, viewer
npinullablestring10-digit National Provider Identifier (clinicians only)
activebooleanWhether the user account is active. Deactivated users cannot authenticate
createdAtdatetimeISO 8601 UTC timestamp when the user was created

Endpoints

Returns all users in the authenticated organization.

Parameters

ParameterInTypeRequiredDescription
rolee.g. clinicianquerystringoptionalFilter by role (developer|clinician|admin|viewer)
limite.g. 50queryintegeroptionalMax records to return

Request

curl "https://api.healthcloud.ai/v1/users?role=clinician" \
  -H "Authorization: Bearer hc_test_sk_demo_live_xxxxxx"

Response

Response200
{
  "data": [
    {
      "id": "usr_8hq3zk",
      "email": "sarah.chen@stmercy.org",
      "name": "Dr. Sarah Chen",
      "role": "clinician",
      "npi": "1234567890",
      "active": true
    }
  ],
  "meta": { "total": 42, "cursor": "usr_9ar4al" }
}

Related Resources