Twofold v2.7

Search pages, sections and endpoints.

    Open the console

    Access & seats

    How a linked provider gets access to Twofold, and how the seats that pay for it are managed.

    Environment

    This page describes the seat subscription — one of the two billing modes. If Twofold has set your organization up on usage billing, seats work differently: you start and end a seat per provider and are invoiced monthly for what was in use, as described on Seat usage billing. billingMode on GET /v2/partner/seats tells you which one you are on.

    Linking a provider does not give them Twofold. Access is a second, deliberate step you take — and it is the step that costs a seat.

    The two access levels

    LevelThe provider canCosts a seat
    READ_ONLYRead the notes already in their account. Not record new ones, once their Twofold trial has ended.No
    FULL_ACCESSEverything Twofold does, paid for by your organization.Yes, one

    Every link starts at READ_ONLY. The consent screen never grants access — if it did, any provider who clicked through would spend one of your seats. Raising someone to FULL_ACCESS is always an explicit act by you, through the API or the console.

    bash
    curl -X PUT https://partner-api.trytwofold.com/v2/partner/users/provider-1042/access-level \
      -H "Authorization: Bearer twofold_key_prod_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56" \
      -H "Content-Type: application/json" \
      -d '{"level": "FULL_ACCESS"}'
    bash
    curl -X PUT https://partner-api.staging.trytwofold.com/v2/partner/users/provider-1042/access-level \
      -H "Authorization: Bearer twofold_key_staging_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56" \
      -H "Content-Type: application/json" \
      -d '{"level": "FULL_ACCESS"}'

    Lowering someone back to READ_ONLY returns their seat immediately, which is how you hand a seat to a different provider. Every change is recorded in an access-level history Twofold keeps for support and billing questions.

    What a READ_ONLY provider sees

    They can sign in and read, but once nothing else entitles them to record, Twofold stops them at the moment they try and points them at your activation URL — the page on your side where they subscribe, or ask their practice to. It is described in full below.

    Two things soften the edge — and they are why READ_ONLY does not necessarily mean "blocked today":

    • A provider new to Twofold still gets the standard one-week trial, exactly like any other new user. So a freshly linked provider can work immediately, and the activation prompt appears when the trial ends rather than on day one.
    • A provider who already pays for Twofold personally keeps their own subscription when they link. They are not blocked, and nothing is cancelled — while linked they simply cannot start a new subscription or move to annual billing. Their External Link page in Twofold settings shows that you manage their Twofold access, and it offers no controls for the personal subscription while the link is in place — the plans page is hidden from their settings entirely while they are linked. If someone is paying you and Twofold at once, they can ask Twofold support to cancel or pause the personal subscription, or disconnect from you first and then manage it themselves. Twofold also watches for this case and reaches out.

    Your activation URL

    The page on your side where a provider subscribes, or asks their practice to. Set it on the Settings page of the console — it is optional, but without it the two prompts below can only tell the provider to talk to you, which is a dead end inside their working day.

    It is reached from two places in Twofold, both opening it in a new tab:

    • The External Link page in a linked provider's Twofold settings — the page that tells them you manage their access — as an "Activate with {your name}" button. Shown only while they are READ_ONLY.
    • The dialog that stops a READ_ONLY provider the moment they try to record. Without an activation URL this button sends them to that External Link page instead, which explains the situation but cannot resolve it.

    ⚠️ Twofold sends nothing to this URL. It is opened exactly as you registered it — no query parameters, no identifier, no externalUserId, no referrer you can rely on. There is one URL per environment, not one per provider, so the person who arrives is anonymous to your page and you must identify them from your own session, or ask them who they are. Do not build a page that expects a parameter from us; today there is nothing to read, and a page that fails closed on a missing one will simply be broken.

    It must be https: in every environment, like your webhook URL — it is opened in a clinician's browser. See Authentication for the full URL rules.

    Seats

    Seat billing starts in the console: on the Seats page, subscribe with the number of seats you need — on staging you pay with the test card 4242 4242 4242 4242, any future expiry and any CVC, so the whole flow is safe to rehearse. Once the subscription exists, everything below is self-serve over the API.

    bash
    curl https://partner-api.trytwofold.com/v2/partner/seats \
      -H "Authorization: Bearer twofold_key_prod_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56"
    bash
    curl https://partner-api.staging.trytwofold.com/v2/partner/seats \
      -H "Authorization: Bearer twofold_key_staging_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56"
    json
    { "billingMode": "partner_level_seat_subscriptions", "seatsAllowed": 50, "seatsUsed": 42 }
    json
    { "billingMode": "partner_level_seat_subscriptions", "seatsAllowed": 50, "seatsUsed": 42 }
    • billingMode says which billing mode your organization is on — partner_level_seat_subscriptions is the one this page describes.
    • seatsAllowed is what your Twofold contract currently covers.
    • seatsUsed is simply how many of your linked providers are at FULL_ACCESS right now. Nothing else consumes a seat — not READ_ONLY providers, not revoked links, not console members.

    Setting FULL_ACCESS when seatsUsed already equals seatsAllowed fails with invalid_request / insufficient_seats. Nothing is queued and nobody is billed; free a seat or add one, then retry.

    Adding seats

    bash
    curl -X POST https://partner-api.trytwofold.com/v2/partner/seats/set-seats \
      -H "Authorization: Bearer twofold_key_prod_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56" \
      -H "Content-Type: application/json" \
      -d '{"totalSeats": 25}'
    bash
    curl -X POST https://partner-api.staging.trytwofold.com/v2/partner/seats/set-seats \
      -H "Authorization: Bearer twofold_key_staging_xxxxxxxxxxxx" \
      -H "Twofold-Client-Id: prtn_ab12Cd34Ef56" \
      -H "Content-Type: application/json" \
      -d '{"totalSeats": 25}'

    Send the total you want, not how many to add: set-seats raises your seat count to totalSeats and bills the difference on your Twofold contract, so you can onboard providers without waiting on us. That shape makes it safe to retry — calling it again with the same total is a no-op, never a second purchase. A total lower than what you already have fails with cannot_decrease_seats: reducing seats is not an API call — talk to your Twofold contact, because it changes what you are billed. Your plan also covers seats up to a limit; a total past it fails with seat_limit_reached, and going beyond is a conversation with us rather than an API call.

    ⚠️ Seats are money. set-seats is the one endpoint in this API that increases what your organization pays. Treat it like any other billing action in your product: put it behind whatever approval your team uses. Duplicate calls are harmless by design, but the total you send should still come from a human decision.

    Staging runs this exact flow against a payment sandbox: seats are billed on a test subscription paid with the test card above, so you can exercise everything — grant, run out, add, grant again — and see real invoices, without real money involved.

    Revoking a link releases its seat and ends that provider's access, from whichever side the revocation came. If they link again later, the new link starts at READ_ONLY like any other — a returning provider does not silently reclaim a seat.