Skip to main content

API & MCP

Use every Studio tool from your own systems or an AI assistant: quizzes, scenarios, transcripts, translators, voice-over, SCORM conversion, journals and debates.

Written by Filippo Schiano di Pepe

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

  1. Click your name at the bottom of the left menu and, under API & MCP, click Keys & connected apps.

  2. Type a name for the key (for example the tool that will use it) and click Create key.

  3. 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

GET /account

Quizzes

GET /quizzes, POST /quizzes, GET/PATCH/DELETE /quizzes/{id}

Quiz SCORM zip

GET /quizzes/{id}/package

Upload a file (document, video, audio)

POST /uploads, then PUT the file to uploadUrl with the header x-amz-acl: public-read

Video transcripts

GET /transcripts, POST /transcripts, GET/PATCH /transcripts/{id}

File tools (one per tool)

POST /compress-pdf, /compress-powerpoint, /compress-video, /powerpoint-to-pdf, /extract-notes, /video-to-slides, /slides-to-video, /pdf-to-video

Translators and voice-over

POST /video-translator, /podcast-translator, /scorm-translator, /document-translator, /video-voiceover; voices: GET /voices; review the text first: POST /prepare-translation

SCORM and accessibility

POST /scorm-converter, /scorm-validator, /accessibility-check (free), /accessible-documents

Jobs of every tool

GET /jobs, GET /jobs/{id}, POST /jobs/{id}/retry

Price before you start

POST /estimate with tool and the same fields as the tool

Learning Journals

GET/POST /journals, GET/PATCH/DELETE /journals/{id}, sessions, reflections, GET /journals/{id}/package

Video Lab

GET/POST /video-lab, GET /video-lab/options, GET/PATCH/DELETE /video-lab/{id}, POST /video-lab/{id}/plot, /make, /stop, /translate, GET /video-lab/{id}/video

Debates

GET/POST /debates, GET/PATCH/DELETE /debates/{id}, POST /debates/{id}/debaters, /start, /next, GET /debates/{id}/package

Scenarios

GET /scenarios, POST /scenarios, GET/PATCH/DELETE /scenarios/{id}

Voice calls only

GET /voice-calls, POST /voice-calls

Publish a scenario

POST /scenarios/{id}/publish

Scenario SCORM zip

GET /scenarios/{id}/publications/{publicationId}/package

Results of a package

GET /reports/publications/{publicationId}

Learner sessions (JSON or CSV)

GET /reports/sessions?from=2026-10-01&format=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

unauthorized

The key is missing, wrong or revoked.

subscription_required

The account has no active subscription.

subscription_ended

The subscription ended: content can be read, not changed.

insufficient_credits

Not enough credits for this generation.

plan_limit_reached

The plan limit is reached (for example the learner sessions of the month).

validation_failed

Some fields or questions need fixing; details in errors.

rate_limited

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.

Did this answer your question?