Register new healthcare provider or link existing provider to partner organization
| Scenario | Condition | Actions Taken | Response |
|---|---|---|---|
| New User | The provider does not exist in Suki. | • Creates a new organization • Links your partner account to the organization • Creates a new user with the provided details | 201 Created |
| Existing User, New Link | The provider exists but is not yet linked to your partner account. | • Verifies the user and organization details • Links your partner account to the existing organization | 201 Created |
| Existing User, Already Linked | The provider and organization are already linked to your partner account. | • Detects the existing link | 409 Conflict |
RegistrationRequest
Request body for the /auth/register endpoint
Unique identifier for the partner. This will be shared securely by Suki to the partner through a separate partner registration process.
"your-partner-id"
JWT token issued by trusted authorization server. The token must include Provider Email.
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
Name of the provider.
"Dr. John Smith"
Health system or organization to which the provider belongs.
"org-123"
Optional - Unique identifier for the provider. This is required for Bearer type partners only and will be ignored for other partner types. This must match a pre-defined expression.
"provider-123"
Optional - Medical specialty of the provider. Defaults to FAMILY_MEDICINE if not provided.
"CARDIOLOGY"