API Reference

Authentication

Every request to the eligibility.dev API requires two headers: a workspace API key and a clinic client ID.

Required headers

HeaderValueDescription
AuthorizationBearer <api_key>Your workspace API key. Generated in Account → API keys.
X-Client-Id<uuid>The UUID of the clinic (client) record making the request.

Example

curl -X POST https://eligibility.dev/api/eligibility/check \
  -H "Authorization: Bearer sk_live_your_workspace_api_key" \
  -H "X-Client-Id: 7f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

Auth errors

CodeHTTPCause
UNAUTHORIZED401Missing or invalid Bearer token
CLIENT_ID_REQUIRED400X-Client-Id header is missing
CLIENT_ID_INVALID400X-Client-Id is not a valid UUID
CLIENT_NOT_FOUND404No clinic record for this UUID
CLIENT_INACTIVE404Clinic exists but is deactivated
WORKSPACE_MISMATCH409Client belongs to a different workspace than the API key

See the full error codes reference for all possible codes.