Free and Sober
Every step of recovery
How it worksTime CapsuleMentorPricingOrganizationsWellness Programs
Request a demoGet the app

For developers

Partner API developer guide

Last updated: November 24, 2026

On this page

Before you startSigning your callsThe callsConnect+MCPWebhooksThe reminder the day beforeThe Part 2 notice and the member's authorizationWhat is not sharedHow long we keep eventsQuestions

In short

Updated 2026-11-24: the "Last updated" date is November 24, 2026, the one date every policy page carries (C-014); nothing else changed. Before that, on 2026-11-20: the "Last updated" date is November 20, 2026, the one date every policy page carries. On 2026-11-17: Connect+, appointment changes and the day-before reminder work once Free and Sober turns them on, and the outcome report shows no share yet. For an organization's engineers. The Partner API connects your own system to Free and Sober for the members who sign the privacy disclosure in the app. Nothing is sent to a member, and nothing about a member comes back to you, before that member signs, with one exception on Connect+: when a client joins with an admission's code you made for them, on the app's screen that tells them you will see that they joined, admission.joined gives you their seat number, and nothing else. Each member chooses, can withdraw any day, and it stops that day.

Before you start

  • The Partner API is an add-on for organizations, in two tiers: Connect, $249 a month, with everything on this page but the Connect+ section; and Connect+, $750 a month, which adds what that section lists. A month is billed at the highest tier your organization held on any day of it.
  • One key per organization; a new key leaves the older one working seven more days.
  • If your organization's Partner API is turned off, or its agreement ends, your keys are revoked, your webhook and anything waiting for it are removed, and every member link ends at once. Turning it on again brings none of them back: you make a new key and link your members again.
  • A member is linked only after they sign the privacy disclosure in the app and give you the link code the app shows them. A link code links one member to one external_id at a time.
  • You name each member by your own identifier (external_id). We never send you a member's name, and never their words or recordings.

Signing your calls

Send Authorization: Bearer <key> on every call. Each key can make 300 calls a minute on each copy of our server. We run more than one copy and each counts your calls on its own, so a key can sometimes get more than 300 through in a minute before a 429. Build for 300.

Calls go to https://api.freeandsober.com. The full developer guide, with every field and error, is served with your organization page (/org/partner-guide), and every route and event is in an OpenAPI description at /v1/partner/openapi.json.

The calls

  • GET /v1/partner/org The organization and this key.
  • GET /v1/partner/counts?month=YYYY-MM The same counts as your admin page: members, joined and left are exact, and an activity count from 1 to 10 is held back.
  • POST /v1/partner/members with {link_code, external_id}. Links a member who signed the disclosure and gave you the code the app showed them.
  • GET /v1/partner/members/:external_id What the member chose to share, and each appointment, as delivered, or as accepted or declined for a member who chose to share that.
  • DELETE /v1/partner/members/:external_id Unlinks the member. Any appointment they haven't answered yet is deleted.
  • POST /v1/partner/members/:external_id/appointments with {title, day, start_time?, end_time?, kind?, location?, notes?, time_zone?, external_ref?}. Sends an appointment or program date. Its title, kind, location and notes are sealed to the member's key the moment it arrives. The day, the times, the time zone and your external_ref stay readable, so put nothing about the member in external_ref. The member accepts or declines it in the app.
  • GET /v1/partner/members/:external_id/appointments Each appointment you sent, as delivered, or, for a member who chose to share it in their signed disclosure, as accepted or declined for each one they answered after signing. This list never shows when they answered (the event below is sent when they answer), and never its words.
  • PATCH /v1/partner/members/:external_id/appointments/:id with the same fields. Once Free and Sober turns changes on, it replaces one: the new one is sealed on arrival with a new id, the old one shows replaced, and the member gets a push, never its words, and accepts or declines the new one.
  • DELETE /v1/partner/members/:external_id/appointments/:id Once Free and Sober turns changes on, it withdraws one: it shows withdrawn, and one the member accepted comes off their calendar.
  • GET /v1/partner/authorizations/:id The signed disclosure that every answer and event names: its version, when it was signed, what the member chose, and its words with your organization's name.

Connect+

Once Free and Sober turns Connect+ on, with Connect+ your system can also:

  • Admit a client: POST /v1/partner/admissions with {reference, plan?, aftercare_days?}. A one-use join code labelled with your reference number, never a name. The client joins through the app's own consent screen; until then nothing exists for them, and admission.joined then gives you their seat number.
  • Discharge one: POST /v1/partner/discharges, as your organization page's seat end (the seat's last day and its aftercare), by the admission or by your external_id; DELETE undoes it before the day.
  • Read your outcome totals: GET /v1/partner/outcomes, one entry a month, totals only, never a name or a member; any number from 1 to 10 reads "fewer than 11", and each share is blurred on purpose. No share is shown yet: the days after a seat ends are kept only for a member who joined on a screen that says they are, and no join screen says so yet, so each share reads "not shown" until one does.
  • Send care-team messages and broadcasts under your organization page's own rules and limits, counted together with your page's. A message from your system (once Free and Sober turns these messages on) is sealed to the member's key the moment it arrives, and reaches only a member who signed the privacy disclosure of October 22, 2026 or a later one.
  • Keep your Resources in step with your system (PUT /v1/partner/resources), never touching what your staff added by hand.
  • Send a document to one member (a PDF, sealed to their key the moment it arrives), once Free and Sober turns documents on, and only to a member who signed the privacy disclosure of October 22, 2026 or a later one.

MCP

Once Free and Sober turns it on, an AI assistant that speaks the Model Context Protocol can use these routes as tools at /v1/partner/mcp, with your key, each through its route's own checks and access log. What it reads goes to the AI service it runs with: only under your own agreement with that service.

Webhooks

We send a POST to the address you set on your admin page. The body is {id, event, created_at, data, part2_notice, authorization}, and the headers are X-FS-Event, X-FS-Part2-Notice and X-FS-Signature.

  • The signature. X-FS-Signature is t=<seconds>,v1=<hex>: an HMAC-SHA256 of <t>.<body> made with your webhook secret, which your admin page shows once.
  • The events. member.linked, member.unlinked, member.left and member.seat_ended, and appointment.accepted and appointment.declined for a member who chose to share their answers, each sent when the member answers.
  • Two more events. talk.requested when a member asks to talk, never who (open your organization page's Care team tab); and, on Connect+, admission.joined with the seat number when a client joins with an admission's code.
  • Retries. A delivery that isn't answered with a 2xx status is tried again, with longer waits between tries (about 4, 16 and 64 minutes, then about 4 hours, then about 17 hours), eight tries at most, over about two and a half days.
  • The address. A webhook address must use https.

The reminder the day before

Once Free and Sober turns it on, for an appointment the member accepted, their phone gets one push at 6 p.m. in the appointment's time zone the day before: "You have an appointment tomorrow." Never its title or place.

The Part 2 notice and the member's authorization

Every answer about one member (the link, the member, the unlink, an appointment you sent and the list of appointments) carries the 42 CFR Part 2 notice in its body (part2_notice) and in the header X-FS-Part2-Notice. Every event carries it too.

Each also carries authorization: {id, version, scope_url}. It is the record of the disclosure the member signed, and the address of its scope (GET /v1/partner/authorizations/:id). You can read it with your key, for your own members only, and each read is logged.

What is not shared

  • Whether a member accepted or declined an appointment, unless they chose to share it in their signed disclosure. Without that choice no event is sent for it, and each appointment shows as delivered.
  • A member's words, recordings, mentor conversations, notes, calendar or corner. They never leave the member's account, signed or not.
  • Anything about a member who has not signed the disclosure, beyond the counts your admin page shows and, on Connect+, an admission's seat number as above.

How long we keep events

An event is kept only to deliver it, and only while you have a webhook address set. Nothing is queued without one, and removing your webhook address deletes what was waiting for it.

Every event is deleted seven days after it was made, delivered or not. When a member withdraws, leaves or their seat ends, anything queued for them and not yet delivered is deleted, and the one event that says sharing ended (member.unlinked, member.left or member.seat_ended) is sent.

Questions

Write to support@freeandsober.com, and a person replies within 24 hours, every day.

Free and Sober Inc., 89 Moody Road, Enfield, CT 06082

Free and Sober
Every step of recovery

Support for every step of recovery.

The app

How it worksTime CapsuleMentorPricingOrganizationsBlogSobriety calculatorSober day counterBest sobriety appsWhat's freeSober appSobriety appQuit drinking appAmbassadorsCommunity partnersInstagramFacebook

Help

Help and troubleshootingContact supportReport a problemDelete your accountSafety and crisis lines

Policies

Privacy PolicyConsumer Health Data Privacy PolicyTerms of UseThe mentor and your safetyOur crisis protocolBilling and subscriptionsSubprocessors42 CFR Part 2 noticeAccessibility

Free and Sober is a wellness app. It is not medical care and not a substitute for treatment. Its mentors are AI, and each one says: “I'm an AI, not a therapist or counselor, and this isn't medical advice or treatment. It's not a substitute for clinical care.” If you are in crisis in the US, call or text 988, or call 911 in an emergency. For help with drinking or drugs, SAMHSA's free National Helpline is 1-800-662-4357, any hour.

© 2026 Free and Sober Inc. All rights reserved. Free and Sober™ is a trademark of Free and Sober Inc. (U.S. application pending). 89 Moody Road, Enfield, CT 06082. support@freeandsober.com

Request a demo

A person reads every request and replies within 24 hours, every day. Please do not include member names or health details.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Thank you. Your request reached us, and a person will reply within 24 hours from support@freeandsober.com.

That did not send. Please try again, or write to support@freeandsober.com.