Teachfloor Studio has a REST API and an MCP server. With them you can use every Studio tool without opening the app: quizzes, scenarios and voice calls, transcripts, the translators, voice-over, Slides to Video, the SCORM Converter and Validator, compression, Accessible Documents, Learning Journals and debates, and read learner results. The rules are the same as in the app: AI generation uses the same credits, and the same plan limits apply.
REST API: for your developers and integrations (LMS sync, reporting, automations).
MCP server: for AI assistants such as Claude, Cursor or ChatGPT. You ask in plain words ("make a 10-question quiz on fire safety and give me the SCORM link") and the assistant does it.
Before you start
Subscription: the API and the MCP server are available with an active subscription (any choice, even credits every month only). Without one, keys cannot be created and calls are refused.
Credits: every tool costs the same credits as in the app. Writing a quiz by hand, editing, fixing a transcript, an accessibility check, reviewing a translation and exporting are free. Ask the price first with
POST /v1/estimate(the assistant does it with estimate_price).Limit: 120 requests per minute for each key.
Emails: work started from the API or an AI assistant does not send the "ready" email. Read the result from the API instead.
Create a key
Click your name at the bottom of the left menu and, under API & MCP, click Keys & connected apps.
Type a name for the key (for example the tool that will use it) and click Create key.
Copy the key now. It starts with
tfk_and is shown only once. If you lose it, revoke it and create a new one.
Give each tool its own key: you can then revoke one without stopping the others. The page shows when each key was last used and how many calls it made in the last 30 days. Revoke stops a key immediately.
Connect an AI assistant (MCP)
Use the server URL shown on the Connect an AI assistant page (account menu at the bottom of the left menu → API & MCP). It ends in /api/mcp. That page has step-by-step instructions for Claude.ai, ChatGPT, Claude Code, Cursor, VS Code and Windsurf, the list of tools, and the status of your connections.
Claude.ai and Claude Desktop (no key needed): open Settings → Connectors → Add custom connector, paste the server URL and click Connect. A Teachfloor Studio page opens: log in if asked, check the app name and click Allow. The app then appears under Connected apps on the Keys & connected apps page, where Disconnect removes its access immediately.
Other assistants send the key in the Authorization header.
Claude Code:
claude mcp add --transport http teachfloor-tools <server URL> --header "Authorization: Bearer tfk_..."
Cursor, Windsurf and other clients (in mcp.json):
{ "mcpServers": { "teachfloor-tools": { "url": "<server URL>", "headers": { "Authorization": "Bearer tfk_..." } } } }Choose the tools. On the same page you can tick the groups of tools the assistant gets (quizzes, scenarios, video and audio, translators, documents and SCORM, journals and debates, Video Lab). The server URL changes with your choice: some apps, like Cursor, work only with about 40 tools. Account, uploads and jobs are always included. If you change the groups, connect the assistant again with the new URL.
The assistant can then:
create a quiz from a topic or a document, edit its questions and export it;
create a scenario or a voice call from a ready-made case or from a brief, publish it and export it;
transcribe a video or audio file, translate the subtitles, read the text, fix it and get the download links;
translate a video, a podcast, a SCORM package or a document, add a voice-over, turn slides into a narrated video;
convert a file to SCORM, check a package with the validator, compress PDFs, PowerPoints and videos, make a document accessible;
create Learning Journals and debates, open journal sessions, choose the debaters and start the debate;
make Video Lab videos from a text or a document: the AI writes the scenes for free, the assistant shows them to you and changes them, then makes the MP4 at the price it told you first. It can also make a copy in another language. The video is in your Video Lab and in Files, where you can still edit it by hand;
tell you the price before it starts, and chain tools: the result of one job is the input of the next (for example compress a video, then translate it), without downloading anything;
read results: the results panel of a package, the list of learner sessions, the detail of one session.
Exports give a download link that works for one hour. The assistant can pass it to another tool, for example to upload the SCORM package into a Teachfloor course.
Tip: AI generation takes from a few seconds to a few minutes. The assistant checks the status by itself until the quiz or scenario is ready.
Use the REST API
The full reference, with every endpoint, its fields and a copy-paste example, is on the API documentation page (account menu at the bottom of the left menu → API & MCP). All endpoints start with the base URL shown there (it ends in /api/v1). Send the key with every request:
Authorization: Bearer tfk_...
The full reference is at /api/v1/openapi.json (OpenAPI 3). The main endpoints:
What | Endpoint |
|---|---|
Account, credits, plan usage |
|
Quizzes |
|
Quiz SCORM zip |
|
Upload a file (document, video, audio) |
|
Video transcripts |
|
File tools (one per tool) |
|
Translators and voice-over |
|
SCORM and accessibility |
|
Jobs of every tool |
|
Price before you start |
|
Learning Journals |
|
Video Lab |
|
Debates |
|
Scenarios |
|
Voice calls only |
|
Publish a scenario |
|
Scenario SCORM zip |
|
Results of a package |
|
Learner sessions (JSON or CSV) |
|
Generation runs in the background. POST /quizzes answers right away with the quiz in status generating. Read GET /quizzes/{id} every few seconds until the status is ready. Scenarios and transcripts work the same way.
File tools run as jobs. Each one answers 202 with a job: read GET /jobs/{id} until status is ready, then download download. Give the file as fileUrl (from POST /uploads) or as fromJob (the id of a finished job): the result of one job becomes the input of the next, for example POST /scorm-converter, then POST /scorm-validator with fromJob: "conv_123".
Errors come back as { "error": "message", "code": "code" }. The most common codes:
Code | Meaning |
|---|---|
| The key is missing, wrong or revoked. |
| The account has no active subscription. |
| The subscription ended: content can be read, not changed. |
| Not enough credits for this generation. |
| The plan limit is reached (for example the learner sessions of the month). |
| Some fields or questions need fixing; details in |
| More than 120 requests in a minute. Wait and retry. |
Every response has an X-Request-Id header. Include it if you contact support.
See what the API made, and what it cost
Files and transcripts made through the API or the MCP server are not listed in Files, so they don't mix with the work you do in the app. You find them in the account menu → API & MCP → API log:
Totals: jobs and credits used, all time and in the last 30 days.
Jobs: date, file, tool, where it came from (API or MCP, with the key name), status and credits. A failed job shows 0 credits, because its credits come back. Click the file name to open it and download it.
Calls: the latest calls that create or change something. Reads are not listed. Calls are kept for 90 days.
Quizzes and scenarios made through the API stay in Files, like the ones you make in the app, so you can open and edit them.
Learner data and privacy
Reports follow the same rule as the results panel: learner names appear only for packages published with Identified or Leaderboard data. For anonymous packages you get an anonymous participant id.
