True Care SystemTrue Care SystemDocumentation
Return to Website

TRUE CARE SYSTEM • API DOCUMENTATION

API Overview

Understand the API architecture, request lifecycle, authentication model, Provider scope, response conventions, and production integration responsibilities.

Purpose

Understand the API architecture, request lifecycle, authentication model, Provider scope, response conventions, and production integration responsibilities.

Restricted implementation detail

This guide documents the approved integration model without publishing production secrets, private endpoint inventories, internal database identifiers, or customer-specific validation rules.

Architecture

True Care System uses a Provider-scoped API layer between authenticated clients and the application database. Web and Mobile clients submit requests over HTTPS. The API authenticates the request, resolves Provider scope, evaluates role permissions, validates input, performs the requested operation, and records applicable audit evidence.

Standard Request Lifecycle

  1. Receive the HTTPS request.
  2. Validate authentication and session state.
  3. Resolve the authorized Provider and user context.
  4. Evaluate role and action permission.
  5. Validate route parameters, query parameters, and request body.
  6. Execute Provider-scoped business logic.
  7. Record required audit or PHI-access evidence.
  8. Return a normalized response and safe error information.

Common Headers

HeaderPurpose
AuthorizationSupplies the approved bearer or session credential.
Content-TypeNormally application/json for JSON request bodies.
AcceptIdentifies the expected response representation.
X-Request-IDCorrelation identifier for support and audit investigation.

Normalized Response Pattern

{
  "success": true,
  "message": "Request completed.",
  "data": {},
  "requestId": "example-request-id"
}

General Error Pattern

{
  "success": false,
  "message": "The request could not be completed.",
  "errorCode": "VALIDATION_ERROR",
  "details": [],
  "requestId": "example-request-id"
}

Production Readiness

  • Use HTTPS only.
  • Do not trust browser-supplied Provider identifiers without server authorization.
  • Validate all input.
  • Use least-privilege database access.
  • Record appropriate audit evidence.
  • Do not return secrets, password hashes, private tokens, or unrestricted PHI.
  • Run smoke, regression, integration, security, and HIPAA testing.