Nutrition plans
Friendly people answer your questions quickly, by phone, chat or email. Our team has done this many times, so you never have to guess.
Overview
Clear prices, honest advice and no surprises along the way. Track your progress in the app and see how far you have come. Beginners are always welcome, with an intro session included. Thousands of members already trust us, and we work hard to keep it that way.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @kiteora-hq/sdk$ yarn add @kiteora-hq/sdk$ pnpm add @kiteora-hq/sdkConfiguration
Open 24 hours, so you can train whenever it suits your day. Community events keep you motivated, from fun runs to workshops. Create a file named kiteora-hq.config.json in the project root:
{
"project": "kiteora-hq",
"region": "ap-south",
"categories": ["strength", "cardio", "yoga"],
"retries": 2,
"timeoutMs": 7000,
"webhooks": { "enabled": true }
}| Option | Type | Default | Description |
|---|---|---|---|
project | string | - | Your project key from the dashboard. |
region | string | "us-east" | Data centre closest to your members. |
retries | number | 3 | How often a failed call is retried. |
timeoutMs | number | 10000 | Time before a request is cancelled. |
webhooks.enabled | boolean | false | Send events to your endpoint. |
Your first request
Certified coaches design every session around your level and your goals.
- Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
- Store it safelyKeep the key in an environment variable, never in your source code.
- Make the callRun the snippet below; it prints the first page of results.
import { Client } from "@kiteora-hq/sdk";
const client = new Client({ apiKey: process.env.API_KEY });
// list the newest classs in one category
const page = await client.classs.list({ category: "strength", limit: 20 });
for (const item of page.data) {
console.log(item.name, item.price);
}API reference
Every endpoint returns JSON and uses standard HTTP status codes.
/v1/classesList classes with paging and filters./v1/classesCreate a new class./v1/classes/{id}Update some fields of a class./v1/classes/{id}Archive a class; it can be restored for 30 days.{
"data": [
{ "id": "class_5836", "name": "Monthly pass", "price": 246 }
],
"has_more": true
}Troubleshooting
Next steps
Online coaching keeps you on track when you travel.