Skip to main content
When the events you send change a teammate’s program, the change applies at once, unless the teammate has a coach. Then the change waits as a proposal until one of the teammate’s coaches accepts or declines it. Your organization hears about it either way. Set these two values once in your terminal. Every example in these docs reads them, so no example has a host or a key typed into it.
Use a test key (it starts with tf_test_) while you build. Never paste a live key into a page, a ticket or a chat.

When a change waits

A change also applies at once, with approval mode automatic, when every coach of the teammate coaches them through an organization that turned on Apply program changes automatically (see Add and remove coaches). A teammate “has a coach” when at least one coach holds an active coaching authorization for them and is allowed to see their training data. A coach who cannot see the program cannot review it, so that coach does not hold changes back. Changes come only from events sent with a live key. A test key’s events never change a program, so a test key never sees a proposal: its list is empty and a proposal id answers 404.

Four endpoints

After the teammate claims their account, they also need to allow programs.

A proposal

200
diff has the same shape as a revision’s diff (see Programs and revisions). base_revision is the applied revision the change was computed from.

Deciding

Send the deciding coach’s id. The coach must coach the teammate and be one of your organization’s coaches. Any one of the teammate’s coaches may decide; the first decision stands. To accept:
To decline, with an optional reason:
Both answer the proposal with its new status, decided_at and decided_by.

The states of a proposal

A pending proposal has no expiry: it waits until a coach decides or a newer change replaces it. If the teammate’s last coach stops coaching them while a proposal waits, nobody can decide it, and the next change applies at once and replaces it. How a change moves from the events you send to a decision, and the webhook each step sends. Each proposal’s revisions appear in the program’s revisions with the matching approval.status.

Webhooks

No event fires when a proposal is declined or replaced; read the proposal to see its state. See Webhooks for delivery and signatures.