Twofold v2.7

Search pages, sections and endpoints.

    Open the console

    Glossary

    One word per thing — and the other words you will hear for the same thing.

    Environment

    One word per thing, used the same way everywhere in these docs. Where Twofold's product, this API or your own team is likely to use a different word for the same thing, the alias is listed — those aliases are the ones that cause the confusion worth naming.

    People

    Provider — the clinician who records sessions in Twofold. This is the word these docs use throughout.

    ⚠️ You will hear the same person called an end user, a clinician, a user, or a member of a practice. The API itself says users: the per-provider endpoints are /v2/users/{externalUserId}/…, and the token that reaches them is a user token. All of it means the provider.

    Patient — the person a provider records a session about. Twofold has no separate word for a client, spa guest or member; whatever your product calls them, they are a patient here. A patient belongs to one provider, so the same human seen by two providers is two patients.

    Member — someone from your organization with access to the partner console, granted by Twofold. Members mint keys and configure the integration. A member is not a provider, has no link, and consumes no seat. (Nothing stops one person being both.)

    Your organization

    Partner — your organization as Twofold models it. One record per environment, so your staging and production partners are separate, each with its own id.

    partnerId — the id of that record (prtn_…). It is also your OAuth client_id and the value of the Twofold-Client-Id header. Not a secret.

    Partner API key — the long-lived server-to-server credential (twofold_key_…). Shown once at creation. Secret.

    Link — one provider's connection between your system and their Twofold account, created when they consent. Everything about that provider — their access level, their seat, your ability to read their notes — hangs off the link, and revoking it ends all of it.

    Seat — the unit your contract is billed in. On a seat subscription, one provider at FULL_ACCESS occupies one; see Access & seats. On usage billing, a seat is a term you start and end per provider; see Seat usage billing.

    The work

    Note — one recorded session and the document generated from it. Externally this is always a note.

    Twofold's own product and internals call it a visit, and you may hear that from us in conversation. It never appears in the API.

    Section — one block of a note: a title and plain text. A note's body is its sections, in template order.

    sectionExternalId — your identifier on a template section, which travels with that section into every note generated from the template and into every clone a provider makes of it. It is what lets you route a note's parts into your own product without matching on titles a provider can rename.

    Template — the structure a note is generated into: an ordered list of sections with instructions. Base templates are the ones you write for your integration, on the Templates page of the partner console; a provider may clone one and adjust it, and clones keep their external section ids. A base template marked assigned at link time goes to every provider automatically when they link.

    Transcript — the text of what was captured, fetched separately from the note. A provider can delete a transcript and keep the note.

    Pronouns — a patient field, from Twofold's fixed set (She/Her, He/Him, They/Them) when set over the API. Providers can create their own values in the app, so a patient may come back carrying one you cannot write.

    Ways a note gets made

    A note does not have to come from a recorded conversation. Twofold supports three ways of capturing one, and all of them produce ordinary notes — same webhooks, same endpoints, same shape. The note payload does not say which one was used; the one place it shows is the transcript, which comes back as no_audio for a typed-text note.

    CaptureWhat happens
    Conversation captureThe provider records the session with the patient present. This is the common case, and the one the launch flow is built around.
    Dictated summaryNo patient audio. The provider talks through the session themselves afterwards, and the note is generated from that dictation.
    Typed textThe provider types or pastes their own notes, and Twofold turns them into the structured note. Often called text to note.

    A conversation can also be captured by uploading an audio file the provider recorded elsewhere, rather than recording live in Twofold. It produces the same kind of note.

    Environments and credentials

    Production and staging are fully separate environments — separate databases, separate Twofold accounts, separate partners, separate credentials. Credentials are tagged with the environment they belong to and rejected by the other one.

    Access token (twofold_access_…) — short-lived, reaches one provider's data. Refresh token (twofold_refresh_…) — long-lived, exchanged for a new pair; rotated on every use. Both belong to a link.

    Prod-access gate — the per-partner switch that keeps production closed until you have validated on staging. While it is closed, production calls fail with partner_not_activated.

    Webhooks

    Event — an identifier-only notification that something happened to a note or a link. Never carries note content.

    Sealed payload — the delivery body, encrypted so it can only be read with a key fetched from Twofold. Verification is not a step you can skip: without the key there is nothing to read. See Webhooks.