Skip to main content

Teachable

Teachable is a platform for online courses and coaching. Its webhooks report a new sale, an enrolment in a course and a completed course. Pointed at the Flows address, they start your flows: a welcome to a new student, a nudge to start the course, a thank-you after a purchase.

Written from Teachable documentation

This page is written from the public documentation of Teachable and has not been checked on a live account yet. The documentation pages were only partly readable for us, so the plan, the names in the interface and the fields of the request are marked below where they are not confirmed.

What you need​

  • A Teachable plan with webhooks. Which plans have them is not confirmed by the documentation; reportedly Growth and higher.
  • Access to the admin of the school.
  • Phone collection at checkout: without it the events carry no phone (see "Collecting phone number at checkout" below).

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose Teachable.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set up the webhook in Teachable​

  1. In the admin of the school open Settings → Webhooks and press Add Webhook.
  2. URL — the address from the cabinet.
  3. Leave the switch for sending the data as a JSON array (JSON array) off.
  4. Events — Custom, then New sale and New enrollment. For course completion add the event Enrollment.completed; its name in the list is not confirmed by the documentation. Two webhooks cannot subscribe to the same event, even with the same address.
  5. Save the webhook. Its status changes from Pending to Active.
  6. Switch on collecting the phone number at checkout, so that the sales carry the phone.

Step 3. Send a test​

Enrol in your own free course. The list of webhooks shows the history of deliveries, and the event appears in Flows → Connections → Event journal within seconds. The connection shows Recognised: Teachable.

Events​

Teachable eventAlphaFlow eventProperties
New sale (Sale.created)payment_succeededproduct, amount, currency
New enrollment (Enrollment.created)course_enrolledcourse, course_id
Enrollment.completedcourse_completedcourse, course_id, sale_id
Admission.created — an admission to coachinglead_submitted—
  • The properties are not confirmed by the documentation. In the known example of Enrollment.completed there is only course_id and sale_id, with no name of the course and no email.
  • The contact is found by the email and the Teachable id of the user; the first name comes from the user's name. The phone is there only if the school collects it at checkout — this is not confirmed by the documentation either.
  • Not mapped: a new transaction (Transaction.created) — together with the sale it would give two payments for one purchase — and the abandoned cart.

Good to know​

  • After four failed deliveries Teachable marks the next event as permanently failed and cancels the following ones; the webhook then has to be switched on by hand. AlphaFlow answers at once, so this is rare.
  • A signature is not described in the documentation we could read, and it is not needed: the secret in the address is enough.
  • The event needs a phone or an email, or an id AlphaFlow already knows. Otherwise it is refused with no_contact and shown in the journal. An enrolment may name the user only by id: such an event reaches only a contact AlphaFlow already knows by this id.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the webhook in Teachable stays on.

Teachable documentation​