Skip to main content

Authentication

The MaxCare Public API uses Bearer token authentication with API keys. Every request must include two headers.

Required Headers

HeaderDescriptionExample
AuthorizationBearer token with your API keyBearer sk_live_abc123...
X-Organization-IdThe clinic organization you’re accessingorg_abc123

Example Request

curl -X GET "https://api.maxcare.ai/external/v1/patients" \
  -H "Authorization: Bearer sk_live_abc123..." \
  -H "X-Organization-Id: org_abc123"

Getting Your API Key

  1. Log in to the MaxCare dashboard
  2. Navigate to Settings > Marketplace Apps
  3. Select your app (or create a new one)
  4. Under API Keys, click Generate New Key
  5. Copy the key — it will only be shown once

Organization ID

The X-Organization-Id header identifies which clinic’s data you’re accessing. Your marketplace app must be installed by the clinic to access their data. You can verify your app’s access and see which organization you’re connected to using the /marketplace/me endpoint.

Error Responses

StatusCodeDescription
401unauthorizedMissing or invalid API key
403forbiddenValid key but insufficient scope for this endpoint
404not_foundResource doesn’t exist or isn’t accessible to your org