For developers

IAL2 identity verification, one parameter.

To verify a patient's identity at NIST IAL2 before retrieving their records, add flexpa_ial2_mode=true to your Flexpa authorization request. The patient verifies with CLEAR, ID.me or Persona on Flexpa's pages, consents, and Flexpa searches TEFCA networks for matching facilities automatically. Your app gets a patient access token and reads the records through the same FHIR API as every other Flexpa source.

Updated 2026-11-22

How it works

  1. Your app
    flexpa_ial2_mode=true
  2. CLEAR, ID.me or Persona
    IAL2
  3. TEFCA search
  4. FHIR records
Flexpa runs verification and the TEFCA search; your app receives a patient access token.

Add it to your authorization request

flexpa_external_id, your identifier for the patient, is required on every authorization request.

Authorization URLtext
https://api.flexpa.com/oauth/authorize
  ?client_id=pk_test_...
  &redirect_uri=https://example.com/callback
  &response_type=code
  &code_challenge=$CODE_CHALLENGE
  &code_challenge_method=S256
  &scope=launch/patient
  &flexpa_external_id=usr_1234
  &flexpa_ial2_mode=true

What the patient does

  • Chooses an identity provider. Flexpa randomizes the order of CLEAR, ID.me and Persona to avoid selection bias.
  • Verifies with a government photo ID and a selfie. A Social Security Number alone does not meet IAL2.
  • Reviews a TEFCA consent screen that explains nationwide access and names the identity provider.
  • Sees the facilities found and can add more sources, such as a health plan, by search.

Good to know

  • flexpa_ial2_mode cannot be combined with flexpa_endpoint_id or the demographic hints.
  • The patient authorization type is IAL2, and identityProvider records CLEAR, IDME or PERSONA.
  • Pass include=tefcaOutcomes to the Consent API for a summary of the most recent TEFCA sync.
  • IAL2 verification is completed by the patient whose records are requested. There is no guardian or proxy path.

Questions

How do I verify a patient's identity at IAL2 before retrieving their health records in my app?

Add flexpa_ial2_mode=true to the Flexpa authorization request. The patient verifies their identity through CLEAR, ID.me or Persona on Flexpa's pages and authorizes access, then Flexpa retrieves their records through TEFCA. Every Flexpa platform license includes IAL2 verifications, starting at 1,000 on Startup.

Which identity providers does Flexpa support?

CLEAR, ID.me and Persona, all meeting NIST IAL2. Flexpa randomizes the order shown to patients.

What does a patient need to complete IAL2?

A government-issued photo ID, such as a driver’s license or passport, and a selfie for biometric comparison.

Does Flexpa store the patient’s selfie or ID images?

No. Flexpa's privacy notice says it receives the verification result and the identity attributes it needs, and does not collect or store the raw selfie or biometric template.

Can a parent verify on behalf of a child?

No. IAL2 verification is completed by the patient whose records are requested, and there is no guardian or proxy path through it.

More

Verified patients. Records in minutes.

See the IAL2 flow in the demo.

Try the interactive demo