Docs / Reference
API access and webhooks
The Affirm Core API lets a partner’s system, or your own, do what a coordinator does in the app: create cases, add documents, and read the checklist. The full reference is on the developers page.
What it covers
- Read the organization’s locations.
- Create and update cases, and mark them submitted.
- Upload documents and start extraction.
- Read a case’s checklist, the findings behind it, and its activity.
- Record the decision.
Requesting a key
Keys are issued by AffirmDME, for one organization at a time. An organization admin requests one under Settings → Integrations → API access → Request a key:
- Partner or system that will hold the key — your ERP vendor, your billing company, or an in-house integration.
- What it will do — a sentence on the use. No patient details.
- Read and write, or Read only.
- Contact for the one-time key link — the email of the person who will install the key.
Send request sends it to AffirmDME. The request appears on the same card with its status; a declined request shows the reason. When a key is issued or revoked, the organization’s admins are told by email. Your organization’s BAA must be signed, and where a partner will hold the key, the partner’s agreement must be in place.
How the secret is handed over
The key’s secret never appears in an email or on the Settings page. The contact you named receives a link. Opening it shows the key once. The link works a single time and expires 24 hours after it is issued. If it expires or was opened by the wrong person, revoke the key and request another.
Seeing and revoking keys
Every key issued for the organization is listed on the API access card with its name, prefix, scopes, rate limit, and when it was issued and last used. Revoke stops the holder’s requests at once.
Scopes and limits
- read — cases, documents, checklist, findings, activity.
- write — create and update cases, mark them submitted, add documents.
- Rate limit — per key, per minute. A response over the limit is a 429 with
Retry-After. - Attribution — every write appears in the case’s Activity trail as the key that made it.
A key works only inside the organization it was issued for.
Webhooks
Settings → Integrations → Webhooks → Add endpoint registers an HTTPS address to be told when something changes:
- Case status changed
- Checklist rebuilt
- Decision recorded
The endpoint’s signing secret is shown once, when you add it. Each delivery is a signed POST (X-AffirmDME-Signature); the developers page has the verification code. A failed delivery is retried after 1, 5 and 15 minutes. Payloads carry case identifiers and statuses, never patient details.
Each endpoint has a test send and a delivery log showing every attempt and its result.