For developers
The API, webhooks and the HODOSFIT MCP
Everything in your account, programmatically: a REST API with keys, signed webhooks for every new client, check-in, workout or payment, and an MCP server for Claude and ChatGPT. Works with Make, Zapier, n8n or your own code.
No credit card required.
curl -H "Authorization: Bearer hk_live_…" \
"https://hodosfit.com/api/v1/clients?limit=20"
curl -X POST -H "Authorization: Bearer hk_live_…" \
-H "Content-Type: application/json" \
-d '{"name":"Ana Sousa","email":"ana@example.com"}' \
"https://hodosfit.com/api/v1/clients"REST API with keys
Clients, check-ins, workouts, agenda, enrollments, charges and tasks, in JSON.
Webhooks signed
Six events, HMAC signature and retries when your server fails.
MCP for assistants
Fifteen tools for Claude, ChatGPT and Claude Code, with OAuth.
For developers
Get started in three steps
- 1
In the app, under My account › Integrations, create an API key (shown only once) or copy the MCP server address.
- 2
Send the key in the Authorization: Bearer hk_live_… header on every request. Responses are JSON; lists are paginated with limit and cursor.
- 3
To react to what happens, create a webhook with your server address (or the one from Make, Zapier or n8n) and pick the events.
REST
The API v1
Base URL https://hodosfit.com/api/v1. Dates in ISO 8601 (UTC), days as YYYY-MM-DD, money in euro cents. Limit: 600 requests per minute per key.
| Method | Path | What it does | Parameters |
|---|---|---|---|
| GET | /api/v1/me | The account: owner, team and the key in use. · read | — |
| GET | /api/v1/clients | Clients (active by default). · read | q, status=active|archived|all, tag, updated_since, limit, cursor |
| POST | /api/v1/clients | Creates a client (and emails the invite unless invite=false). · write | name, email, phone?, whatsapp?, goal?, tags?[], invite?=true |
| GET | /api/v1/clients/{id} | One client, by id, username or email. · read | — |
| GET | /api/v1/clients/{id}/notes | Team notes about the client. · read | — |
| POST | /api/v1/clients/{id}/notes | Adds a note (team only). · write | text |
| POST | /api/v1/clients/{id}/messages | Sends the client a message in their conversation. · write | text |
| GET | /api/v1/check-ins | Submitted check-ins. · read | client_id, status=submitted|reviewed|changes_requested, since, limit, cursor |
| GET | /api/v1/workouts | Completed workouts and classes. · read | client_id, since, limit, cursor |
| GET | /api/v1/appointments | The agenda (today to +30 days by default). · read | from, to, client_id, type, status, limit, cursor |
| GET | /api/v1/enrollments | Plan enrollments. · read | status=active|expired|cancelled|all, client_id, limit, cursor |
| GET | /api/v1/charges | Charges. · read | status=pending|overdue|paid|cancelled, client_id, due_from, due_to, limit, cursor |
| GET | /api/v1/tasks | Team tasks (open by default). · read | done=true|false, limit, cursor |
| POST | /api/v1/tasks | Creates a task. · write | title, notes?, client_id?, assignee_id?, due_date? |
| GET | /api/v1/webhooks | Webhook endpoints. · read | — |
| POST | /api/v1/webhooks | Creates an endpoint (returns the secret once). · write | url, events?[], description? |
| DELETE | /api/v1/webhooks/{id} | Deletes an endpoint. · write | — |
| GET | /api/v1/events | Webhook events, with a sample of each. · read | — |
Webhooks
Webhooks six events
Each delivery is a JSON POST with id, event, created_at and data, plus the headers X-Hodos-Event, X-Hodos-Delivery, X-Hodos-Timestamp and X-Hodos-Signature (v1 = HMAC-SHA256 of "timestamp.body" with the webhook secret). Answer 2xx within 10 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 12 h, and after 25 consecutive failures the webhook turns itself off.
client.createdA new client was added (created, imported or via the API).checkin.submittedA client submitted a check-in.workout.completedA client finished a workout or a Studio class.message.receivedA client messaged the team.enrollment.createdA client was enrolled in a plan.charge.paidA charge was marked as paid.
Verify the signature (Node.js)
import { createHmac, timingSafeEqual } from 'node:crypto'
export function verifyHodos(headers, rawBody, secret) {
const ts = headers['x-hodos-timestamp']
const sig = String(headers['x-hodos-signature']).replace('v1=', '')
const mac = createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex')
const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300
return fresh && sig.length === mac.length && timingSafeEqual(Buffer.from(sig), Buffer.from(mac))
}Sample client.created
{
"id": "evt_…",
"event": "client.created",
"created_at": "2026-11-07T10:12:00.000Z",
"data": {
"id": "cmx1abc000client",
"name": "Ana Sousa",
"email": "ana@example.com",
"phone": "+351912345678",
"whatsapp": null,
"username": "ana-sousa",
"photo_url": null,
"language": "pt",
"status": "active",
"birth_date": "1992-05-14",
"sex": "female",
"height_cm": 168,
"goal": "Perder gordura",
"goals": null,
"injuries": null,
"coach_id": null,
"nutritionist_id": null,
"tags": [
"Online"
],
"locations": [
"Estúdio"
],
"onboarded": false,
"last_seen_at": null,
"created_at": "2026-11-07T10:12:00.000Z",
"updated_at": "2026-11-07T10:12:00.000Z",
"url": "https://hodosfit.com/treinador/alunos/ana-sousa"
}
}MCP
The MCP for Claude and ChatGPT
MCP server over Streamable HTTP at https://hodosfit.com/api/mcp. Claude and ChatGPT connect with OAuth 2.1 (PKCE and dynamic registration): the coach approves access on hodosfit.com and chooses whether the assistant can act or only answer. Claude Code, Cursor and others that accept headers can use an API key in Authorization.
The tools · Reads
list_clients— Lists the coach's clients (active by default) with contact, status, goal, tags and when they were last in the app. Use query to search by name or email.get_client— Everything about one client: profile, latest check-in, active enrollment and charges, workouts in the last 30 days, team notes and next appointments.list_check_ins— Check-ins submitted by clients (weight, sleep, energy, stress, adherence, summary). Filter by client, status (submitted = waiting for your review) and how many days back.list_workouts— Workouts and Studio classes clients completed (title, when, duration, sets, volume, records). Filter by client and days back.list_appointments— The agenda: PT sessions, assessments, consultations, group classes and events. Defaults to today through the next 7 days. Dates as YYYY-MM-DD.list_enrollments— Clients enrolled in the coach's plans (price, dates, status). status: active (default), expiring (ends within 14 days), expired, cancelled, all.list_charges— Charges (membership fees, instalments). status: overdue (default), pending, paid, cancelled, all.list_tasks— The team's to-do list (open by default).business_summary— A briefing of the coaching business for a period (default 7 days): active and new clients, workouts, check-ins (and how many await review), overdue charges, revenue received, enrollments expiring soon, upcoming appointments and clients who went quiet.quiet_clients— Active clients with no completed workout and no check-in in the last N days (default 7), with their last activity.
The tools · Acts (with confirmation)
create_client— Adds a new client to the coach (sends the app invite by email unless invite is false). If the email already has a HODOSFIT account without a coach, a request is sent instead.add_client_note— Writes a private note on the client's profile (only the coaching team sees it).send_message— Sends the client a message in their HODOSFIT conversation, as you (they get a push notification). Write it in the client's language.create_task— Adds a task to the team's to-do list, optionally about a client and with a due date (YYYY-MM-DD).review_check_in— Reviews a submitted check-in: approve it with feedback for the client, or ask them to redo it (changes, feedback required). The client is notified.
Claude Code
claude mcp add --transport http hodos https://hodosfit.com/api/mcp \ --header "Authorization: Bearer hk_live_…"
Frequently asked questions
Who can create API keys?
The account owner (under My account › Integrations). In a team, keys and webhooks belong to the owner; the MCP can be connected by each coach on the team, with their role.
Can I use read-only access?
Yes: a "read only" key and, in the MCP, the "answers only" mode when authorising.
Does it work with Zapier?
Yes, today with Webhooks by Zapier (and with Make and n8n). The official app in the Zapier catalog is on the way.
Are there limits?
600 requests per minute per key, 10 keys and 20 webhooks per account. If you need more, talk to us.
Give your clients the app they deserve
Training, nutrition, check-ins and your business in one place. Start for free, no card needed.