Get a patient insurance policy

GEThttps://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/patient_insurance/{id}

Requires the patients:read scope. See keys and scopes.

Try it

10 requests a minute

Kept in this tab only (sessionStorage), never saved to disk and never put in the code sample. It is sent to CuspFlow's own proxy on this domain, not to a third party.

Confirm the clinic id (optional)

Fill this in and the request is refused unless the key really belongs to that clinic. It guards against pasting the wrong key, not against an attacker: the clinic is already in the key and anyone holding it can read it from whoami.

Path parameters

Query parameters (1)
curl --request GET \
  --url 'https://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/patient_insurance/{id}' \
  --header 'Authorization: Bearer '"$CUSPFLOW_API_KEY" \
  --header 'Accept: application/json'
Paste a key to run this.

Path parameters

id
string<uuid>
required
—

Query parameters

fields
string
—

Responses

200The row, under `data`.
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "clinic_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "patient_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "insurance_carrier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "provider_name": "Example",
    "policy_number": "string",
    "group_number": "string",
    "holder_name": "Example",
    "...": "…"
  }
}
401Missing, malformed, revoked or expired key.
403Key lacks the `patients:read` scope, or the clinic is read-only.
404No such row IN THIS CLINIC. A row belonging to another clinic also returns 404, never 403, so the API never confirms that an id exists elsewhere.
429Rate limited. See Retry-After.

Every error is application/problem+json and carries a code you can branch on. The full catalogue is in error codes.