Skip to content
Docs menu

Insurance

Patient coverage records. PHI on subscriber fields encrypts at rest.

Plans: PPO, HMO, EPO, POS, MEDICARE, MEDICAID, SELF_PAY, OTHER. Relations: SELF, SPOUSE, CHILD, OTHER.

POST/api/insuranceBearer token

Add an insurance profile

Attach a new coverage record to a contact. Patient may have multiple — mark one isPrimary.

Required scopes:contacts.write

Request body

NameTypeDescription
contactIdrequiredstringPatient.
payerNamerequiredstringInsurance payer.
planTyperequiredstringPlan type.
memberIdrequiredstringSubscriber's member id.
groupNumberstringGroup number.
subscriberFirstNamestringSubscriber given name.
subscriberLastNamestringSubscriber family name.
subscriberDobstringSubscriber DOB.
relationToSubscriberstringPatient's relation to subscriber.
cardFrontUrlstringURL to a stored image of the card front.
cardBackUrlstringURL to a stored image of the card back.
effectiveDatestringCoverage start (ISO 8601).
terminationDatestringCoverage end (ISO 8601).
isPrimarybooleanMark as the patient's primary plan.

Request body

JSON
{ "contactId": "cln…", "payerName": "Aetna", "planType": "PPO", "memberId": "W123456789", "isPrimary": true }

Responses

  • 201 CreatedCreated.
    example
    {
      "id": "ins_4k9d2x…",
      "contactId": "cln1f8s7p…",
      "payerName": "Aetna",
      "planType": "PPO",
      "memberId": "W123456789",
      "groupNumber": "00012345",
      "subscriberFirstName": "Avery",
      "subscriberLastName": "Liu",
      "relationToSubscriber": "SELF",
      "effectiveDate": "2026-01-01T00:00:00Z",
      "isPrimary": true,
      "createdAt": "2026-05-18T14:00:00Z"
    }

Code samples

Shell
curl -X POST https://app.contactfollowup.com/api/insurance \
  -H "Authorization: Bearer $HEARTHNOTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "contactId": "cln…", "payerName": "Aetna", "planType": "PPO", "memberId": "W123456789", "isPrimary": true }'
GET/api/insuranceBearer token

List a contact's insurance profiles

contactId is required.

Required scopes:contacts.read

Query parameters

NameTypeDescription
contactIdrequiredstringContact id.

Responses

  • 200 OKProfiles.
    example
    { "profiles": [{
      "id": "ins_4k9d2x…",
      "contactId": "cln1f8s7p…",
      "payerName": "Aetna",
      "planType": "PPO",
      "memberId": "W123456789",
      "groupNumber": "00012345",
      "subscriberFirstName": "Avery",
      "subscriberLastName": "Liu",
      "relationToSubscriber": "SELF",
      "effectiveDate": "2026-01-01T00:00:00Z",
      "isPrimary": true,
      "createdAt": "2026-05-18T14:00:00Z"
    }] }
  • 400 Bad RequestMissing contactId.

Code samples

Shell
curl -X GET https://app.contactfollowup.com/api/insurance \
  -H "Authorization: Bearer $HEARTHNOTE_TOKEN" \
  -H "Content-Type: application/json"