Developers
The subs.fit API and MCP server.
Your own script, or an assistant like Claude, can use subs.fit as one of your studio's managers: read the schedule, the sub requests and the reports, and run the manager's side of a sub request. It comes with every plan. Where the studio has Broadcasts, File storage or Messaging (Team and Ultra have all three), it also reaches the broadcasts, the files, and your own messages if you allow it.
Two ways in
A key for a script. A sign-in for an assistant.
API key
For a script, or an assistant that takes a key, like Claude Code. A manager or an admin makes the key in the app, and the script sends it with every call as Authorization: Bearer subs_...
Connected app
For an assistant that connects by a web address, like a custom connector in Claude. You sign in to subs.fit from the assistant, say whether it may make changes, and allow it.
Either one is a person.
A key or a connected app stands for one person in one studio, with that person's role. There's no studio-wide key. It can do what that person can do in the app, within the calls listed below, and it stops when they could no longer have made it: their account is turned off, they're no longer a manager, or the studio's switch is off.
Getting started
Your first call, in three steps.
-
An admin turns it on.
In the web app at app.subs.fit: Settings, then API access. It's off for every studio until then, and an admin can turn it off again. Nothing is deleted while it's off.
-
Make a key.
On the same page, New key. Name it for what it does, say whether it can make changes, and pick when it runs out: 90 days unless you choose otherwise. Where your studio has messaging, say too whether it may use your messages; it can't unless you say so. Managers and admins make their own, up to 10 each.
The key is shown once. subs.fit keeps only its hash, so if you lose it, revoke it and make another. Keep it out of the script itself and out of version control.
-
Call the API.
Everything is under
https://app.subs.fit/api/v1, JSON in and out. Start with who you are:curl -H "Authorization: Bearer $SUBS_KEY" https://app.subs.fit/api/v1/whoamiThe answer, from the demo studio and shortened:
{ "user": { "display_name": "Maya Manager", "role": "manager", "status": "active" }, "org": { "slug": "demo", "name": "Demo Studio", "timezone": "America/New_York", "plan": "team" }, "credential": { "kind": "key", "name": "Monday report", "can_write": false }, "limits": { "calls_per_minute": 120, "changes_per_minute": 30 } }Then something useful. The requests still looking for a sub:
curl -H "Authorization: Bearer $SUBS_KEY" \ "https://app.subs.fit/api/v1/sub-requests?status=open&limit=25"Or who covered the most classes in October:
curl -H "Authorization: Bearer $SUBS_KEY" \ "https://app.subs.fit/api/v1/reports/instructors?from=2026-10-01T00:00:00Z&to=2026-11-01T00:00:00Z&sort=subs_taken&limit=25"
The API
What a key can call.
These calls and no others. A key only reads unless it was made with "Can make changes".
Read
GET /whoamiWho the key acts as, their studio, whether it can make changes, and its limits.GET /locationsYour locations, with their time zones.GET /location-groupsYour groups of locations, if you have any: each with its locations, its own request policies and who follows it.GET /class-typesThe kinds of class you run.GET /staffInstructors, with what and where each one teaches. Search withq.GET /staff/{id}One instructor.GET /people/{id}An instructor's figures from the report and their recent requests, as the sub and as the one who asked.GET /classesClasses in a window, each with its sub request if it has one. Narrow withfrom,to,location_id,staff_id.GET /classes/daysWhich days have classes, and how far ahead the schedule reaches.GET /classes/{id}One class.GET /sub-requestsSub requests. Narrow withstatus,from,to,location_id,urgent; order withsort.GET /sub-requests/{id}One request in full: who asked and why, who was offered it and how they answered, who covers it, and its history.GET /sub-requests/{id}/candidatesWho could cover it, those who can first, with the reason for each one who can't.GET /sub-requests/bulk/classesOne instructor's classes over some days, up to 60 days ahead, for a bulk sub. Takesstaff_id,from_day,to_dayand, for the sub you have in mind,sub_staff_id. Each class hasbulk.blockedif it already has a live request, andbulk.sub: how that sub fits it. The first page counts them all (total) and those with no live request (available).GET /reports/summaryTotals over a range: requests, filled, unfilled, urgent, cancelled, and the median time to fill.GET /reports/instructorsThe report's By instructor table. Takesfrom,to,sort,location_id.GET /reports/class-typesThe report's By class type table.GET /reports/viewsThe views of the By instructor table you saved in the app.
Change
POST /sub-requestsAsk for a sub for a class. Takesclass_id,reasonand an optionalnote.POST /sub-requests/bulkA bulk sub: for up to 200 of one instructor's classes, put one sub on them all (actionassign, withsub_staff_id) or ask for a sub for each (open). Takesstaff_id,class_ids,reasonand an optionalnote.POST /sub-requests/{id}/approveApprove a request that's waiting for a manager. Offers go out.POST /sub-requests/{id}/declineDecline one that's waiting. The class stays with its instructor.POST /sub-requests/{id}/broadcastOffer an open request to every instructor, not only those first asked.POST /sub-requests/{id}/assignPut an instructor on the class as the sub, or replace the one on it. Takesstaff_id.POST /sub-requests/{id}/confirmConfirm one of the instructors who accepted. Takesstaff_id.POST /sub-requests/{id}/cancelCancel a request that's still live. The class goes back to whoever asked.POST /sub-requests/{id}/reopenThe sub can't teach after all: the request goes back to looking.
Changes are real. People are notified and Mindbody is updated, exactly as when a manager does it in the app.
A bulk sub does each class the way it would be done on its own, soonest first. Opening a request is the same as asking for a sub for that one class, so approval and offers go as your studio has them set. Assigning skips a class the sub teaches or subs another class during (sub_busy). A class that can't be done is skipped and the rest go on. The answer has a result for each class, with its outcome: assigned, opened, waiting_approval or skipped, and for a skipped one a code and a message saying why. People hear about the batch once, not once for every class.
Broadcasts, where your studio has them
Where the studio has Broadcasts, on Team or Ultra or as a module on its own, a key also reaches its broadcasts, as the manager or admin it stands for. For a studio without it these answer 403 plan_required.
GET /broadcastsBroadcasts. Withscope=managed, every one of the studio's, drafts included, each with how far it has got.GET /broadcasts/{id}One broadcast in full: its words, who it goes to, whether it asks to be acknowledged, and how far it has got.GET /broadcasts/{id}/recipientsWho it reached and what each has done.state=pendinggives who still has to acknowledge it.
POST /broadcastsWrite one as a draft. Nobody is told until it's sent. Takestitle,body,roles,requires_ack,ongoing.PUT /broadcasts/{id}Change it. Once it's out, only its title and words: as a small fix, or withask_againas a new version everyone is asked about again.POST /broadcasts/{id}/sendSend a draft to everyone who holds one of its roles.POST /broadcasts/{id}/nudgeRemind whoever still has to acknowledge it, at most once an hour.POST /broadcasts/{id}/endEnd one that's out. It stays where it reached and asks nobody anything more.DELETE /broadcasts/{id}Delete it for everyone, with the record of who acknowledged it.
Sending one tells everyone it reaches, under your name, exactly as when you send it in the app. To put a file on one, upload it with the file calls below and the broadcast's broadcast_id.
Files, where your studio has File storage
Where the studio has File storage, on Team or Ultra or as a module on its own, a key also reaches its Files area as its person does in the app. The bytes never pass through these calls: you get a signed address to fetch them from, or to send them to. For a studio without it these answer 403 plan_required.
GET /files/usageHow much storage the studio uses, and its limits.GET /files/foldersThe folders, by name.GET /files/folders/{id}One folder.GET /files/folders/{id}/filesA folder's files, by name.GET /files/{id}One file.GET /files/{id}/downloadA signed address for the file's bytes, good for a short while.GET /files/uploadsYour uploads still in progress.GET /files/uploads/{id}One upload in progress, with the parts already stored.
POST /files/foldersMake a folder.PUT /files/folders/{id}Rename a folder, or change who sees it.DELETE /files/folders/{id}Delete a folder and every file in it.POST /files/uploadsStart an upload into a folder, or onto a broadcast withbroadcast_id.POST /files/uploads/{id}/partsSigned addresses to send the file's parts to.POST /files/uploads/{id}/completeFinish an upload. The file is in its folder.DELETE /files/uploads/{id}Cancel an upload.PUT /files/{id}Rename a file, or move it to another folder.DELETE /files/{id}Delete a file.
Your messages, where your studio has Messaging, only if you allow it
Messages are a person's own: only the people in a conversation can read it, and the studio's admins can't. So a key reaches its person's messages only if it was made to use them, and a connected app only if they ticked that box when they allowed it. Otherwise these answer 403 messages_not_allowed. Messaging comes with Team and Ultra, or as a module on its own; for a studio without it they answer 403 plan_required. No key or connection made before November 26, 2026 has it.
GET /messaging/peopleWho you can message, by name.GET /messaging/unreadHow many messages you haven't read.GET /conversationsYour conversations, the one with the latest message first.GET /conversations/{id}One conversation.GET /conversations/{id}/membersWho is in it.GET /conversations/{id}/messagesIts messages, newest first, each with the size of its thread.GET /messages/{id}One message.GET /messages/{id}/threadA thread: its first message and the replies.GET /message-remindersYour reminders still to come.
POST /conversationsStart a direct message or a group.PUT /conversations/{id}Rename a group you're an admin of.PUT /conversations/{id}/mineFile a conversation in a folder of yours, or mute it.POST /conversations/{id}/readMark it read, or read up to one message.POST /conversations/{id}/membersAdd people to a group.PUT /conversations/{id}/members/{userId}Make a member one of the group's admins, or not.DELETE /conversations/{id}/members/{userId}Leave a group, or remove someone from one you're an admin of.POST /conversations/{id}/messagesSend a message: words, files, or both.PUT /messages/{id}Edit a message of yours.DELETE /messages/{id}Delete a message of yours, or anyone's in a group you're an admin of.POST /messages/{id}/remindersBe reminded about a message at a time you pick.DELETE /message-reminders/{id}Cancel a reminder.
A message sent this way goes out under your name, and nothing marks it as written by a script or an assistant.
Not in the API
What a person answers for themself stays in the app: an offer (accept, decline, withdraw), and opening or acknowledging a broadcast sent to them. So do reporting a message and the admins' side of messaging, such as reported messages and removing a group. Settings, users, changes to location groups, calendars, documents and the keys themselves aren't reachable, so a key can't make a key. Anything else answers 403 not_in_api.
Good to know
- Lists come a page at a time. Send
limit, and pass the answer'snext_cursorback ascursorfor the next page. It'snullon the last one. - Times are RFC 3339 in UTC. A class also gives its time on the wall at its location (
start_local,end_local). - Errors have a code and a message. The
codeis for your program and doesn't change. Themessageis for people. - Limits. 120 calls a minute and 30 changes a minute for each key or connected app. Past that you get
429 rate_limitedwith aRetry-After.
# A key that only reads, asked to make a change
HTTP/1.1 403
{
"error": {
"code": "read_only",
"message": "This API key only reads. Make one that can make changes."
}
}
The MCP server
Connect an assistant.
The address is https://app.subs.fit/mcp. Each tool is one call to the API above, made for whoever connected, so there's no second set of rules.
Claude, by signing in
In Claude on the web or the desktop app: Settings, Connectors, Add custom connector, and give it the address.
Claude sends you to subs.fit to sign in. Pick the studio if you manage more than one, say whether it may make changes and, where your studio has messaging, whether it may use your messages, and allow it. Nothing is granted until you press Allow.
Claude Code, with a key
Make a key as above, then:
claude mcp add --transport http subs-fit \
https://app.subs.fit/mcp \
--header "Authorization: Bearer $SUBS_KEY"
Claude is the assistant I've tested it with. Any other MCP client connects one of those two ways. To disconnect one, or see what it changed, go to Settings, API access.
The tools
57 in all. The 28 that change something are only listed to a key or a connection that may make changes. The 32 for broadcasts, files and messages are only listed where the studio has that module, and the 14 for messages only to a key or a connection allowed to use them.
Read
whoamilist_locationslist_location_groupslist_class_typeslist_instructorsget_person_historylist_classesget_classlist_sub_requestsget_sub_requestlist_sub_candidateslist_bulk_sub_classesget_report_summarylist_report_instructorslist_report_class_typeslist_report_views
Change
create_sub_requestbulk_subapprove_sub_requestdecline_sub_requestoffer_sub_request_to_everyoneassign_subconfirm_subcancel_sub_requestreopen_sub_request
Broadcasts, where your studio has them: read
list_broadcastsget_broadcastlist_broadcast_recipients
Broadcasts, where your studio has them: change
create_broadcastupdate_broadcastsend_broadcastnudge_broadcastend_broadcastdelete_broadcast
Files, where your studio has File storage: read
list_file_folderslist_filesget_file_download_addressget_file_storage_usage
Files, where your studio has File storage: change
create_file_folderupdate_file_folderdelete_file_folderupdate_filedelete_file
Your messages, where your studio has Messaging and you allow it: read
list_message_peoplelist_conversationsget_conversationlist_conversation_memberslist_messageslist_message_thread
Your messages, where your studio has Messaging and you allow it: change
start_conversationsend_messageedit_messagedelete_messagemark_conversation_readrename_groupadd_group_membersremove_group_member
In list_broadcasts a long broadcast's words are cut to 300 characters and marked body_cut. get_broadcast has them whole. No tool carries a file's bytes: get_file_download_address gives an address to fetch them from, and a broadcast or a message an assistant writes is words only.
If you're writing a client
It's Model Context Protocol over Streamable HTTP, revision 2026-07-28, and clients on the 2025 revisions are served too. It's stateless: every request stands alone, nothing is held open, and GET and DELETE answer 405.
Sign-in is OAuth 2.1 the way the MCP specification lays it out. A request with no credential answers 401 and points at https://app.subs.fit/.well-known/oauth-protected-resource/mcp, which names the authorization server, this same host. Authorization code with PKCE (S256) and the resource parameter. Public clients only, named by a Client ID Metadata Document or registered at /oauth/register. Scopes are read, write and messages. Access tokens last 15 minutes and refresh tokens rotate.
The record
Every change says what made it.
Every change a key or a connected app made, or tried to make, is kept: who, with which key or app, what, and the answer. Refused ones too. A broadcast, a file or a message is named there by its id, never by its words or a file's name. An admin sees the whole studio's under Settings, API access, and a manager sees their own. Reading isn't listed.
The sub request's own history says so as well, next to the manager's name: via API key "Monday report".
Not there yet
A key that isn't a person's, for a script that should outlive whoever set it up. Keys for instructors. Anything narrower than read, or read and change. If you need one of those, tell me.
Building something on subs.fit?
Email me what you're trying to do and I'll help you get there.
Not on subs.fit yet? See the plans. The API and the MCP server come with both.