Overview

Teak developer docs

TeakOS™ is the operating layer behind every Teak program, built to grow refund protection from a single policy into a multi-product, multi-policy offering. It delivers protection inside your checkout, your booking flow, or an AI agent, and every integration follows the same four steps: offer, confirm, submit, and notify. Integrate once, and add new products and policy types as your program grows.

Example
Refund protectionGet your money back if you can't attend.
Yes, protect my order$6.50
No thanks

Ways to connect

TeakOS works the same whichever way you connect. Choose the one that fits how you sell.

Server-to-server and AI integrations are for enterprise partners only. Teak Solutions Team works with partners to determine the appropriate integration solution.

How TeakOS works

The four steps in every integration.

Protection moves through the same four steps, whichever way you connect: price it, confirm the choice, issue it, and notify your systems.

Step 1OfferWhat would protection cost for these items?

Price one item or many in a single call, such as a cart or a page of search results. Teak returns a price for each item and starts a session.

Who calls itThe widget, your server, or an AI agent
Step 2ConfirmWhich items does the customer want protected?

Record whether the customer accepts or declines each optional item, and lock its price. Embedded protection is included without asking.

Who calls itThe widget, your server, or an AI agent
Step 3SubmitWhat should Teak issue?

Place the order with the customer's details. Teak issues protection for each protected item, at the confirmed price.

Who calls itYour server or an AI agent. Never the browser.
Step 4NotifyWhat's happened to the protection?

Teak sends your systems webhooks as protection is issued, and whenever it changes after purchase.

Who calls itTeak, to your systems

One session ties the steps together: it starts at the first offer and ends when the order is placed.

See how Teak works

Example flows

Every integration follows the four steps. What changes is who acts at each one.

A ready-made component shows the offer in your checkout, and your server submits the order.

TeakOS integration guide →
  1. 1OfferOfferTeakOS Widget

    Prices the cart when it loads, and shows the offer.

  2. 2ConfirmConfirmCustomer

    Accepts or declines in the widget, which locks the price.

  3. 3SubmitSubmitYour server

    Submits the order with the customer's details. Never from the browser.

  4. 4NotifyNotifyTeak

    Sends your systems webhooks as protection is issued, and whenever it changes.

Not the docs you were expecting? Try the Legacy API docs.


Did this page help you?