Changelog
What each version of this documentation added, and why none of them is a version you pin to.
The number beside the documentation title. It names a revision of this documentation and the additive changes behind it — it is not a version you select.
How to read these numbers
The base path is /v2, and it does not change between the entries below. Every minor version only adds — a new endpoint, a new field — and never changes or removes anything that already worked. So an integration built against v2.1 keeps working, untouched, on v2.2 and on every v2.x after it. That is what additive evolution means, and it is why there is no version header, no per-account pinning, and no way to request an earlier revision: there is one running API behind /v2, and an integration built from the v2.1 pages and one built from the v2.2 pages are both calling it.
So the use of a version below is to tell you whether a capability exists yet, and to give you a name for it when you contact us. A change that could break a working integration would ship as /v3 and would not appear on this page.
v2.7 (current)
Patients can be upserted in batches. POST /v2/users/{externalUserId}/patients/batch takes up to 1,000 patients per request, each with the same fields and rules as the single upsert. Each patient succeeds or fails on its own, and the response has one result per patient in request order. Batches have their own rate limit of 1 request a second per link (burst 2), separate from the provider limit, and a request body of up to 20 MB. See Patients.
A new error code. request_body_too_large when a batch request body is over 20 MB. See Errors.
v2.6
A second billing mode: usage billing. Twofold can set an organization up to be billed per provider, in arrears, instead of on a seat subscription. In that mode your server starts a seat when a linked provider should have Twofold — POST /v2/partner/users/{externalUserId}/seat/start, with a plan of monthly or annual and your groupExternalId — and ends it with POST …/seat/end. Starting grants FULL_ACCESS, ending drops to READ_ONLY, and there is no seat cap. See Seat usage billing.
The user row says which seat a provider holds. Every place a linked user is returned gains groupExternalId and seat (plan, startedAt, annualTermEndsAt). On a seat subscription both are always null.
GET /v2/partner/seats says which mode you are on. It gains billingMode and, on usage billing, seatsByPlan; seatsAllowed is null there because there is no cap.
Two error codes. not_available_in_billing_mode when an endpoint belongs to the other mode, and annual_term_active when a monthly seat is started for a provider inside a paid annual term. See Errors.
Nothing changes for an organization on a seat subscription: access-level, set-seats and the seat count keep working exactly as before, and the new fields carry null.
v2.5
You can see the moment a session ends. A new event, note.recording_ended, fires when the provider ends the recording, filling the gap between note.started and note.generated_successfully. See Webhooks.
A note's status moves at that same moment. It is recording while the provider is in the session and processing from the moment they end it until the note is generated. If you poll rather than consume webhooks, notes will reach processing earlier than they used to. No status value was added or removed.
v2.4
You can see a recording stop and start again. Two events join the webhook set: note.recording_paused when recording stops without the note being ended, and note.recording_resumed when it starts again. The paused event carries pauseReason — user when the provider chose to stop, platform when the device took the microphone away.
A resume only ever follows a pause, and a pause does not always get one: the provider can end the note from a paused state, or leave it and come back another day. Neither event changes the note or its content, so neither is a reason to re-fetch. Nothing about the existing events changed. See Webhooks.
v2.3
A provider's email can be prefilled for them when they link. The authorization request accepts an optional login_hint, and Twofold puts that address in the email field of the sign-up or sign-in page the provider lands on. It removes a retyping step from the linking flow and nothing else: the field stays editable, Twofold does not verify the address or look an account up by it, and the link still binds to whoever actually authenticates. See Authentication.
v2.2
A patient field you send becomes yours to keep. Any field included in a patient upsert — including one sent as null — is marked partner-managed on that patient: the provider can no longer edit it inside Twofold, and it stays that way permanently. Omitting the field from later upserts does not release it, and there is no endpoint that does.
Before this version there was no locking of any kind. A field written over the API was an ordinary patient field that a provider could edit afterwards, so your system and theirs could disagree about a value with nothing recording which was authoritative. Locking makes ownership explicit at the moment you write — which is also why the rule to send only what you intend to own for the life of the patient dates from here. See Concepts & identifiers.
v2.1
Templates. Everything that decides what a generated note contains became part of the integration: base templates authored on the Templates page of the console, the sectionExternalId you put on each section so note text can be routed by id rather than by a title a provider can rename, templates marked as assigned at link time, per-provider assignment over the API with PUT /v2/partner/users/{externalUserId}/templates, and template files that can be downloaded, reviewed and uploaded as JSON. See Concepts & identifiers.
v2.0
The Partner API in its current form. Breaking changes to API structure, endpoint layout and authentication flows.