OnePath Connect
OnePath Connect
OnePath Connect Documentation
Error ReferenceFAQSecurity Disclosure
Support

Error Reference

Every error code from the OnePath Connect API, explained.

Error Response Format

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Human-readable description",
    "details": []
  }
}

Error Codes

Authentication Errors (401)

CodeCauseResolution
INVALID_API_KEYAPI key doesn't exist or was revokedCheck your key in the Partner Portal
EXPIRED_API_KEYKey has passed its expiry dateRotate your key in the Partner Portal
INVALID_CONSENT_TOKENJWT signature invalid or partner claim mismatchVerify your private key and partner ID
EXPIRED_CONSENT_TOKENJWT exp claim is in the pastGenerate a fresh consent token
MISSING_CONSENT_TOKENX-Consent-Assertion header absentInclude the consent token header

Authorization Errors (403)

CodeCauseResolution
INSUFFICIENT_SCOPEConsent token scope doesn't cover this operationRe-generate token with required scope
PARTNER_SUSPENDEDPartner account is suspendedContact partners@onepath.health

Not Found (404)

CodeCauseResolution
USER_NOT_FOUNDNo user with this ID exists for your partnerVerify the userId; call /onboard if new

Conflict (409)

CodeCauseResolution
USER_ALREADY_EXISTSexternalId already onboardedUse the existing user's onepath userId

Validation Errors (422)

CodeCauseResolution
VALIDATION_ERROROne or more fields failed validationCheck details array for field-level errors
INVALID_FHIR_RESOURCEObservation doesn't conform to FHIR R4Validate against the FHIR R4 spec
UNSUPPORTED_CODE_SYSTEMCode system not in LOINC/SNOMED CTUse supported terminology systems

Rate Limit (429)

CodeCauseResolution
RATE_LIMIT_EXCEEDEDOver 100 req/min in productionRespect Retry-After header; implement backoff

Server Errors (5xx)

Safe to retry. Use exponential backoff.

Python SDK

Official Python client for OnePath Connect.

FAQ

Frequently asked questions about OnePath Connect.

On this page

Error Response FormatError CodesAuthentication Errors (401)Authorization Errors (403)Not Found (404)Conflict (409)Validation Errors (422)Rate Limit (429)Server Errors (5xx)