First-party app
Teachable

Teachable

Manage courses, students, enrollments, pricing plans and transactions on a Teachable school.

stable Commerce & PaymentsCustomer Relationship Management

About

Teachable ships in the w6w first-party pack. It declares 21 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.teachable
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Commerce & Payments · Customer Relationship Management

Overview

Teachable is a platform for selling online courses and coaching. This app covers the Teachable Public API — the school-owner surface authenticated with a single API key, not the separate per-student OAuth surface (see the README for why that one is out of scope).

Look up and list courses, their lecture curriculum, lectures, quizzes and quiz responses, and videos; read a student’s progress through a course and mark a lecture complete on their behalf. Create, list, look up and update users, and enroll or unenroll a user in a course. Read the webhooks configured in the school admin and the delivery events they have fired — webhooks themselves are configured in the Teachable UI; the API is read-only for them. Read pricing plans and sales transactions for reporting and reconciliation.

Build with Teachable

Three routes to the same 21 actions. The Workflow tab is generated from Teachable's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

List Course Enrollments

course-enrollments-list

Fetch active enrolled students and their progress for a specific course.

Get Course

course-get

Fetch a specific course by ID, including its lecture sections and author bio.

List Courses

course-list

Fetch all courses at your school, with optional name, published-status, author and creation-date filters.

Get Course Progress

course-progress-get

Fetch a specific user's progress through a course — completed lecture sections, certificate, and overall percent complete.

Get Lecture

lecture-get

Fetch a specific course lecture, including its attachments (text, video, quiz, etc.).

Mark Lecture Complete

lecture-mark-complete

Mark a specific course lecture as complete for a user.

Get Pricing Plan

pricing-plan-get

Fetch a specific pricing plan by ID. Currently only supports pricing plans associated with courses.

List Pricing Plans

pricing-plan-list

Fetch all the pricing plans at your school.

Get Quiz

quiz-get

Fetch a specific quiz's questions, answers and correct answers.

List Quizzes

quiz-list

Fetch the IDs of quizzes in a specific course lecture.

Get Quiz Responses

quiz-responses-get

Fetch every student's submission for a specific quiz, with percent correct.

List Transactions

transaction-list

Fetch sales transactions made in your school. New transactions can take up to two minutes to appear after the sale.

Create User

user-create

Create a new user in the school. Defaults to the student role.

Enroll User

user-enroll

Enroll a user in a course.

Get User

user-get

Fetch a specific user by ID, including their course enrollments and tags.

List Users

user-list

Fetch users at the school, optionally filtered by email.

Unenroll User

user-unenroll

Unenroll a user from a course.

Update User

user-update

Update a user's name and/or signup source.

Get Video

video-get

Fetch a specific video's playback URL, status and duration.

List Webhook Events

webhook-events-list

Fetch delivery events for a webhook, optionally filtered by response status code range or creation date.

List Webhooks

webhook-list

Fetch all webhooks configured for your school. Webhooks are created and edited in the Teachable admin UI, not via this API.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Teachable's real ids.

{
  "manifestVersion": "2",
  "name": "teachable-example",
  "steps": [
    {
      "id": "course-enrollments-list",
      "uses": {
        "app": "io.w6w.teachable",
        "action": "course-enrollments-list",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "courseId": "<courseId>"
      }
    }
  ]
}

Here are some of the things you can do

  • List Course Enrollments

    read
    course-enrollments-list
  • Get Course

    read
    course-get
  • List Courses

    read
    course-list
  • Get Course Progress

    read
    course-progress-get
  • Get Lecture

    read
    lecture-get

+16 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Teachable, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Teachable. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "course-enrollments-list",
  payload: {
    courseId: "<value>",
    // enrolledInAfter: "<value>",
    // enrolledInBefore: "<value>",
    // sortDirection: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action course-enrollments-list --payload '{"courseId":"<value>"}'

Give an AI agent Teachable — without giving it Teachable's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.teachable#course-enrollments-list",
    "input": {
      "courseId": "<courseId>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Teachable connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Teachable's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Teachable itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Teachable declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Teachable platform status

Component status from teachablestatus.com, including the developers.teachable.com API host.

quota

Rate-limit headroom

Requests remaining this minute against the school's rate limit, read from the RateLimit-* response headers when Teachable sends them.