API and integrations
CoachOS has an open API, so your practice can talk to the rest of your tools: your CRM, your accounts, a form on your website, Zapier or Make. It covers your practice's operating record: contacts, engagements, sessions, invoices, payments and bookings. Webhooks tell your systems the moment something happens.
What never leaves. Coaching content stays in CoachOS: notes of every kind, transcripts, goals, reports, assessments, and anything a coachee writes in their portal. The API cannot read them, by design, and no webhook carries them.
1. Make a key
In CoachOS, open Settings → API & integrations and make a key. Choose read only unless the tool needs to add contacts or subscribe to webhooks. The key is shown once; keep it like a password. Revoke it there at any time.
curl https://coachos.nirvedha.com/api/v1/me \
-H "Authorization: Bearer cos_live_…"2. Read and write
All answers are JSON. Lists come newest first, up to 100 at a time: pass starting_after with the last id you received to get the next page.
| Request | What it gives |
|---|---|
GET /me | The practice the key belongs to |
GET /contacts, /contacts/:id | Contacts; ?email= finds one |
POST /contacts | Adds a contact (name, email, phone, title, linkedin_url, country). One with the same email comes back unchanged. |
GET /engagements, /engagements/:id | Engagements: title, coachee, dates, status; ?status=, ?coachee_id= |
GET /sessions, /sessions/:id | When, how long and how each session went; ?engagement_id=, ?from=, ?to=, ?status= |
GET /invoices, /invoices/:id | Issued invoices and credit notes with what is still due |
GET /payments | Payments received; ?invoice_id= |
GET /bookings | Calls booked on your booking page |
The full description, for Postman, Make or a custom GPT, is at https://coachos.nirvedha.com/api/v1/openapi.json. Up to 120 requests a minute per key; past that the answer is 429, with Retry-After.
3. Webhooks
Add a URL in Settings, or subscribe through the API (POST /webhooks with url and events; DELETE /webhooks/:id to stop). Events:
contact.created, engagement.created, engagement.status_changed, session.scheduled, session.rescheduled, session.completed, session.cancelled, invoice.issued, invoice.paid, invoice.cancelled, payment.received, booking.created, booking.cancelled
Each is a POST with the object as it is now, in data.object. It arrives within about a minute. It is signed with your endpoint's secret in X-CoachOS-Signature; check it before you trust it:
import crypto from "node:crypto";
// body: the raw request body, as text; header: X-CoachOS-Signature
function fromCoachOS(secret, body, header) {
const [, t, sig] = header.match(/^t=(\d+),v1=([0-9a-f]{64})$/) ?? [];
if (!t || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const want = crypto.createHmac("sha256", secret).update(`${t}.${body}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(sig));
}Reply with any 2xx. Anything else is tried again after 1, 5 and 30 minutes, then 2, 6, 12 and 24 hours. An endpoint that fails twenty times in a row is switched off, and Settings says so. Reply 410 to unsubscribe.
4. Zapier and Make
In Zapier, use Webhooks by Zapier: Catch Hook as the trigger, with its URL added as a webhook in Settings, and a Custom Request as the action, with your key in the Authorization header. In Make, use the HTTP module the same way, or import the OpenAPI description. A ready-made CoachOS app for both is on its way.
5. Questions
Write to sudhakar@nirvedha.com.