# NinjaHQ for developers (full text) Source: https://ninjahq.ai/developers. MCP server: https://mcp.ninjahq.ai/mcp. 318 tools. ## Connecting - Address: https://mcp.ninjahq.ai/mcp (every gym; or https:///mcp). MCP Streamable HTTP, stateless: POST JSON-RPC 2.0, JSON answers. Protocol versions 2025-06-18, 2025-03-26, 2024-11-05. - Sign-in: OAuth 2.1 with discovery (/.well-known/oauth-protected-resource/mcp, /.well-known/oauth-authorization-server), dynamic client registration (POST /oauth/register), authorization code with PKCE S256, POST /oauth/token. Access token 1 hour, refresh token 90 days (rotating). A person at the gym signs in with an emailed code and presses Yes, connect. - Roles: owners get every tool; managers the same list, owner-only tools refuse; Web developers get 66 website tools only; front desk staff can't connect. - Rules: dry_run: true shows a change without saving; confirm: true for turning off, removing, publishing and restoring; every change is in History and can be restored (restore_change); reads give totals, never customers' personal details; no payments, no sending email (drafts only), no scripts; 120 changes and 1,500 questions an hour per gym. ## Web developers' guide # NinjaHQ for web developers This guide is for web developers working on a gym's NinjaHQ website, and for the AI agent they use (ChatGPT, Claude or another MCP client). Gym owners can use every part of it too. Read it end to end before changing a site: it covers access, the safe way to work, the design system, pages, pictures, the menu, video, email designs, the checks your work goes through, and the rules that keep the gym safe. Everything here works on every NinjaHQ site without asking NinjaHQ. If something you need is missing, ask through `request_feature` (or Request a Feature in the back office) and Peak Beyond builds it into the platform. ## 1. Access - **Your sign-in.** The owner adds you on **Staff** in their back office (`https://yourgym.com/ninjahq-admin/staff`) with the role **Web developer**. You sign in at `https://yourgym.com/ninjahq` with a code sent to your own email. There are no shared passwords. - **What the role reaches:** Pages (the page builder, with the design, Versions and the Section Library), Photos, Email templates, Menu, Logo & icon, Redirects, Website check, AI assistant, Request a feature, What's new, the Help Center and your own Sign-in & alerts. Your start page is `/ninjahq-admin/dev-start`. - **What it never reaches:** customers, families, registrations, waivers, payments, staff and business settings. You cannot delete a page (unpublish it instead; the owner can delete). - **Your AI agent.** Add the connector `https://yourgym.com/mcp` to ChatGPT, Claude or any MCP client. It uses OAuth: you sign in with your email code and approve the app. A developer's app sees only the website tools listed in section 13. Call `get_developer_guide` first: it returns this guide. Access lasts an hour and renews for 90 days; you or an owner can disconnect it on the AI assistant page (`/ninjahq-admin/connect`). - **Owners** have every one of these tools, and more. ## 2. The safe way to work: site versions Work on a copy, share it, then publish it. This is like a Shopify theme library. 1. **Start a version.** `create_site_version { name, note }` (or Pages > Versions > Start a Copy of the Live Site) copies the live site: the design, its custom CSS, every page, the menu, the logo and the icon. Nothing you change in a version touches the live site. 2. **Edit inside it.** Pass `version: ` to the page and design tools (`list_pages`, `get_page`, `create_page`, `update_page`, `add_section`, `update_section`, `move_section`, `duplicate_section`, `remove_section`, `set_design`, `get_design_system`, `check_page`, `preview_page`). In the back office, open Versions and use the links under Pages in This Version. Leaving `version` out works on the live working copy, page by page, as before. The menu, logo and icon in a version are the ones the live site had when the version started: `set_menu`, `set_logo` and `set_favicon` change the live site, and publishing the version puts its own back. 3. **Review it.** `check_page` on each page you changed (section 10). Fix every error. 4. **Share a preview.** `site_version_link { version }` gives a link (`/pb/v/...`) that shows the whole site from that version, every page, menu and logo, with a "Preview of , not live" bar. Anyone with the link can view it (the owner, other developers, NinjaHQ). It is never indexed or cached, lasts 14 days, and can be renewed or turned off. Renewing ends the old link. 5. **Publish it.** `publish_site_version { version, confirm: true }` runs the review, then puts the design, every page, the menu, the logo and the icon live at once. The previous live site goes into the library. Errors block a web developer; warnings need `anyway: true` with a `reason`. Every publish queues the website check (section 11). 6. **Undo.** The library keeps the last 20 live versions. `restore_site_version { version, confirm: true }` (or Restore on Versions) puts one back in one step. Single pages also keep their own history (`list_versions`, `restore_version`). Limits: 10 draft versions at a time. Publishing a version replaces unpublished edits made meanwhile on the live working copy of the same pages, so agree with the owner who works where. ## 3. Design system - `get_design_system` returns the current design: colours, fonts, sizes, corner radius, light and dark schemes, the custom CSS and its rules. Read it first. - `set_design` changes it (in a version, or as a draft), and `publish_design` puts it live. Every colour pair is checked for WCAG AA contrast. A pair that fails is refused, with the reason. - **Fonts** are served from the site itself (no outside font services): Poppins, Barlow, Raleway, Montserrat and Saira Condensed (`get_design_system` lists them). If you need another font, ask through `request_feature` with its licence. - **Site custom CSS:** `set_design { custom_css }` (or Custom CSS for the Whole Site under Pages), up to 60,000 characters. It goes into the draft design and applies to every page after the design's tokens once the design is published. `custom_css` replaces the whole site CSS, so read it with `get_design_system` first and send it back with your change. - **Page custom CSS:** `update_page { css }`, up to 20,000 characters. It is scoped to that page automatically: every selector is prefixed with `[data-pb-page="/"]`. `&`, `:scope`, `html`, `body` and `:root` mean the page wrapper. `@media`, `@supports` and `@container` work inside it; `@keyframes` and `@font-face` stay global. - **What CSS may not contain:** `@import`, `@charset`, `@namespace`, `<`, backslashes, `expression()`, `javascript:`, or `url()` other than `/fonts/...` and `/media/...` (pictures and fonts on the site itself). The review (section 10) also flags removed focus outlines, text under 12px, fixed widths without `max-width:100%`, `position:fixed`, hidden navigation or skip links, heavy use of `!important`, animation without a `prefers-reduced-motion` guard, and `overflow-x:hidden` on html or body. - **No JavaScript and no raw HTML.** The sites load nothing from other companies and run no custom scripts (section 11). Everything interactive comes from sections; if you need behaviour that doesn't exist, ask. ## 4. Pages and sections - `list_section_types` lists every section type, its layouts (variants) and its fields, with limits. Today: Hero, Text, Picture and Text, Cards, Numbers, Quotes, Questions, Call to Action, Gallery, Logos, Steps, Pricing and Video. It also lists the site's live data sections (`data:`: class schedules, competitions, coaches and similar), which draw live information and can be placed but not edited. - A page holds up to 80 sections. `create_page { title, slug, kind }` makes one (title up to 80 characters). Slugs are lowercase words joined by dashes, up to three levels; the site's own addresses (shop, book, account and the like) are refused. `update_page` sets the title, slug, `seo { title (≤70), description (≤160) }`, `nav { show, label, order }` and `css`. - Built-in pages (home, classes, schedule, competitions and the others) are builder pages too, made of live data sections you can surround with your own sections. - Build with `add_section`, `update_section`, `move_section`, `duplicate_section` and `remove_section`. Then `check_page`, then `preview_page` (a signed 24-hour preview), then `publish_page`. - Section Library (`/ninjahq-admin/page-builder/library`) shows every section type with examples. ## 5. Pictures - **From a chat:** `upload_photo` with the file attached (ChatGPT and Claude hand files to the tool). - **From links:** `import_photo_from_url { url }` or `{ urls: [up to 20] }`. Links must be https to a public address (never a private network), the answer must be an image, and the picture must be one the gym has the right to use. Up to 4 MB and 10 seconds each, at most 3 redirects, 60 downloads an hour. - **From the owner's phone:** `request_photo_upload` gives a private one-hour link for up to 20 photos. - **Purposes:** `gallery`, `coach_action`, `coach_headshot`, `team`, `home_hero`, `classes_page`, `pricing_page`, `competitions_page`, `party_room` and `event_flyer` (both tools), `product` (`upload_photo` only), and `logo`, `logo_on_dark`, `favicon` (`import_photo_from_url` only, one link). Every picture is straightened, colour-corrected, resized for phones and computers as WebP, and stripped of camera and location data. Headshots are framed around the face. If the reply says the face couldn't be found, look at the Coaches page and send a closer crop. - `list_pictures` / `list_photos` find pictures; `update_photo` sets the description (alt text: say what is in the photo, never "image of") and where else it shows (`use_as`). `photos_to_describe` shows you new photos that still need a description. - **Logo and icon:** `set_logo { image, image_url or image_base64 }` (`also_on_dark: true` when the same logo works on dark backgrounds, `on_dark: true` for a light version for the footer), `set_favicon` (made square for you). PNG, WebP or JPEG up to 4 MB; SVG is not accepted yet, so export a PNG (a logo at least 300 px wide, an icon at least 192 × 192). Owners and developers; not managers. ## 6. Menu - `get_menu` returns the current menu and every page that can go in it. `set_menu { items }` replaces it: `[{ "label": "Classes", "path": "/classes" }, { "label": "Compete", "children": [{ "label": "Competitions", "path": "/competitions" }, { "label": "Results", "path": "/results" }] }]`. Paths start with `/` and must be pages of this site; draft pages are left out. A dropdown holds 2 to 10 pages (one page becomes a plain item). At most 12 items; labels up to 24 characters. `dry_run: true` shows the result without saving. `reset_menu` goes back to the standard menu. Owners and developers; not managers. - Keep it short: 5 to 7 top-level items read best on a computer's single row, and the menu opens as a list on phones. - A site version keeps the menu the live site had when it started, and puts it back when it's published (section 2). ## 7. Video The **Video** section takes a video the gym uploaded to its own library (at most 10, up to 2 minutes each, played from the site's own address with captions) or a YouTube link or id, a title (required), an optional poster from the site's own pictures, and text and buttons beside it (layouts: wide, video-left, video-right). Nothing plays or loads until the visitor presses "Play video: "; a YouTube video then plays from youtube-nocookie.com. Without a poster, a plain dark picture with a play sign is shown (never YouTube's own thumbnail). ## 8. Redirects `get_redirects`, `add_redirect { old_address, goes_to }`, `remove_redirect { old_address, confirm: true }`. Add one whenever you change a page's slug, so old links and search results keep working. ## 9. Email designs Email templates (`/ninjahq-admin/email-templates`) holds every customer email in a block editor, with a preview and a test send to yourself. `save_email_draft` saves a draft through the connector. Which emails are sent, and to whom, stays with the owner. ## 10. Checks before you publish `check_page` (and Review in the editor) returns findings as `{ severity, check, section, where, message, fix }`. - **Content:** alt text missing or poor; one h1 and no skipped heading levels; empty or very long headings; vague link words; buttons without a destination; contrast; pictures too small for their slot; very long unbroken words. - **CSS:** the rules in section 3. - **Layout, in the editor:** the page is rendered at 375×812 and 1280×800 and checked for sideways scrolling, elements sticking out, text under 12px, tap targets too small on phones, overlapping or touching buttons, cut-off words and stretched pictures. "Show Me" points at the problem. - **The gate:** a web developer cannot publish while errors remain. Warnings need `anyway: true` and a `reason`, which is kept with the version. The publish tools answer `blocked` or `needsAnyway` with the findings and what to do next. ## 11. After you publish: the website check Every publish, by anyone, queues a full check of the pages it touched: the same layout review and accessibility scan (axe, WCAG 2.1 AA) NinjaHQ runs on its own changes, at 375 and 1280 px. A design, menu, logo or site version change checks the home page and up to 7 pages from its menu. The result shows on **Website > Website check** (`/ninjahq-admin/website-check`). The person who made the change, and NinjaHQ, get an email listing each problem in plain words, with the page and how to fix it. Fix what it finds in a new version or on the page. ## 12. Rules that protect the gym These rules keep the gym out of lawsuits and demand letters. They apply to everything on the site: - **Privacy (CIPA and state privacy laws):** nothing on the site may send visitors' data to other companies. No tracking pixels, tag managers, chat widgets, session recording, outside fonts or embeds that load before a click. The content security policy only allows the site itself, plus youtube-nocookie.com after a click. Analytics are NinjaHQ's own, without cookies. - **Accessibility (ADA, WCAG 2.1 AA):** every page must pass the checks above, work with a keyboard, and work on a 375 px phone. No accessibility overlay widgets. - **Honest content:** no invented reviews or numbers, and prices and policies that match what the gym sells. - **Children (COPPA):** nothing collected from children under 13; parents sign and pay. ## 13. Tool reference (a web developer's connector) - **Pages:** `list_section_types`, `list_pages`, `get_page`, `create_page`, `update_page`, `add_section`, `update_section`, `move_section`, `duplicate_section`, `remove_section`, `check_page`, `preview_page`, `publish_page`, `list_versions`, `restore_version`. - **Design:** `get_design_system`, `set_design`, `publish_design`. - **Site versions:** `list_site_versions`, `create_site_version`, `get_site_version`, `site_version_link`, `publish_site_version`, `restore_site_version`. - **Pictures:** `list_pictures`, `list_photos`, `upload_photo`, `import_photo_from_url`, `request_photo_upload`, `update_photo`, `photos_to_describe`, `set_logo`, `set_favicon`. - **Menu:** `get_menu`, `set_menu`, `reset_menu`. - **Redirects:** `get_redirects`, `add_redirect`, `remove_redirect`. - **Words and emails:** `get_website_words`, `update_website_words`, `save_email_draft`. - **Help and requests:** `get_developer_guide` (this guide), `search_help`, `get_help_article`, `list_help_topics`, `get_overview`, `request_feature`. ## Page Builder sections - hero (Hero; layouts split, full, stacked, editorial, banner; blocks button up to 3): fields eyebrow (text 40), heading (text 100, required), text (md 500), image (image), size (select) - text (Text; layouts plain, centered, columns; blocks button up to 4): fields eyebrow (text 40), heading (text 100), text (md 6000, required) - split (Picture and Text; layouts image-left, image-right, overlap; blocks button up to 2): fields eyebrow (text 40), heading (text 100, required), text (md 2000), image (image, required) - columns (Columns; layouts halves, wide-left, wide-right, thirds, narrow-left, narrow-right; blocks column up to 6): fields eyebrow (text 40), heading (text 100), intro (md 600), boxed (bool), center (bool) - cards (Cards; layouts grid, list, compact, overlay, showcase; blocks card up to 24): fields eyebrow (text 40), heading (text 100), intro (md 600), columns (select) - list (Icon List; layouts plain, columns, boxes; blocks item up to 30): fields eyebrow (text 40), heading (text 100), intro (md 600) - stats (Numbers; layouts band, tiles; blocks stat up to 6): fields heading (text 100) - quotes (Quotes; layouts grid, single, wall, carousel; blocks quote up to 24): fields eyebrow (text 40), heading (text 100) - faq (Questions; layouts accordion, columns, toggles; blocks qa up to 30): fields eyebrow (text 40), heading (text 100), intro (md 600), open (bool) - cta (Call to Action; layouts band, card, split; blocks button up to 2): fields heading (text 100, required), text (md 500), image (image) - gallery (Gallery; layouts grid, mosaic, strip; blocks image up to 24): fields eyebrow (text 40), heading (text 100), intro (md 600), zoom (bool) - logos (Logos; layouts row, grid; blocks logo up to 24): fields heading (text 100) - steps (Steps; layouts numbered, timeline; blocks step up to 10): fields eyebrow (text 40), heading (text 100), intro (md 600) - pricing (Pricing; layouts cards, table; blocks plan up to 6): fields eyebrow (text 40), heading (text 100), intro (md 600) - video (Video; layouts wide, video-left, video-right; blocks button up to 2): fields eyebrow (text 40), heading (text 100), text (md 2000), file (videofile), video (youtube), title (text 100, required), poster (image) - jump (Jump Links; layouts buttons, bar; blocks button up to 10): fields eyebrow (text 40), heading (text 100) - shared (Shared Sections; layouts default): fields page (text 80) Blocks: - button: label (text 40, required), href (link, required), style (select) - card: title (text 80, required), text (md 600), image (image), icon (select), badge (text 24), price (text 24), href (link), label (text 40), href2 (link), label2 (text 40), hover (text 160), whole (bool) - stat: value (text 12, required), label (text 60, required) - quote: text (md 600, required), name (text 60, required), role (text 80), stars (select) - qa: q (text 160, required), a (md 6000, required), video (youtube), file (videofile), label (text 40), href (link) - column: heading (text 100), text (md 4000), image (image), video (youtube), file (videofile), title (text 100), label (text 40), href (link), label2 (text 40), href2 (link), picLink (bool) - item: icon (select), text (md 400, required) - image: image (image, required), caption (text 140) - logo: image (image, required), href (link) - step: title (text 80, required), text (md 600), when (text 30) - plan: name (text 60, required), price (text 24, required), per (text 24), text (md 800), href (link), label (text 40), featured (bool) Design: personalities bold-athletic, clean-studio, playful-kids, editorial, premium-dark, retro-gym; roles bg, surface, text, muted, accent, accentText, border; radius: sharp/soft/round; buttons: solid/outline/pill/underline; cards: flat/outlined/raised/tinted; photos: square/rounded/arch; dividers: none/angle/wave/curve; spacing: compact/normal/airy; width: narrow/normal/wide/full; headingCase: none/upper; motion: none/subtle. CSS rules: Plain CSS only: no @import, @charset or @namespace; no < or backslashes; url() only for the site's own files under /media/ and /fonts/ (nothing from other websites); nothing that runs code (expression(), javascript:, behavior, -moz-binding); no image-set() or element(); braces must balance and comments must be closed. ## Tools ### Help, overview and requests The gym at a glance, the NinjaHQ Help Center, the developer guide and feature requests. #### get_overview About this gym's website. Reads only. In the Web developer set. Start here. The gym's name, address, hours, pages, how many schedule entries, coaches and photos it has, and what this connector can and can't do. - No parameters. #### get_menu_sections Menu sections. Reads only. The back-office sections an owner can turn off (Vendors, Gift cards, Time clock, Competitions, ...): each one's key, name, menu area, whether it is in the menu, and what data it holds. Core screens (Today, Payments, People, Settings) can't be turned off. - No parameters. #### menu_sections Turn menu sections off or on. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take back-office sections the gym doesn't use out of the menu, the search and Today, or bring them back (owners only). Nothing is deleted and anything already set up keeps working. Turning a section off needs the owner's yes and confirm: true; tell them first if it holds data (in_use from get_menu_sections). - turn_off (array of string): Section keys to take out of the menu (from get_menu_sections) - turn_on (array of string): Section keys to bring back - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### request_feature Send NinjaHQ a feature request. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Send the NinjaHQ team a feature request from this gym: it is emailed to NinjaHQ, goes on NinjaHQ's backlog in its console, and the owner sees it under Request a feature in the back office. Use it whenever the owner asks for something this connector can't do (there is no tool for it, or a tool refused it): say so plainly (and, if the back office can do it, how: search_help), then ask "Would you like me to send this to NinjaHQ as a feature request?" Call it only after they say yes, with confirm: true. Write the request from what they asked for; never include a customer's personal details. - request (string, required): What the owner wanted to do, in their words, with enough detail for NinjaHQ to understand it (10 to 2000 characters) - area (string): The part of NinjaHQ it is about, e.g. Memberships, Competitions, Check-in, Website, AI assistant (optional) - confirm (boolean): Must be true, after the owner has said yes #### get_tips Tips & tricks. Reads only. NinjaHQ's tips and tricks for the signed-in person: short ideas for features of the back office they haven't tried yet (new features first), each with the screen it's on and, often, a request they can make of you. Also says whether they get a tip on their dashboard and by email. Use it when someone asks what else NinjaHQ can do, or for a tip. - all (boolean): true = every tip for this person, seen or not; false (default) = the next three they haven't seen #### set_tips Tips & tricks: on, off or seen. Changes the gym (recorded in History). Changes the signed-in person's own tips: turn the dashboard tip or the weekly tip email on or off, mark tips as seen, or start over. Only ever their own settings. - dashboard_tip (boolean): show a tip on my dashboard - weekly_email (boolean): email me one tip a week (Thursdays) - seen (array of string): tip ids to mark as seen (from get_tips) - start_over (boolean): show every tip again #### get_time_zones Time zones. Reads only. The website's time zone and, for a brand with several gyms, each location's own time zone and what time it is there now. A location's zone decides its today: which days can be booked, when a closure or special hours begin and end. - No parameters. #### set_time_zone Change a time zone. Changes the gym (recorded in History). Takes dry_run. Set the time zone of one location of a brand with several gyms, or of the website itself (owners). A location in another zone than the website gets its own calendar day and clock for bookings, drop-in days, closures and special hours. - time_zone (string, required): An IANA zone such as America/Denver, or Eastern, Central, Mountain, Pacific, Arizona, Alaska, Hawaii. For a location, "website" makes it follow the website's zone again - location (string): The location's name or key. Leave out to change the website's own time zone (the only one for a gym with one location) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_developer_guide The developer guide. Reads only. In the Web developer set. The guide for web developers and their AI agents on this website, in Markdown: access, the safe way to work (site versions and preview links), the design system and CSS rules, pages and sections, pictures, the menu, video, redirects, email designs, the checks before and after publishing, and every tool. Call it first when you're building or designing the site. - No parameters. #### search_help Search the NinjaHQ help center. Reads only. In the Web developer set. Search NinjaHQ's help center (knowledge base) for how to do something or how a feature works. Use it BEFORE explaining how NinjaHQ works, answering "how do I..." or "where is..." questions, or guessing at menu names: the articles are the source of truth. Returns article titles, short answers and links; call get_help_article for the full steps. - query (string, required): What the person wants to do or know, in their words, e.g. "refund a party deposit" - limit (integer): How many articles to return at most #### get_help_article Read a help article. Reads only. In the Web developer set. The full help article: where it is in the menu, who can do it, numbered steps, tips and common questions, with its link. Pass the slug from search_help or list_help_topics. Quote the steps and give the person the link. - slug (string, required): The article's slug, e.g. refund-a-payment #### list_help_topics Help center topics. Reads only. In the Web developer set. Every help topic and the articles in it (titles and slugs), to see what NinjaHQ can do or to browse when a search finds nothing. - topic (string): Only this topic (its id or name), optional ### History and undo Every change through the connector is kept in History with who made it and through which app. Compare with a date or put an earlier version back. #### list_changes History of changes. Reads only. The most recent changes to the website's content: when, who (and through which app), which part, and a short summary. Each has a change_id for get_change and restore_change. - area (string): Only this part, e.g. Weekly schedule, Coaches (optional) - limit (integer): How many, up to 50 (default 15) #### get_change What exactly changed. Reads only. The full before-and-after of one change, line by line. - change_id (string, required): The change's id, from list_changes #### compare_with_date Compare a part of the site with an earlier date. Reads only. What is different in one part of the site between a past date and now, e.g. how the weekly schedule has changed since September 1. - part (string, required): e.g. Weekly schedule, Coaches, Opening hours - date (string, required): YYYY-MM-DD #### restore_change Put an earlier version back. Changes the gym (recorded in History). Takes confirm. Undo: put one part of the site back to how it was just before a change. Owners only. Show the owner get_change first, ask them to confirm, then send confirm: true. A restore is itself a change, so it can be undone the same way. - change_id (string, required): The change to undo, from list_changes - confirm (boolean): Must be true, after the owner has said yes ### Pages, design and site versions The Page Builder: pages, sections, the design system, custom CSS, previews, publishing, page versions and whole-site versions. #### list_section_types Page builder: section types. Reads only. In the Web developer set. Every section type this site can use, with its layouts (variants), fields and blocks. Read this before adding sections. Types starting with data: show live data from the site (schedule, events, prices) and stay up to date by themselves. Field types: text (one line), md (light markdown), plain (text as typed, blank lines between paragraphs), lines (an array of one-line strings), buttons (an array of { label, href, style: "primary" or "secondary" }), link, image ({ src, alt }), select, bool, youtube (a YouTube link or the video's 11-character id; kept as the id), videofile (one of the site's own uploaded videos: pass the whole object list_videos gives, { src, w, h, seconds, captions, speech, poster }). The video section shows a video that loads only when a visitor presses play: either the site's own uploaded video (file, from list_videos; it plays from the site's own address with its captions) or a YouTube video (video: its link). Set one, not both. Give it a title (the play button reads "Play video: <title>") and, if you like, a poster picture from list_pictures (an uploaded video has its own poster frame; YouTube's own thumbnails are never used). - No parameters. #### get_design_system Page builder: the design. Reads only. In the Web developer set. The site's design: color schemes (with their contrast), fonts, type scale, corners, button, card and photo styles, the personalities to start from, and any warning that the site looks too much like another one. For owners, managers and developers it also has the site's custom CSS (draft.customCss) and css: the rules CSS must follow and how a page's own CSS is kept to that page. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### list_pictures Page builder: pictures. Reads only. In the Web developer set. The site's picture library: each picture's address (src), alt text and size. Use these addresses for image fields (with their alt text, or better words for that spot); new pictures are uploaded by the owner under Pictures in the back office. - No parameters. #### list_pages Page builder: pages. Reads only. In the Web developer set. The site's builder pages with their kind (page, or the site's own kinds such as article) and status (draft only, published, or published with unpublished changes). kind lists only that kind. - kind (string): Only pages of this kind ("page", "article", ...). - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### get_page Page builder: one page. Reads only. In the Web developer set. One page: its draft document (sections with ids), the live document, and an outline. - page (string, required): The page: its address ("/camps", "/" for home) or id. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### create_page Page builder: new page. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. A new page as a draft, from a template or from your own sections. Templates: blank, landing, about, coming-soon (a photo with opening news and a sign-up button), camp, parties, hiring; they use the site's own photos and live sections, and the words to change are in [square brackets] (check_page lists them). kind makes another kind of page the site has (list_pages names them; an article lives at /articles/<address> and starts from the site's article sections). Not visible to visitors until published. - kind (string): The kind of page: "page" (the default) or one list_pages names, such as "article". - slug (string, required): Its address without the slash ("summer-camps"); "" is the home page. - title (string, required): The page's title (its heading and the menu label unless nav.label says otherwise) - template (string: blank | landing | about | coming-soon | camp | parties | hiring): Start from a ready-made page; blank starts empty - sections (array of object): Your own sections instead of a template: [{ type, variant, scheme, settings, blocks }] - sections[].type (string): A section type from list_section_types (e.g. hero, cards, faq, or data:schedule). - sections[].variant (string): The layout, one of the type's variants. Leave out for the first. - sections[].scheme (string): A color scheme name from get_design_system (e.g. light, dark, accent). - sections[].hidden (boolean): Keep the section on the page but don't show it. - sections[].show (string: all | phone | computer): Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere. - sections[].overlay (string: none | light | medium | dark | lighten): The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice. - sections[].divider (object): Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them. - sections[].anchor (string): The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it. - sections[].ornament (boolean): A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections. - sections[].lift (boolean): The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section. - sections[].still (boolean): The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion. - sections[].photo (object): A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it. - sections[].settings (object): The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people). - sections[].blocks (array of object): The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given. - seo (object): Search results: { title, description } - seo.title (string): The title in search results (about 60 characters) - seo.description (string): The description in search results (about 155 characters) - nav (object): The page's menu entry: { show, label, order } - nav.show (boolean): true adds the page to the website's menu - nav.label (string): The menu's words for the page; leave out to use the title - nav.order (integer): Where it goes in the menu, from 1 (leftmost) - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### update_page Page builder: page details. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change a page's title, address, search title and description, menu entry, or its own CSS (draft). css is CSS for this page only (owners, managers and developers; up to 20,000 characters): every selector is kept to the page for you, so `.pb-t-hero h1 { letter-spacing: .04em }` becomes `[data-pb-page="/camps"] .pb-t-hero h1 {...}`, and `&` or `:scope` means the page itself. Style the page's classes: .pb-sec (each section, with id = its section id), .pb-t-<type>, .pb-v-<layout>, .pb-s-<scheme>, .pb-btn-1/.pb-btn-2, .pb-card, and the design's variables (var(--pb-accent), var(--pb-text), var(--pb-font-h), ...). Rules: no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files. css replaces the page's CSS; "" removes it. Check the preview on a phone and a computer before publishing. - page (string, required): The page: its address ("/camps", "/" for home) or id. - title (string): The page's new title - slug (string): The page's address after the domain, e.g. summer-camp for /summer-camp - seo (object): Search results: { title, description }; send only what changes - nav (object): The menu entry: { show, label, order }; send only what changes - css (string): This page's own CSS (replaces what it has; "" removes it). Kept to this page automatically. - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### add_section Page builder: add a section. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Add a section to a page's draft, at the end or before/after another section. - page (string, required): The page: its address ("/camps", "/" for home) or id. - type (string, required): A section type from list_section_types (e.g. hero, cards, faq, or data:schedule). - variant (string): The layout, one of the type's variants. Leave out for the first. - scheme (string): A color scheme name from get_design_system (e.g. light, dark, accent). - hidden (boolean): Keep the section on the page but don't show it. - show (string: all | phone | computer): Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere. - overlay (string: none | light | medium | dark | lighten): The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice. - divider (object): Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them. - divider.top (string: none | angle | slant | curve | wave | mountains | triangle): The shape on the section's top edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge - divider.bottom (string: none | angle | slant | curve | wave | mountains | triangle): The shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge - anchor (string): The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it. - ornament (boolean): A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections. - lift (boolean): The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section. - still (boolean): The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion. - photo (object): A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it. - settings (object): The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people). - blocks (array of object): The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given. - before (string): Put it before this section id. - after (string): Put it after this section id. - index (integer): Or its position, 0 = first. - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### update_section Page builder: change a section. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change one section: its layout, color scheme, hidden state, where it shows (show: all, phone or computer), the shade over its photo (overlay), the shapes on its edges (divider), a photo behind it (photo), some of its fields (others stay), or all of its blocks. - page (string, required): The page: its address ("/camps", "/" for home) or id. - id (string, required): The section id from get_page. - type (string): A section type from list_section_types (e.g. hero, cards, faq, or data:schedule). - variant (string): The layout, one of the type's variants. Leave out for the first. - scheme (string): A color scheme name from get_design_system (e.g. light, dark, accent). - hidden (boolean): Keep the section on the page but don't show it. - show (string: all | phone | computer): Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere. - overlay (string: none | light | medium | dark | lighten): The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice. - divider (object): Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them. - divider.top (string: none | angle | slant | curve | wave | mountains | triangle): The shape on the section's top edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge - divider.bottom (string: none | angle | slant | curve | wave | mountains | triangle): The shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge - anchor (string): The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it. - ornament (boolean): A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections. - lift (boolean): The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section. - still (boolean): The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion. - photo (object): A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it. - settings (object): The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people). - blocks (array of object): The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given. - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### move_section Page builder: move a section. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Move a section before or after another, or to a position. - page (string, required): The page: its address ("/camps", "/" for home) or id. - id (string, required): The section to move, from get_page - before (string): Put it before this section id. - after (string): Put it after this section id. - index (integer): Or its position, 0 = first. - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### duplicate_section Page builder: copy a section. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Copy a section right after itself (to try a different layout side by side, then remove one). - page (string, required): The page: its address ("/camps", "/" for home) or id. - id (string, required): The section to copy, from get_page - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### remove_section Page builder: remove a section. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Remove a section from the draft (the live page keeps it until you publish). - page (string, required): The page: its address ("/camps", "/" for home) or id. - id (string, required): The section to remove, from get_page - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### check_page Page builder: check a page. Reads only. In the Web developer set. Review a page's draft before publishing, without changing anything: every rule (fields, links, alt text, headings) plus the review's findings, each with severity (error or warning), the section it's in, the problem in plain words and the exact fix: missing or poor alt text, heading order, empty or long headings, vague link words ("click here"), buttons that go nowhere, color contrast, pictures too small for their spot, very long words, and the page's CSS (removed focus outlines, text under 12px, fixed widths wider than a phone, hidden menus, motion without a reduced-motion guard, unreadable color pairs). Fix the errors (and ideally the warnings) with the other tools, then check again. The editor's Review also checks the layout at phone and computer sizes. - page (string, required): The page: its address ("/camps", "/" for home) or id. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### preview_page Page builder: preview link. Reads only. In the Web developer set. A private link to the page's draft in the draft design, good for 24 hours, with the review's findings (see check_page). Share it with the person to look at before publishing (check it on a phone too). - page (string, required): The page: its address ("/camps", "/" for home) or id. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### set_design Page builder: change the design. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the site's design in the draft: start from a personality and/or change tokens (schemes, fonts, scale, base, headingWeight, headingCase, radius, radiusPx (an exact corner size in pixels), buttons, cards, photos, dividers, spacing, width, motion; a scheme may also have the site's own roles listed by get_design_system). It affects every page once published (on some sites the whole site, not only builder pages). Answers with contrast problems (the change is refused until fixed) and warnings if the site would look too much like another. custom_css is the site's own CSS for what the tokens can't do (owners, managers and developers; up to 60,000 characters): it applies to every page after the design, replaces the CSS the site has ("" removes it; leave it out to keep it), and follows the rules in get_design_system's css (no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files). For one page only, use update_page's css. - personality (string): Start from a personality: its key or name from get_design_system (personalities) - changes (object): Design tokens to change, by name from get_design_system, e.g. { "radius": "round", "headingCase": "upper" } - custom_css (string): The site's whole custom CSS (replaces it; "" removes it). Read the current one in get_design_system's draft.customCss first and change that. - dry_run (boolean): Check the change and show the result without saving it. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### publish_page Page builder: publish a page. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Put a page's draft on the live site. Only those who publish can (owners and managers); ask the person first and pass confirm: true after they agree. The review (check_page) runs first. If it finds problems the page isn't published and you get findings: blocked: true means this person's role can't publish while errors remain, so fix every error with the other tools and try again; needsAnyway: true means you may fix them, or (only if the person agrees) call again with anyway: true and a reason in a few words, which is kept with the version. - page (string, required): The page: its address ("/camps", "/" for home) or id. - note (string): A short note on what changed, kept in the page's version history - confirm (boolean): Must be true, after the owner has said yes - anyway (boolean): Publish over the review's findings (the person agreed). Needs reason. - reason (string): Why it's published anyway, a few words. - version (string): Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts. #### publish_design Page builder: publish the design. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Put the draft design live on every page. Owners and managers only; ask first and pass confirm: true. The review checks the design's colors and the site's custom CSS first; it answers like publish_page (blocked, or needsAnyway with anyway and reason). - note (string): A short note on what changed, kept in the design's version history - confirm (boolean): Must be true, after the owner has said yes - anyway (boolean): true publishes even though the review found problems (owners only, after they agree); give the reason - reason (string): Why it goes live anyway, in the owner's words; kept in History with the change #### list_versions Page builder: versions. Reads only. In the Web developer set. Published versions of a page (or of the design: page "design"), newest first. - page (string, required): The page: its address ("/camps", "/" for home) or id. #### restore_version Page builder: put a version back. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Put an earlier version back into the draft; with live: true (owners and managers, confirm: true) straight onto the site. - version (integer, required): The version's number, from list_versions - live (boolean): true puts it straight on the live site (owners and managers, with confirm: true); otherwise it becomes the draft - confirm (boolean): Must be true, after the owner has said yes #### list_site_versions Page builder: site versions. Reads only. In the Web developer set. The site's versions, like Shopify's theme library: the one that's live, the ones being worked on (each a copy of the whole site: design, site and page CSS, every page, and the site's menu and logo), and the library of versions that were live before (ready to restore). Each has its id, name and preview link. - No parameters. #### create_site_version Page builder: new site version. Changes the gym (recorded in History). In the Web developer set. Start a new version: a copy of the live site (or of another version: from) to change without touching the live site. Then pass its id as `version` to get_page, update_section, set_design and the other page and design tools; nothing changes for visitors until publish_site_version. Answers with its preview link (14 days) to share. - name (string, required): A short name, like "Spring refresh". - note (string): What this version is for, shown in the version library, e.g. Fall redesign - from (string): Copy this version id instead of the live site (a library version, to start from an old look). #### get_site_version Page builder: one site version. Reads only. In the Web developer set. One version: its status, pages (with the ids to use as page inside it), and preview link. - version (string, required): The version id, or "live". #### site_version_link Page builder: version preview link. Changes the gym (recorded in History). In the Web developer set. The version's preview link: anyone with it sees the whole site as that version (every page, the design, the menu and logo) for 14 days, with a bar saying it's a preview. action: create (or give the current one), renew (a fresh 14 days; the old link stops), revoke (turn it off). - version (string, required): The version's id, from list_site_versions - action (string: create | renew | revoke): create (or show the current link), renew (a fresh 14 days) or revoke (the link stops working) #### publish_site_version Page builder: publish a site version. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Put a whole version live at once: its design and every page (pages not in it come off the site; their drafts are kept), and the site's menu and logo. The version that was live goes into the library. Only those who publish can; ask the person first and pass confirm: true. The review runs on every page first and answers like publish_page (blocked: fix the errors in the version and try again; needsAnyway: fix, or with the person's agreement call again with anyway: true and a reason). - version (string, required): The version's id, from list_site_versions - confirm (boolean): Must be true, after the owner has said yes - anyway (boolean): true publishes even though the review found problems (owners only, after they agree); give the reason - reason (string): Why it goes live anyway, in the owner's words; kept in History with the change - note (string): A short note on what this version changes, kept in the library #### restore_site_version Page builder: restore a site version. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Put a version from the library back live (one step, the same as publishing it again; the review runs and owners can publish anyway with a reason). Ask first and pass confirm: true. - version (string, required): The library version's id, from list_site_versions - confirm (boolean): Must be true, after the owner has said yes - anyway (boolean): true publishes even though the review found problems (owners only, after they agree); give the reason - reason (string): Why it goes live anyway, in the owner's words; kept in History with the change #### set_coaches_layout Page builder: Coaches page layout. Changes the gym (recorded in History). Takes dry_run. See or change the layout of the Coaches page (how the coach cards are arranged). Without layout: the layouts, the one live now, the one in the draft and the one suggested for this team (from how many coaches there are and how many have a bio and photos). With layout: saves it into the Coaches page's draft and gives a preview link; it goes live only with publish_page, so show the person the preview and ask before publishing. - layout (string: featured | pair | lead | pair-lead | grid | photos | list | suggested): The layout: featured (one big card, then a grid), pair (two big cards side by side, then a grid), lead (two big cards one above the other, then a grid), pair-lead (two side by side, a third big card, then a grid), grid (every coach the same size), photos (every coach a big photo card, two to a row), list (a compact list), or suggested. Leave out to see the choices and the suggestion first. - dry_run (boolean): Check without saving. #### get_holiday_decorations Holiday decorations. Reads only. Which holidays decorate the website, their dates this year, the look each one has and every look to choose from (with a preview link for each). - No parameters. #### update_holiday_decorations Change holiday decorations. Changes the gym (recorded in History). Takes dry_run. Turn holidays on or off and pick the look for any holiday (owners only). Each holiday shows by itself on its dates. Send only what changes; suggest the preview links from get_holiday_decorations first. - turn_on (array of string): Holiday keys to decorate for (from get_holiday_decorations) - turn_off (array of string): Holiday keys to stop decorating for - looks (object): Holiday key -> look key, e.g. { "christmas": "wonderland" } - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### unpublish_page Take a page off the website. Changes the gym (recorded in History). Takes dry_run. Takes confirm. In the Web developer set. Take a published Page Builder page off the website (owners and managers), the same as Take Down in Website > Pages. The draft and every version are kept, so publish_page puts it back. A built-in page (Classes, Pricing...) taken down shows the site's own version of that page again. Needs the owner's yes and confirm: true. - page (string, required): The page's address (like /winter-camp) or its id from list_pages - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_site_personality Start the design from a personality. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Start the website's draft design from one of the ready-made personalities (owners and managers), the same as Website > Pages > Design > Start From a Personality: colors, corners, buttons and cards change; the site's fonts, its own CSS and NinjaHQ's part stay. Only the draft changes: check a preview, then publish_design puts it live after the owner says yes. get_design_system lists the personalities. - personality (string, required): A personality's key or name from get_design_system (personalities) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### list_videos The website's own videos. Reads only. The videos the gym uploaded to its website (at most 10, up to 2 minutes each), newest first: video_id, title, length, captions (speech: "none" no talking, "open" words already on the video, "file" a caption file), and the pages that use it. To show one in a Video section, pass its whole "file" object as the section's file setting (add_section or update_section, type "video") and leave the YouTube link (video) empty. New videos are added in the page editor: Website > Pages, edit a page, a Video section, Upload a Video, Choose a Video, Upload a New One (a phone or computer; the video is made smaller there first). - No parameters. #### update_video Rename, re-caption or delete a website video. Changes the gym (recorded in History). Takes confirm. Change one of the website's own videos (list_videos gives the ids). rename: a new title for the library (pages keep their section's own title). captions: say whether there is talking and, if so, give the captions as .srt or .vtt text. delete: removes the video for good, only after the owner says yes (confirm: true), and only when no page uses it (take it out of those Video sections first). - video_id (string, required): The video's id, from list_videos - action (string: rename | captions | delete, required): rename, captions (add or change them) or delete - title (string): rename: the new title (the play button says it) - speech (string: none | open | file): captions: none = no talking, open = the words are already on the video, file = captions given in caption_text - caption_text (string): captions with speech file: the text of an .srt or .vtt caption file (times and words) - confirm (boolean): delete: must be true, after the owner has said yes ### Website words, menus, footer and logo The website's main words and booking link, every menu (header, footer, mega menus), the footer, logo and browser icon, contact details, hours, the hiring page and the success story. #### update_hours Opening hours for a day. Changes the gym (recorded in History). Takes dry_run. Change the regular opening hours shown in the footer and on the contact page for one day of the week. - day (string, required): Day of the week - open (string): Opening time, e.g. 11 AM - close (string): Closing time, e.g. 8 PM - closed (boolean): true if the gym is closed that day every week - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_hiring_page Hiring page (Join our team). Reads only. The website's Join our team page: whether it is shown, its intro and the open positions. Never job applications or applicants. - No parameters. #### update_hiring_page Change the hiring page. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Show or hide the Join our team page, change its intro, or change the open positions (owners only). Send only what changes. Hiding the page needs the owner's yes and confirm: true. - show_page (boolean): false = hide the Join our team page - intro (string): Up to 600 characters; empty = the page writes its own - positions (array of object): The whole list of open positions (up to 12), replacing the current one: read get_hiring_page first and send every position to keep. [] = a general coach opening - positions[].title (string, required): e.g. Ninja Coach - positions[].type (string: part-time | full-time | seasonal | contract): The kind of job - positions[].description (string): What the job is (up to 600 characters) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_website_questions NinjaHQ's questions about the gym. Reads only. The questions NinjaHQ asked the gym to finish and improve its website (camps, parties, the FAQ page's "Questions parents ask", photos, legal...), with their id and topic, and the answers already given. - show (string: open | answered | all): Default open #### answer_website_question Answer one of NinjaHQ's questions. Changes the gym (recorded in History). Takes dry_run. Save the owner's answer to one of NinjaHQ's questions (owners and managers). Write down what the owner says; never invent facts, prices or policies. NinjaHQ is told about the answer, as when it is typed in the back office. - question_id (string, required): From get_website_questions - answer (string, required): The owner's answer in their own words (up to 2,000 characters) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_cole_questions Cole's questions about the website. Reads only. In the Web developer set. The questions Cole, NinjaHQ's watchdog, asks after the website check (a photo without a description, words cut off on phones, words hard to read over a photo, other problems): each with its question_id, the page, and the answers to pick from (does: fix = Cole makes the change, write = Cole uses the person's own words, leave, done = they fixed it themselves, link = where it's fixed by hand). Also the last answered ones. - No parameters. #### answer_cole_question Answer one of Cole's questions. Changes the gym (recorded in History). In the Web developer set. Answer one of Cole's questions as the person decided (owners, managers, web developers): Cole makes the change (a photo's description everywhere it shows, shorter words, a darker shade over a photo), records it in History so it can be put back, and checks the page again. Ask the person first and use their own words for text; never pick an answer for them. - question_id (string, required): From get_cole_questions - answer (string, required): The answer's id (answer) from get_cole_questions - text (string): For an answer with needs_text: the person's own words (a photo's description, shorter words) #### get_contact_details Contact details. Reads only. How families reach the gym, as the website shows it: phone, contact email, address and social media links. - No parameters. #### update_contact_details Change contact details. Changes the gym (recorded in History). Takes dry_run. Change the phone number, contact email, address or social media links shown on the website (owners only). Send only what changes. - phone (string): e.g. (404) 555-0123 - contact_email (string): Where website messages go - street (string): Street address, e.g. 123 Main St, Suite 4 - city (string): City - state (string): e.g. GA - zip (string): ZIP or postal code - instagram (string): A link or @handle; empty to remove - facebook (string): A link or page name; empty to remove - youtube (string): A link or @handle; empty to remove - tiktok (string): A link or @handle; empty to remove - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_game_switch Is the 404 game on?. Reads only. Whether NinjaHQ Full Send, the obstacle-course game on the website's page-not-found page and at /full-send, is on (Website > Redirects). - No parameters. #### set_game_switch Turn the 404 game on or off. Changes the gym (recorded in History). Takes dry_run. Turn NinjaHQ Full Send, the game on the website's page-not-found page, on or off (owners only). Off: no game, no game card or podium on the page-not-found page, /full-send is a page not found, and the privacy page stops listing the game. Players' saved scores stay on the shared leaderboards. - on (boolean, required): true shows NinjaHQ Full Send on the page-not-found page and at /full-send; false turns it off (the page then shows only its message and the main pages) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_website_words The website's main words. Reads only. In the Web developer set. The tagline, the home page headline and the line under it, the description search engines show, and where Book a class / Sign up buttons go (Settings > Words and Contact). - No parameters. #### update_website_words Change the website's main words. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the website's main words (owners only): tagline, headline, the line under it, the search description, and where the booking buttons go. Send only what changes. Where Website > Pages edits the home page, its words there win; this changes what new sections start with and what other pages use. - tagline (string): The small line above the headline, up to 80 characters - headline (string): The home page's big headline, up to 120 characters - line_under_headline (string): Up to 400 characters - search_description (string): What Google shows under the site's name, up to 300 characters (about 155 show) - booking_link (string): Where Book a class and Sign up go: a page of this site like /book or /memberships, or another booking website's address - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_site_footer The website's footer. Reads only. In the Web developer set. The bottom of every page: the Visit us band (small label, heading, an extra button, the message button's words, the hours heading and note) and the footer under it (the words under the logo, the two link columns' headings and links, the name in the copyright line). Each shows what it is now and what the site shows when it's empty. - No parameters. #### update_site_footer Change the website's footer. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the bottom of every page (owners and managers): the Visit us band and the footer's words and link columns. Send only what changes; an empty value puts back what the site shows by itself. It's on every page at once, like Website > Pages > any page > Site Footer. - small_label (string): Above the Visit us heading, up to 40 characters - heading (string): The Visit us heading, up to 80 characters - extra_button (object): One extra button first in the band, like { label: 'Book a Free Trial', href: '/free-trial' }; {} for none - extra_button.label (string): The extra button's words in the Visit us band; empty removes the button - extra_button.href (string): Where the button goes: a path like /parties or an https:// link - message_button (string): The words on the button to the contact form, up to 30 characters - hours_heading (string): Up to 40 characters - hours_note (string): A line under the hours, up to 160 characters - words_under_logo (string): Up to 160 characters; empty shows the tagline - column_1_heading (string): The first link column's heading - column_1_links (array of object): Up to 12 links, each { label, href } (href starts with / or https://); [] lists the site's pages by itself - column_1_links[].label (string): The link's words - column_1_links[].href (string): Where it goes: a path like /camps or an https:// link - column_2_heading (string): The second link column's heading - column_2_links (array of object): Up to 12 links, each { label, href } (href starts with / or https://); [] lists none - column_2_links[].label (string): The link's words - column_2_links[].href (string): Where it goes: a path like /camps or an https:// link - copyright_name (string): The name after © and the year, up to 80 characters - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_menu The website's menu. Reads only. In the Web developer set. Without handle: the menu across the top of the website as it is now, whether it is the gym's own or the standard one, and every page it can link to (available_pages). The menu is a list of items in order, left to right. Each item is either a page, { "label": "Classes", "path": "/classes" }, or a dropdown, { "label": "About", "children": [{ "label": "Coaches", "path": "/coaches" }, { "label": "Contact", "path": "/contact" }] }. A path starts with "/" and must be one of the site's pages (get_menu lists them as available_pages); a dropdown has no path of its own and holds 2 to 10 pages (one page becomes a plain item). At most 12 items; on phones the menu opens as a list, and 5 to 7 items read best on a computer's single row. Labels: up to 24 characters, short words families use. Draft pages and pages not on the list are refused. Example: [{"label":"Classes","path":"/classes"},{"label":"Schedule","path":"/schedule"},{"label":"Parties","path":"/parties"},{"label":"About","children":[{"label":"Coaches","path":"/coaches"},{"label":"Contact","path":"/contact"}]}] With handle: one menu in full (list_menus lists them; "main" and "footer" start from what the site shows now). - handle (string): A menu's handle from list_menus (main, footer, ...) for its full shape: dropdowns, mega menus, badges. Leave out for the header menu in the simple shape. #### list_menus Every menu on the website. Reads only. In the Web developer set. Every menu the gym has (Website > Menus): its handle, name, top-row words and where it shows (header, phone menu, footer, top bar), which places still use NinjaHQ's standard menu, and the menu style (how dropdowns open, drill down or collapsible on phones, mega menu width, animation). - No parameters. #### save_menu Create or change a menu. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Create a menu or replace one menu's items (owners and the web developer). Read it first with get_menu { handle } and send every item that should stay. An item: { "label": "Classes", "href": "/classes", "newTab"?: true, "badge"?: { "text": "New", "tone": "new|hot|sale|info" }, "hide"?: "desktop|mobile", "icon"?: "none" or an icon for the phone menu (top row only; left out = one that fits the item's name): home, classes, schedule, pricing, parties, camps, competitions, coaches, shop, gift, waiver, photos, contact, location, about, account, news, star, heart, clock, timer, ticket, medal, flag, podium, play, cake, tent, fitness, school, question, mail, cart, shirt, signup, sparkle, lock, map, jobs, family, "children"?: [items] (a dropdown list, 3 levels at most) OR "mega"?: { "width": "container|full|auto", "align": "left|center|right", "cols": [{ "span": 1-3, "blocks": [{ "type": "links", "title"?, "links": [{ "label", "href" }] } | { "type": "heading", "text" } | { "type": "text", "text", "mobile"?: false } | { "type": "image", "src" (from list_pictures), "alt", "href"?, "caption"? } | { "type": "button", "label", "href", "style": "primary|outline" }] }] } (only on the top row, up to 6 columns) }. Links: a page (/classes), another website (https://...), tel: or mailto:. Pictures come from the gym's own library (list_pictures). Use dry_run first for big changes. History can undo it. - handle (string): The menu to change (from list_menus), or main / footer / top-bar to make the site's own from what it shows now. Leave out to create a new menu. - name (string, required): The menu's name, like Main menu or Footer - items (array of object, required): The whole menu, top row in order (see the description for an item's shape) - shows_in (array of header | mobile | footer | topbar): Where the menu shows: header (computers), mobile (the phone menu; without it phones use the header menu), footer (link columns), topbar (the thin bar above the header, 5 links). Leave out to keep where it shows now. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_menu_style Change how the menus open and look. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the menu style for the whole website (owners and the web developer). Send only what changes. History can undo it. - trigger (string: hover | click): Dropdowns open when the pointer is over them, or when clicked - align (string: center | left | right): Where the top row's items line up on computers - mobile (string: accordion | drilldown): On phones, dropdowns fold open under the item (accordion, collapsible) or slide in as their own screen with Back (drilldown) - side (string: right | left | full): The phone menu slides in from the right, the left, or fills the screen - width (string: container | full | auto): Mega menus as wide as the page content, the full screen, or only as wide as they need (a menu can set its own) - icons (string: on | off): An icon in a tile beside each item in the phone menu (on by default). One item's icon is set on the item with save_menu - iconColor (string: brand | colors): The icon tiles' color: brand = the website's own color (the default), colors = a different color for each icon - fill (string: on | off): Every top menu item opens a mega menu filled in from the site: Coaches shows the coaches, others a line about the page, a button and one of the gym's photos (on by default); a mega menu the owner built always wins - animation (string: fade | slide | none): How dropdowns appear (people who ask for less motion get none) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_header_layout Change the header's layout. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change how the top of every page is laid out (owners and the web developer): the standard three bars, or one row like the gym's own website, and whether the sale banner sits above or below the header. Send only what changes. History can undo it. - layout (string: standard | single): standard: a top bar (schedule, phone), the logo bar, then the menu bar under it. single: one dark row on computers, the logo at the left, the menu beside it and the location and Sign In at the right, like many gyms' own websites (phones keep the menu button). - banner (string: above | below): Where the sale banner (Marketing > Promotions) shows: above the header, like many gyms' own announcement bars, or below it (the default). Send only to change it. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_footer_style Change how the footer looks. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change how the footer at the bottom of every page looks (owners and the web developer), to match the gym's own website: the Visit us band, addresses under the locations, the copyright line's colour and lines under the headings. Send only what changes; History can undo it. - visit_band (string: show | hide): The Visit us band above the footer (hide it when the pages end with their own call to action) - addresses (boolean): Each location's street under its name in the footer (brands with several locations) - bottom_bar (string: standard | accent): The copyright line: standard (light) or in the website's accent colour - heading_lines (boolean): A short line in the accent colour under each footer column heading - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### delete_menu Delete a menu. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Delete one menu (owners and the web developer). Wherever it showed, the website goes back to NinjaHQ's standard menu. Ask first; History can undo it. - handle (string, required): The menu's handle from list_menus - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_menu Change the website's menu. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Replace the website's whole menu (owners and the web developer). Call get_menu first and send every item that should stay. The menu is a list of items in order, left to right. Each item is either a page, { "label": "Classes", "path": "/classes" }, or a dropdown, { "label": "About", "children": [{ "label": "Coaches", "path": "/coaches" }, { "label": "Contact", "path": "/contact" }] }. A path starts with "/" and must be one of the site's pages (get_menu lists them as available_pages); a dropdown has no path of its own and holds 2 to 10 pages (one page becomes a plain item). At most 12 items; on phones the menu opens as a list, and 5 to 7 items read best on a computer's single row. Labels: up to 24 characters, short words families use. Draft pages and pages not on the list are refused. Example: [{"label":"Classes","path":"/classes"},{"label":"Schedule","path":"/schedule"},{"label":"Parties","path":"/parties"},{"label":"About","children":[{"label":"Coaches","path":"/coaches"},{"label":"Contact","path":"/contact"}]}] The menu keeps page and team entries in step with the site afterwards, like the back office's Website > Menu. - items (array of object, required): The whole new menu, in order (see the description for the shape) - items[].label (string): The menu's words for the item - items[].path (string): The page it opens, e.g. /classes; leave out for a heading that only opens its children - items[].children (array of object): A drop-down under this item: [{ label, path }] - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### reset_menu Go back to the standard menu. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Drop the gym's own menu and go back to the standard one (the usual pages, plus Teams and the extra pages by themselves). Owners and the web developer. Ask first; History can undo it. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_logo Change the logo. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the logo at the top of every page and in emails (owners and the web developer), or with on_dark: true the version for dark backgrounds (without one, the footer shows the logo in white). A PNG with a see-through background looks best, at least 300 pixels wide; SVG isn't accepted, so export a PNG. Only use a picture the gym owns or has the right to use (its own photos and logo, or ones it licensed); never one copied from someone else's website. The current logo is in get_overview. - image (object): A picture attached in this chat (ChatGPT hands it over as a file). - image.download_url (string, required): The attached file's download link, as the chat app hands it over - image.file_id (string, required): The attached file's id in the chat app - image.mime_type (string): The file's type, e.g. image/jpeg or image/png - image.file_name (string): The file's name as the owner attached it - image_url (string): Instead of image: an https link straight to the logo file (PNG, WebP or JPEG) - image_base64 (string): Instead of image: the PNG, WebP or JPEG file, base64-encoded (a data: URL is fine) - on_dark (boolean): true = this is the light or white version for dark backgrounds (the footer); the main logo stays - also_on_dark (boolean): true = the main logo also works on dark backgrounds as it is - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_favicon Change the browser-tab icon. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Change the small icon in the browser tab and on phones' home screens (owners and the web developer). Square works best (at least 192 × 192); a wide picture is fitted into a square with see-through edges. Only use a picture the gym owns or has the right to use (its own photos and logo, or ones it licensed); never one copied from someone else's website. - image (object): A picture attached in this chat (ChatGPT hands it over as a file). - image.download_url (string, required): The attached file's download link, as the chat app hands it over - image.file_id (string, required): The attached file's id in the chat app - image.mime_type (string): The file's type, e.g. image/jpeg or image/png - image.file_name (string): The file's name as the owner attached it - image_url (string): Instead of image: an https link straight to the icon file - image_base64 (string): Instead of image: the PNG, WebP or JPEG file, base64-encoded - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_success_story The gym's success story. Reads only. The gym's success story on Insights > Growth (owners only): the measured gains since the gym moved to NinjaHQ (what NinjaHQ would share), the owner's own words and name, and whether NinjaHQ may share it on ninjahq.ai and in its sales materials. - No parameters. #### set_success_story Write or share the success story. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Save the owner's words for the success story on Insights > Growth, or say whether NinjaHQ may share it (owners only). Write only the owner's own words, never invent a quote. Changing whether it is shared needs the owner's own yes and confirm: true. - in_your_words (string): What changed for the gym, in the owner's own words (up to 600 characters); "" removes it - name_and_title (string): Like Jordan Brooks, Owner - ninjahq_may_share (boolean): true = NinjaHQ may share the gym's name, the measured gains and these words on ninjahq.ai and in its sales materials; false = stop sharing - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### reopen_website_question Reopen one of NinjaHQ's questions. Changes the gym (recorded in History). Takes dry_run. Put an answered question from NinjaHQ back on the open list, to change the answer (owners and managers). Then answer it again with answer_website_question. - question_id (string, required): From get_website_questions (show: answered) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_question_helpers Who helps answer NinjaHQ's questions. Reads only. The gym's coaches and staff (names and roles) and the question topics each one helps answer. Each person is emailed only their topics' questions. Owners only. - No parameters. #### set_question_helpers Choose the topics a person helps answer. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Choose which of NinjaHQ's question topics a coach or staff member helps answer (owners only). They are then emailed just those questions and can answer them. Taking every topic away needs confirm: true. - person (string, required): The coach's or staff member's name (or email), from get_question_helpers - topics (array of string, required): Every topic they help with, from get_question_helpers; an empty list = none - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Shop, gift cards, codes and promotions Products with sizes and colors, product photos, vendors, shop settings, gift cards, discount codes and sales promotions. #### get_products Shop products. Reads only. Every product the gym sells on the website shop or at the front desk: price, status, category, where it is sold, sizes and other options, each variant's price and stock. Products only: never orders or buyers. - No parameters. #### add_product Add a product. Changes the gym (recorded in History). Takes dry_run. Add a product to the shop and/or the front desk (owners and managers). Ask for the price and the sizes; never guess them. It is saved as a draft unless on_sale is true, so the owner can add photos first (upload_photo with purpose product). Sold on the website and picked up at the gym unless told otherwise. - title (string, required): e.g. Ninja Team T-shirt (up to 100 characters) - price (number, required): Dollars - compare_at_price (number): The old price shown crossed out, in dollars; 0 to remove - description (string): What families read on the product page (up to 3,000 characters) - category (string: tshirts | tanks | hoodies | shorts | socks | hats | clothing | bottles | grip | bags | stickers | books | food | lessons | fee | other): Sets the sales tax kind: lessons (a private lesson or session sold online with no date: the gym sets the time; name the option Coach for one price per coach), tshirts, tanks, hoodies, shorts, socks, hats, clothing, bottles, grip (grip socks, chalk, tape), bags, stickers, books, food (drinks and snacks), fee (spectator or other fee, front desk only), other - option_name (string): The first option's name, e.g. Size - sizes (array of string): The first option's values in order, e.g. ["YS", "YM", "S", "M"]. Replaces the list: a size left out is removed with its stock. [] = one size - second_option_name (string): A second option, e.g. Color; empty to remove it - second_option_values (array of string): e.g. ["Black", "Red"]; every pair with the sizes becomes a variant - sold_on_website (boolean): true = sold in the website shop - sold_at_front_desk (boolean): true = sold at the front desk - offered_at_registration (boolean): Offer it on the competition registration form (needs sold_on_website) - pickup (boolean): Can be picked up at the gym - shipping (boolean): Can be shipped - on_sale (boolean): true = on sale now; false = a draft that isn't sold. To stop selling, use stop_selling_product - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_product Change a product. Changes the gym (recorded in History). Takes dry_run. Change a product: name, price, description, category, sizes and options, where it is sold, pickup or shipping, each variant's price, stock or SKU, or put a draft on sale (owners and managers). Send only what changes; everything else, photos included, stays. - product (string, required): The product's current name - new_title (string): The product's new name - price (number): Dollars - compare_at_price (number): The old price shown crossed out, in dollars; 0 to remove - description (string): What families read on the product page (up to 3,000 characters) - category (string: tshirts | tanks | hoodies | shorts | socks | hats | clothing | bottles | grip | bags | stickers | books | food | lessons | fee | other): Sets the sales tax kind: lessons (a private lesson or session sold online with no date: the gym sets the time; name the option Coach for one price per coach), tshirts, tanks, hoodies, shorts, socks, hats, clothing, bottles, grip (grip socks, chalk, tape), bags, stickers, books, food (drinks and snacks), fee (spectator or other fee, front desk only), other - option_name (string): The first option's name, e.g. Size - sizes (array of string): The first option's values in order, e.g. ["YS", "YM", "S", "M"]. Replaces the list: a size left out is removed with its stock. [] = one size - second_option_name (string): A second option, e.g. Color; empty to remove it - second_option_values (array of string): e.g. ["Black", "Red"]; every pair with the sizes becomes a variant - sold_on_website (boolean): true = sold in the website shop - sold_at_front_desk (boolean): true = sold at the front desk - offered_at_registration (boolean): Offer it on the competition registration form (needs sold_on_website) - pickup (boolean): Can be picked up at the gym - shipping (boolean): Can be shipped - on_sale (boolean): true = on sale now; false = a draft that isn't sold. To stop selling, use stop_selling_product - variants (array of object): Per-variant price, stock or SKU changes - variants[].variant (string, required): The variant's name from get_products, e.g. M or Black / M - variants[].price (number): Its own price in dollars; 0 = the product's price - variants[].stock (integer): How many are in stock; -1 = not tracked - variants[].sku (string): The variant's SKU (stock code); empty removes it - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### stop_selling_product Stop selling a product. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a product off sale, on the website and at the front desk: it becomes a draft, kept with its photos and stock, and update_product with on_sale: true sells it again (owners and managers). Ask the owner to confirm, then send confirm: true. Nothing is deleted. - product (string, required): The product's id or exact name, from get_products - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_discount_codes Discount codes. Reads only. The gym's discount codes: the code, the discount, where it works, start and end dates, limits, whether it is active and how many times it has been used. Totals only: never who used it. - No parameters. #### add_discount_code Create a discount code. Changes the gym (recorded in History). Takes dry_run. Create a discount code customers type at checkout (owners and managers). Ask the owner for the discount, where it works and any dates or limits; never guess them. - code (string, required): What customers type, e.g. COACH10 (letters and numbers, 3 to 30) - kind (string: percent | amount | free_shipping, required): percent off, a dollar amount off, or free shipping (shop orders only) - value (number): The percent (1 to 100) or the dollars off - works_for (array of shop | registration | camp | party | class, required): Where it works: shop (shop orders), registration (competition registrations), camp (camps and special events), party (party bookings), class (class drop-ins and sessions) - starts_on (string): YYYY-MM-DD; empty = now - ends_on (string): YYYY-MM-DD; empty = never - most_uses (integer): How many times it can be used in all; 0 = no limit - once_per_customer (boolean): true = each customer can use the code only once - members_only (boolean): Only for families with a membership - minimum_order (number): Dollars; 0 = none - note (string): A private note, e.g. Coaches' families (up to 120 characters) - active (boolean): Default true - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_discount_code Change a discount code. Changes the gym (recorded in History). Takes dry_run. Change a discount code: the code itself, the discount, where it works, dates, limits or note, or switch it back on (owners and managers). Send only what changes. - code (string, required): The code as it is now - new_code (string): The new code customers type; leave out to keep the current one - kind (string: percent | amount | free_shipping): percent off, a dollar amount off, or free shipping (shop orders only) - value (number): The percent (1 to 100) or the dollars off - works_for (array of shop | registration | camp | party | class): Where it works: shop (shop orders), registration (competition registrations), camp (camps and special events), party (party bookings), class (class drop-ins and sessions) - starts_on (string): YYYY-MM-DD; empty = now - ends_on (string): YYYY-MM-DD; empty = never - most_uses (integer): How many times it can be used in all; 0 = no limit - once_per_customer (boolean): true = each customer can use the code only once - members_only (boolean): Only for families with a membership - minimum_order (number): Dollars; 0 = none - note (string): A private note, e.g. Coaches' families (up to 120 characters) - active (boolean): true = works at checkout. To switch it off use turn_off_discount_code - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### turn_off_discount_code Switch a discount code off. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Stop a discount code from working at checkout; it is kept, with its uses, and update_discount_code with active: true switches it on again (owners and managers). Ask the owner to confirm, then send confirm: true. - code (string, required): The code to turn off, as customers type it - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_gift_cards_online Gift cards on the website. Reads only. Whether the website sells gift cards (the gift cards page) and the amounts it offers. Gift cards themselves, their balances and buyers stay in the back office. - No parameters. #### update_gift_cards_online Change gift cards on the website. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Switch gift card sales on the website on or off, or change the amounts offered (owners and managers). Switching sales off needs the owner's yes and confirm: true. Selling, using or voiding a card is done at the front desk. - sell_online (boolean): false = stop selling gift cards on the website (cards already sold keep working) - amounts (array of number): Up to 6 dollar amounts to offer, $5 to $500, e.g. [25, 50, 100] - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_promotions Promotions. Reads only. The gym's own promotions and the ready-made ones for the big sale days (Black Friday class pack sale, gift card bonus, birthday party deal, early-bird camps, shop sale, toy drive, Parents' Night Out): what each one is, whether it's off, scheduled, running or ended, its dates, code and banner words, the suggested dates and amounts for the ones that are off, and what must be set up first. - No parameters. #### set_promotion Turn on or change a promotion. Changes the gym (recorded in History). Takes dry_run. Turn on a promotion, change one, or make the gym's own (key "new" with name and kind) (owners only). It starts and ends by itself on its dates; a code promotion makes the discount code (shown in Money > Discount codes too). Use the suggested values from get_promotions unless the owner said otherwise, and confirm the dates, code and amount first. - key (string, required): The promotion's id from get_promotions (e.g. bf-packs, gift-bonus, or an own one's own-... id), or "new" to make the gym's own - name (string): Own promotions: its name, e.g. Winter Break Special - kind (string: code | banner): Own promotions: a discount code, or a banner only - works_for (string: pack | party | camp | class | registration | shop): Own code promotions: class packs, birthday parties, camps and special events, drop-in classes, competition entries or the shop - button_page (string): Own promotions: the website page the banner's button opens, e.g. /camps (leave out for the page that fits the discount) - button_words (string): Own promotions: the button's words, up to 30 letters - starts (string, required): First day, YYYY-MM-DD - ends (string, required): Last day, YYYY-MM-DD - code (string): Discount code customers type (code promotions only), e.g. BLACKFRIDAY - discount_type (string: percent | amount): percent off or dollars off (code promotions) - discount (number): The percent (1-90) or dollars (1-1000) off - every_dollars (number): Gift card bonus: for every this many dollars in gift cards... - bonus_dollars (number): ...the buyer gets a bonus card of this many dollars - banner (boolean): Show the banner at the top of the website on those days (default true) - banner_words (string): Own banner words (up to 110 letters); leave out to use the suggested words - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### turn_off_promotion Turn off a promotion. Changes the gym (recorded in History). Takes dry_run. Turn off a promotion now (owners only): its banner comes down and its discount code stops working. - key (string, required): The promotion's key from get_promotions - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### delete_promotion Delete one of the gym's own promotions. Changes the gym (recorded in History). Takes dry_run. Delete one of the gym's own promotions (owners only); its code stops working. Ready-made ones can only be turned off. - key (string, required): The own promotion's id from get_promotions (own-...) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_shop_settings Shop settings. Reads only. The website shop's settings: whether the Shop page is on, gear offered at competition registration and its discount, pickup at the gym and its note, shipping and its price, free shipping over an amount, the order number prefix, and which shipping update emails customers get. Settings only: never orders or buyers. - No parameters. #### update_shop_settings Change the shop settings. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change the website shop's settings (owners and managers): the Shop page on or off, gear at competition registration and its discount, pickup and its note, shipping and its price, free shipping over an amount, the order number prefix, and the automatic shipping update emails. Send only what changes. Switching the Shop page, gear at registration, pickup, shipping or a shipping email off needs confirm: true after the owner says yes. At least one of pickup or shipping stays on. - shop_page_on_website (boolean): true shows the Shop page on the website - gear_offered_at_competition_registration (boolean): true offers gear while families register for a competition - registration_discount_per_item (number): Dollars off each product bought with a competition registration; 0 = none - pickup_at_the_gym (boolean): true lets customers pick orders up at the gym - pickup_note (string): Shown at checkout and in the receipt, e.g. At the front desk (up to 160 characters) - shipping (boolean): Orders can be shipped (US addresses) - shipping_price_per_order (number): Dollars - free_shipping_over (number): Dollars; 0 = no free shipping - order_number_prefix (string): Up to 8 letters or digits, e.g. WNA; empty for none - out_for_delivery_email (boolean): true emails the customer when an order is out for delivery - delivered_email (boolean): true emails the customer when an order is delivered - delivery_problem_email (boolean): true emails the customer when a delivery has a problem - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_vendors Vendors. Reads only. The vendors whose products the gym sells for them (Money > Vendors; owners only): each vendor's name, the email their monthly statement goes to, their share of each sale, the card fee they carry, and which products they own. Not sales, amounts owed or payouts. - No parameters. #### save_vendor Add or change a vendor. Changes the gym (recorded in History). Takes dry_run. Add a vendor, or change one's name, statement email, share of each sale or card fee (owners only; Money > Vendors). Ask the owner for the share and the fee; never guess them. A changed share applies to sales from now on. This never pays anyone: payouts are marked in the back office. - vendor (string, required): The vendor's name (an existing one to change it, or a new one to add it) - new_name (string): The vendor's new name - statement_email (string): Where their monthly statement is emailed (on the 1st, copied to the owners); empty for none - their_share_percent (number): Their share of each sale: 100 = all of it, 80 = the gym keeps 20% - card_fee_they_carry_percent (number): 0 to 20; taken off card sales only; 0 = the gym absorbs card fees - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_product_photos A product's photos. Reads only. One product's photos in order (photo 1 is the main one shown in the shop), each with its description and a link to see it, and whether the product page shows a size guide. Use the photo numbers with set_product_main_photo or remove_product_photo. - product (string, required): The product's name #### set_product_main_photo Choose a product's main photo. Changes the gym (recorded in History). Takes dry_run. Make one of a product's photos the main one: it shows first in the shop and on the product page (owners and managers). The other photos keep their order. - product (string, required): The product's id or exact name, from get_products - photo (integer, required): The photo's number from get_product_photos - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_product_photo Remove a product photo. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take one photo off a product (owners and managers). Show the owner which photo it is (its see_it link) and ask; then send confirm: true. The picture stays in the gym's photo library. - product (string, required): The product's id or exact name, from get_products - photo (integer, required): The photo's number from get_product_photos - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_size_guide Take a product's size guide off. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take the size guide (how to measure and each size's measurements) off a product's page (owners and managers). NinjaHQ can add it again later; it can't be added from here. Ask the owner, then send confirm: true. - product (string, required): The product's id or exact name, from get_products - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Photos and avatars Upload or import photos (straightened, color-corrected, resized and stripped of location data for you), describe them, edit them, put them in albums, and the gym's own avatars. #### upload_photo Add a photo to the website. Changes the gym (recorded in History). In the Web developer set. Put a photo on the website, everything done for you: it is straightened, color-corrected (a headshot is also framed so the face is centered), resized for phones and computers, converted to a fast format, stripped of camera and location data and checked for duplicates. You write its description from what you see. Use this whenever the owner attaches a photo in the chat (ChatGPT passes it as image). Pick the purpose from what the owner says and what the photo shows (a single coach's face = coach_headshot, a coach on an obstacle = coach_action, a group in team shirts = team, otherwise gallery); ask when it's unclear, and ask which coach or product when that's needed. If this app can't hand the photo over, use request_photo_upload instead. - image (object): The photo the owner attached in this chat (ChatGPT hands it over as a file). - image.download_url (string, required): The attached file's download link, as the chat app hands it over - image.file_id (string, required): The attached file's id in the chat app - image.mime_type (string): The file's type, e.g. image/jpeg or image/png - image.file_name (string): The file's name as the owner attached it - purpose (string: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | product | event_flyer | avatar | page): Where it goes (default gallery): page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon) - coach (string): The coach's name, for coach_headshot and coach_action - product (string): The product's name, for product - event (string): The special event's title, for event_flyer - description (string): Required with image or image_base64 (not for a headshot or product): one plain sentence you write from the photo saying what happens in it, for visitors who can't see it and for Google. Never guess anyone's name, age or traits. - image_url (string): Instead of image: an https link straight to the picture file - image_base64 (string): Instead of image: the JPEG, PNG or WebP file, base64-encoded (up to about 3 MB) #### request_photo_upload Get a link for the owner to upload photos. Changes the gym (recorded in History). In the Web developer set. A private link (good for an hour) where the owner picks photos from their phone or computer: up to 20 at once for the Photos page, coaches in action and team photos, 4 for the party room, 10 for a product, 1 for a headshot, a page's top picture or a special event's flyer. Each photo is prepared exactly like upload_photo. Use it when the photo can't be handed over in the chat (for example in Claude, or for many photos at once). When the owner says they're done, call photos_to_describe: it shows you the new photos so you can write each description and save it with update_photo. - purpose (string: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | product | event_flyer | avatar | page): Where they go (default gallery): page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon) - coach (string): The coach's name, for coach_headshot and coach_action - product (string): The product's name, for product - event (string): The special event's title, for event_flyer - description (string): Only when the owner already said what the (first) photo shows; otherwise the website writes descriptions itself #### edit_photo Crop, zoom, turn or brighten a photo, change its background, or edit a coach's headshot. Changes the gym (recorded in History). Takes dry_run. Edit one of the gym's photos like a photo app: crop it to a shape, zoom in on what matters, turn, mirror or straighten it, make it brighter or more colorful, or put the people on a plain background (a studio look for coach cards and flyers). With coach, edit that coach's headshot the same way (Coaches > Edit Headshot). Saving makes an edited copy (the original stays for History) and, by default, puts it everywhere the original was on the website, including the pages built in Website > Pages (their live page and draft; built_pages lists them, and each can be put back with restore_change). Describe the edit and ask first; use dry_run to check. - photo (string): photo_id from list_photos, or a picture address from list_pictures (the gym's own photos only). Not needed with coach - coach (string): Edit this coach's headshot instead (the name from get_coaches): it is cut square from the coach's original photo and shown in a circle; zoom, center_x / center_y, light and background apply, and earlier headshot edits are kept unless changed - background (string): Put the people in the photo on a plain background: white, light_gray, your_color (the gym's brand color), your_dark_color, or a color like #1e90ff; keep = the photo's own. Works best on photos of people. A photo with a new background is saved as a new photo unless everywhere is true - shape (string: original | square | wide | 4:3 | 3:2 | tall | phone): Crop to a shape: wide 16:9 (page tops), square (cards), tall 4:5 (social posts), phone 9:16 (stories). Default original - zoom (number): 1 = the whole photo fits the shape; 2 = twice as close. It stops before the photo would look blurry - center_x (number): What to keep in the middle, 0-100 % across (50 = middle) - center_y (number): 0-100 % down (50 = middle; faces are often 30-40) - turn (string: none | right | left | upside_down): Turn the photo a quarter right, a quarter left or upside down - mirror (boolean): true flips the photo left to right - straighten (number): Degrees, -15 to 15: tilt to make a crooked photo level (+ turns it clockwise) - look (string: original | brighter | vivid | soft | black_and_white): A color look: brighter, vivid, soft or black and white; original undoes them - brightness (number): Percent, 50-150 (100 = unchanged); overrides look - contrast (number): Percent, 50-150 - color (number): Percent, 0-200 (0 = black and white) - everywhere (boolean): Default true (false with a new background): the edited photo replaces the original everywhere the site uses it. false = only add the edited copy to the library (then use_as with update_photo, or list_pictures + update_page, to place it) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_photo Change a photo's description or where it shows. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Fix the description of an uploaded photo (it changes everywhere the photo appears), also show a photo somewhere else (such as the big picture at the top of the home page), or change its framing and zoom: the spot pages keep in view and how far they zoom in, like a coach's card background with heads cut off (Frame & Zoom in the back office). Get photo_id from list_photos or upload_photo's answer; for framing, a picture address from list_pictures works too. - photo_id (string, required): The photo's id, from list_photos - description (string): A new one-sentence description of what the photo shows - use_as (string: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | event_flyer | avatar | page): Also show it here: page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon) - coach (string): The coach, for coach_action - event (string): The special event, for event_flyer - center_x (number): Framing: the spot every page keeps in view when it crops the photo, percent across (0 left, 100 right). Use when a head or the action is cut off. - center_y (number): Framing: percent down (0 top, 100 bottom); 20-35 keeps faces in a group shot - zoom (number): Zoom in on that spot, 1 (none) to 3. The file isn't changed; edit_photo makes a cropped copy instead. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_photo_album Put photos in an album. Changes the gym (recorded in History). Takes dry_run. Group Photos page photos into albums: photos in the same album show together under the album's name on the Photos page, with links to each album at the top. Send an empty album to take photos out of their album. Same as Select Several > Put in Album on the back office's Photos page. - photos (array of string, required): photo_id values from list_photos, or picture addresses of NinjaHQ's photos from list_pictures - album (string): The album's name, for example Birthday parties. Empty takes the photos out of their album. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### photos_to_describe See uploaded photos that still need a description. Reads only. In the Web developer set. Shows you (as images) up to 6 uploaded photos whose description is still a placeholder, usually ones the owner added through an upload link. Look at each, write one plain sentence about what happens in it (never guessing anyone's name, age or traits), and save it with update_photo. If one isn't right for a family gym's public website, tell the owner and offer to remove it. - No parameters. #### list_photos Photos the gym has uploaded. Reads only. In the Web developer set. Photos added through this connector, newest first: id, what they show (the description), where they are used, and whether the description is still a placeholder. A photo that was taken off the site stays listed as kept for History until it is deleted for good. - No parameters. #### remove_photo Take a photo off the site. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take an uploaded photo off the site (a headshot goes back to the coach's initials). Ask the owner to confirm first. It can be put back from History, because the photo itself is kept. Only when the owner wants it gone completely, send delete_permanently: true as well: that cannot be undone. - photo_id (string, required): The photo's id, from list_photos - confirm (boolean): Must be true, after the owner has said yes - delete_permanently (boolean): true = also delete the stored photo for good (owners only). It can then NOT be put back from History. Only when the owner asks to delete it completely. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### list_avatars The gym's own avatars. Reads only. The gym's own avatars (pictures athletes pick for their profile, registration and family account), with how many athletes picked each, and NinjaHQ's built-in avatars (key, name, group: Badges, Animals, Silly or Athletes) with whether this gym hides them, plus drawing_request: the words to give an AI that draws pictures (ChatGPT, Gemini) so every avatar matches the set. Use it when the owner wants to make, see or change their avatars. - subject (string): Optional: what the next avatar should show (for example "our mascot Rocket the raccoon on the warped wall"); the answer's drawing_request uses it #### update_avatar Rename, hide or show avatars. Changes the gym (recorded in History). Takes dry_run. Rename one of the gym's own avatars, or hide or show avatars in this gym's pickers: its own (id) or NinjaHQ's built-in ones (id or ids = their keys; they keep their names). Owners and managers. Nothing is deleted, and athletes who picked a hidden one keep it. - id (string): The gym's own avatar's id, or one of NinjaHQ's avatars' key, from list_avatars - ids (array of string): Instead of id: several of NinjaHQ's avatars' keys to hide or show at once (for example every Silly one) - name (string): A new short name (40 characters at most) - hidden (boolean): true takes it out of the picker (athletes who picked it keep it); false shows it again - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### import_photo_from_url Add photos from links. Changes the gym (recorded in History). In the Web developer set. Add pictures from https links when they can't be attached in the chat: the website downloads each one (public web addresses only, 10 seconds and 4 MB at most, it must be an image) and prepares it exactly like upload_photo (straightened, color-corrected, resized, camera and location data removed, duplicates found). Up to 20 links in one call with urls; each gets its own result. Only use a picture the gym owns or has the right to use (its own photos and logo, or ones it licensed); never one copied from someone else's website. Owners and the web developer. - url (string): One https link straight to a picture file - urls (array of object): Instead of url: up to 20 links, each a string or { url, description } - urls[].url (string): The picture's https:// address - urls[].description (string): One plain sentence about what the photo shows, for screen readers - purpose (string: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | event_flyer | avatar | page | logo | logo_on_dark | favicon): Where they go, as for upload_photo (default gallery); logo, logo_on_dark and favicon set the site's logo or icon (one link) - coach (string): The coach's name, for coach_headshot and coach_action - event (string): The special event's title, for event_flyer - description (string): One plain sentence about what the photo shows, when you know (one link). Without one the photo gets a placeholder; then look at it with photos_to_describe and save a description with update_photo. ### Website analytics and insights Everything the website measures, for the AI to recommend changes: a whole-site review against the period before, one page in depth, heatmaps with tap spots, funnels, menu use, forms field by field, speed and problems, and who visits when. Counts only, no visitor identifiable. #### get_website_visits Website visits (analytics). Reads only. How many people visited the website, where they came from, which pages they read and what they did (booking clicks, calls, sign-ups), compared with the period before. Totals only. - period (string: 7d | 28d | 90d | 12m): 7d, 28d (default), 90d or 12m #### get_website_insights What to improve on the website. Reads only. What to change on the website to get more bookings, worked out from real visits (the same ranked list as Analytics > What to improve): slow pages on phones, where people get frustrated or give up on a form, which videos they watch and whether watching leads to bookings, sections few people reach, A/B test results, booking steps where people stop, menu items nobody uses, pages people leave at once, missing pages. Each tip says what was seen, what to try, which Analytics tab shows it, whether NinjaHQ handles it (website code) and whether there is enough data yet. Totals only: no visitor is identifiable. - days (integer): How many days to look at, 7 to 90 (default 28) #### get_visitor_insights Heatmap, funnels and menu use. Reads only. How visitors really use the website (the OutWaves module visitor-insights): where they tap on a page per screen size (heatmap), the steps toward a booking, party, membership, waiver or message and where people stop (funnels), which menu items they use or never use, pages people leave within 7 seconds, form fields they skip or redo, and ranked recommendations with the numbers behind them and whether there is enough data yet. Totals only: no visitor is identifiable, no screen recordings. - days (integer): How many days to look at, 7 to 90 (default 28) - page (string): A page path for its heatmap, e.g. / or /parties (default: the home page) - screen (string: phone | tablet | desktop): Screen size for the heatmap (default phone) #### get_website_review Website review: everything Analytics measured. Reads only. In the Web developer set. Everything the website's analytics measured in one call, to recommend what to change on the website: visits, visitors and key actions against the period before, the ranked What to improve list, funnels toward bookings (with the period before), menu use, pages people leave at once, heatmap summaries per page and screen size, forms, speed, problem pages, missing pages, videos, A/B tests, and a playbook of which tool makes each kind of change. Start here for 'how is my website doing' or 'what should I change'; drill in with get_page_report, get_page_heatmap, get_form_insights, get_website_problems and get_website_audience. Totals only: no visitor is identifiable. - days (integer): How many days to look at, 7 to 90 (default 28) #### get_page_report One page in depth. Reads only. In the Web developer set. Everything about one page of the website: views (and the period before), visits, time on page, visits that started or ended there, scroll depth, how many views reached each section and for how long, taps per screen size and what was tapped, people who left within 7 seconds and where they came from, speed, frustration taps and errors, forms on the page, and the What to improve tips for it. Use it to suggest what to move, shorten, reword or add on that page. Totals only. - page (string): A page path, e.g. / or /parties or /classes/ninja-kids (default: the home page) - days (integer): How many days to look at, 7 to 90 (default 28) #### get_page_heatmap Page heatmap with tap spots. Reads only. In the Web developer set. The full heatmap of one page on one screen size (Marketing > Website traffic > Heatmap): taps by part of the page, every element tapped with taps per 100 views and the spots inside it where people tapped, and which pages and screen sizes have taps. Use it to see whether people find the booking buttons, tap things that aren't links, or ignore whole parts of a page. Never a recording of anyone's screen. - page (string): A page path, e.g. / or /parties or /classes/ninja-kids (default: the home page) - screen (string: phone | tablet | desktop): Screen size (default phone) - days (integer): How many days to look at, 7 to 90 (default 28) #### get_form_insights Forms field by field. Reads only. In the Web developer set. Every form on the website (contact, party request, sign-ups, waivers, registrations): started, sent and the percent sent against the period before, and per field how many touched and filled it, errors, average seconds, how many left at that field and how many changed it again, with the module's advice. Field names only, never what anyone typed. - days (integer): How many days to look at, 7 to 90 (default 28) #### get_website_problems Website problems and speed. Reads only. In the Web developer set. What goes wrong for visitors: taps that do nothing, taps again and again, taps followed by an error (page and element), script errors, real-visitor speed overall, per page and per kind of page (main content, tap response, layout jumps, with the slow element and likely cause), and missing pages people asked for with their visit counts. Says which ones NinjaHQ fixes (code) and which the owner can (redirects, words, buttons). - days (integer): How many days to look at, 7 to 90 (default 28) #### get_website_audience Who visits and when. Reads only. In the Web developer set. Who visits the website and when: visits by weekday and hour in the gym's time zone with the busiest hours, phones vs tablets vs computers, browsers (including the Instagram and Facebook apps), systems, languages, countries, states, cities (approximate), channels, sources, tagged links and landing pages, each with the percent of visits that took a key action (booked, called, signed up). Counts only, no visitor identifiable. - days (integer): How many days to look at, 7 to 90 (default 28) ### Search, redirects and website growth Redirects from the old website, addresses visitors asked for that don't exist, local search tracking, search checks, automatic optimization, A/B tests, Google sync, review requests and visitor numbers. #### get_search_dashboard How we're doing in search. Reads only. How the gym is doing on Google, Google Maps and the AI assistants, as on Marketing > Search dashboard: a one-line verdict; Google visibility (share of clicks across the tracked searches) against the leader; how many tracked searches are on Google's first page; real Google clicks for the last 28 days from Search Console against the 28 before, with clicks from searches without the gym's name against a year ago; AI share of voice (how often ChatGPT, Gemini and Claude name the gym); Google reviews next to the competitors beside it on Maps; authority (0-1000 link score); site health (pages without problems and what to fix, real visitors' load times); visits from search engines and AI assistants in the last 7 days and what they did; and the top searches with the Google place, the Maps place from the gym's door and across the map, and whether Google's AI Overview cites the gym, with arrows against the check before. Missing parts mean that data isn't connected yet. - No parameters. #### get_redirects Redirects from the old website. Reads only. In the Web developer set. Every redirect from an old website address to a page of this site (Website > Redirects), and the pages it can point to. - No parameters. #### add_redirect Add a redirect. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Send an old website address to a page of this site (owners only), so old links and Google results keep working after the switch. Adding one for an address that already has a redirect changes where it goes. - old_address (string, required): The old page's address: /about-us, about-us or www.oldsite.com/about-us - goes_to (string, required): A page of this site, like /about or /schedule - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_redirect Remove a redirect. Changes the gym (recorded in History). Takes confirm. In the Web developer set. Delete a redirect (owners only). The old address then shows the page-not-found page. Needs the owner's yes and confirm: true. - old_address (string, required): The redirect's old address, e.g. /old-camp-page, from get_redirects - confirm (boolean): Must be true, after the owner has said yes #### scan_old_website Find the old website's pages. Changes the gym (recorded in History). Takes dry_run. Read the gym's old website (its sitemap and links) and add a redirect for each old page to the best matching page of this site (owners only), the same as Website > Redirects > Find my pages. Addresses that already have a redirect keep the page the owner chose. Takes up to a minute. Then get_redirects shows them; rematch_redirects, confirm_redirects or add_redirect fix any. - old_website (string, required): The gym's current (old) website address, like www.yourgym.com - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### rematch_redirects Match the scanned redirects again. Changes the gym (recorded in History). Takes dry_run. Suggest the best page again for every redirect the scan made that the owner hasn't chosen by hand (owners only), the same as Match again on Website > Redirects. Useful after adding pages. Redirects the owner set stay. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### confirm_redirects Confirm every matched redirect. Changes the gym (recorded in History). Takes dry_run. Mark every redirect the scan matched (and the owner hasn't looked at) as checked (owners only), the same as Confirm all on Website > Redirects. Ones with no match or marked (check) are left for the owner to choose. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### clear_scanned_redirects Delete the scanned redirects. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Delete every redirect the old-website scan made (owners only), the same as the Delete button on Website > Redirects. Redirects the owner added by hand stay. Those old addresses then show the page-not-found page until scanned again. Needs the owner's yes and confirm: true. - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_missing_addresses Addresses people asked for that don't exist. Reads only. The addresses on the gym's website that visitors (not search robots) asked for and got the page-not-found page, busiest first, with how many visits, when last, which website linked there and the page suggested for it (Website > Redirects). add_redirect sends one to a page; ignore_missing_address takes it off the list. - No parameters. #### ignore_missing_address Ignore an address that doesn't exist. Changes the gym (recorded in History). Takes dry_run. Take an address visitors asked for off the list of missing pages without a redirect (owners only), the same as the ✕ on Website > Redirects. Visitors still see the page-not-found page there. - address (string, required): The address from get_missing_addresses, like /old-page - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_search_tracking Searches tracked on Google and AI. Reads only. What Marketing > Local search checks (owners only): the searches tracked on Google and Google Maps, the map grid, the questions asked of ChatGPT, Gemini and Claude, whether it checks every month by itself, ideas found for searches to track, the last checks, and when the pages were last optimized. get_search_dashboard shows how the gym ranks. - No parameters. #### set_search_tracking Change the tracked searches. Changes the gym (recorded in History). Takes dry_run. Change what Marketing > Local search checks (owners only): the searches tracked, the map grid, the AI questions and whether it checks every month by itself. Send only what changes; the rest stays. The next check uses them (run_search_check, or the monthly one). - searches (array of string): The whole list of searches to track (replaces it), up to 25, like ninja gym near me - add_searches (array of string): Searches to start tracking, e.g. ninja gym near me - remove_searches (array of string): Tracked searches to stop tracking - map_grid (integer: 3 | 5 | 7): Spots each way around the gym the map is checked from - miles_apart (number): 0.5 to 5 - every_month_by_itself (boolean): true runs the check by itself every month - ask_ai_assistants (boolean): Also ask ChatGPT, Gemini and Claude the questions - ai_questions (array of string): The questions to ask the AI assistants, the way families talk (10 to 300 characters each); an empty list goes back to the usual ones - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### run_search_check Check where the gym shows up now. Changes the gym (recorded in History). Takes dry_run. Start a check now of where the gym shows up on Google, Google Maps (from every spot of the map grid) and in the AI assistants' answers for the tracked searches (owners only), the same as Check where I show up now on Marketing > Local search. Once a day; the results arrive within a few minutes (get_search_dashboard). - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### optimize_website_for_search Optimize the website for search. Changes the gym (recorded in History). Takes dry_run. Rewrite each page's Google title and description from the searches families make, and the FAQ answers from the gym's own facts (owners only), the same as Optimize my website now on Marketing > Local search. Questions it can't answer truthfully go to the owner's Questions page. It reads Google first: about 30 seconds, and at most 3 runs a day through the assistant (dry_run counts too). dry_run shows the new titles without saving; every change is in History. - keep_optimized (boolean): true = redo it by itself after every monthly check (default: as it is now) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### take_search_baseline Take the before snapshot. Changes the gym (recorded in History). Takes dry_run. Before the new website goes live, take the before snapshot of where the gym shows up on Google, Maps and the AI assistants, so the gym can see what changed after launch (owners only), the same as Take your before snapshot on Marketing > Search vs competitors. Results arrive within a few minutes. Only once, and only before launch. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_ab_tests A/B tests. Reads only. The website's A/B tests (Marketing > Website traffic > A/B tests): what can be tested (the home page headline and the line under it), the wording on the site now, the new wording being tried, and the results: visits that saw each and how many went on to book or buy, with a verdict once each has 100 visits. - No parameters. #### start_ab_test Start an A/B test. Changes the gym (recorded in History). Takes dry_run. Start an A/B test (owners only): half of the visitors see the new wording on the home page, the other half the current one, and get_ab_tests shows which leads to more bookings. Starting again replaces a test of the same thing. stop_ab_test ends it. - what (string: home_headline | home_sub, required): home_headline = the home page's headline; home_sub = the line under it - new_wording (string, required): The new words that half of the visitors see - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### stop_ab_test Stop an A/B test. Changes the gym (recorded in History). Takes dry_run. Takes confirm. End a running A/B test (owners only): keep the current wording, or make the new wording the site's own for everyone. Look at get_ab_tests first. Needs the owner's yes and confirm: true. - what (string: home_headline | home_sub, required): Which test to end: the home page's headline or the line under it - keep (string: current | new): current = everyone sees the wording the site had (default); new = the new wording becomes the site's wording for everyone - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_review_settings Google review requests after parties. Reads only. How the gym asks families for a Google review after a party (Events > Reviews and party photos): whether it asks, how many hours after the party it goes by itself, how many times at most and the days between, whether owners and hosts are reminded to upload photos, whether the newest Google reviews show on the website, and the review link. No families' details. - No parameters. #### set_review_settings Change the review request settings. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change how the gym asks families for a Google review after a party (owners and managers), as on Events > Reviews and party photos. Send only what changes. Switching something off needs the owner's yes and confirm: true. Switching review requests on is left to the back office, because it starts emails to families. - ask_for_reviews (boolean): false = stop asking families for a Google review after parties (they still get the thank-you and photos). Switching it back on is done in the back office. - send_after_hours (integer: 12 | 24 | 48 | 72): How many hours after the party the review request goes out - ask_at_most (integer: 1 | 2 | 3): 1 = once, 2 = one reminder, 3 = two reminders - reminder_days (integer: 3 | 4 | 5 | 7): Days between the request and each reminder (how many go out: ask_at_most) - photo_reminders (boolean): Remind the owners and the party's host to upload photos after each party - show_on_website (boolean): Show the newest Google reviews on the home and parties pages - google_review_link (string): The review link Google gives (https://g.page/r/... or https://search.google.com/...), until Google is connected - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### sync_from_google Read Google reviews and Search Console now. Changes the gym (recorded in History). Takes dry_run. Read the newest from Google now instead of waiting for the nightly update (owners only): the Google Business Profile's reviews (Marketing > Google, Read reviews now) and Search Console's searches and clicks (Search vs competitors, Update now). It only reads from Google into the gym's own numbers. Google has to be connected in the back office first. - what (string: reviews | search_console | both): reviews = the Google Business Profile's reviews; search_console = Google searches and clicks; both (default) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Schedule, classes, coaches and events The weekly schedule, bookable classes and tuition, closures and one-day changes, private lessons, drop-in rates, coaches and special events. #### get_schedule Weekly schedule. Reads only. The weekly schedule as visitors see it at /schedule: every entry with its id (needed to change or remove it), day, times, type and coach, plus upcoming closures and one-day changes. - day (string): Only this day (optional) #### add_schedule_entry Add a class or session to the weekly schedule. Changes the gym (recorded in History). Takes dry_run. Add one entry to the weekly schedule. Ask the owner for the day, the times and what it is before calling. Entries repeat every week; for a single date use add_schedule_change or add_closure. - day (string, required): Day of the week, e.g. Saturday - start (string): Start time, e.g. 4:00 PM. Leave both times out for things offered by booking. - end (string): End time, e.g. 6:00 PM - name (string, required): What it is, e.g. Open Gym (up to 60 characters) - type (string: open | class | team | homeschool | toddler | party | other): Decides the color on the schedule - note (string): Short note such as an age range, e.g. Ages 6–8 - coach (string): Who coaches it; separate several names with commas - location (string): Which location, by name (only when the gym has more than one) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_schedule_entry Change a schedule entry. Changes the gym (recorded in History). Takes dry_run. Change one existing entry: its day, times, name, type, note or coach. Send only what changes. Get the id from get_schedule first. - id (string, required): The entry's id from get_schedule - day (string): Day of the week, e.g. Saturday - start (string): Start time, e.g. 4:00 PM. Leave both times out for things offered by booking. - end (string): End time, e.g. 6:00 PM - name (string): What it is, e.g. Open Gym (up to 60 characters) - type (string: open | class | team | homeschool | toddler | party | other): Decides the color on the schedule - note (string): Short note such as an age range, e.g. Ages 6–8 - coach (string): Who coaches it; separate several names with commas - location (string): Which location, by name (only when the gym has more than one) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_schedule_entry Remove a schedule entry. Changes the gym (recorded in History). Takes dry_run. Take one entry off the weekly schedule. Confirm with the owner which one first. It can be put back from History. - id (string, required): The entry's id from get_schedule - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_schedule_note Note above the schedule. Changes the gym (recorded in History). Takes dry_run. Set or clear the short note shown above the weekly schedule, e.g. "New schedule begins August 3". - note (string, required): Up to 120 characters; empty to remove it - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_schedule_days Days shown on the public schedule. Changes the gym (recorded in History). Takes dry_run. Choose which days the public weekly schedule shows, e.g. hide Sunday for a gym that runs Monday to Saturday. Entries on a hidden day stay saved, they just don't show. At least one day stays shown. - hidden_days (array of string, required): Days to leave off the public weekly schedule, e.g. ["Sunday"]; an empty list shows all seven - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### add_closure Add a day (or days) the gym is closed. Changes the gym (recorded in History). Takes dry_run. Tell visitors the gym is closed on a date or a run of dates. It shows under the schedule and on the home page during the two weeks before, and disappears by itself afterwards. - date (string, required): First day closed, YYYY-MM-DD - last_day (string): Last day closed, YYYY-MM-DD (leave out for one day) - reason (string): Shown to visitors, e.g. Thanksgiving (up to 80 characters) - location (string): With two or more locations: the location it is for (leave out for every location) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### add_schedule_change Add a one-day change to the schedule. Changes the gym (recorded in History). Takes dry_run. Tell visitors that one particular day runs differently from the weekly schedule. For a closed day use add_closure. - date (string, required): The day, YYYY-MM-DD - what_is_different (string, required): Shown to visitors, e.g. Open gym 4–6 PM only (up to 80 characters) - location (string): With two or more locations: the location it is for (leave out for every location) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_closure_or_change Remove a closure or one-day change. Changes the gym (recorded in History). Takes dry_run. Remove the closure and/or one-day change listed for a date. - date (string, required): The (first) date of the closure or change, YYYY-MM-DD - location (string): With two or more locations: the location it is for (leave out for every location) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_coaches Coaches. Reads only. Everyone on the Coaches page, in order: name, role, bio, highlights, link and whether they have a photo. - No parameters. #### add_coach Add a coach. Changes the gym (recorded in History). Takes dry_run. Add a coach to the Coaches page. Only use facts the owner gives you; never invent a bio or achievements. Add their photo afterwards with request_photo_upload. - name (string, required): The coach's name as it shows on the Coaches page - ninja_name (string): Optional nickname shown under the name, e.g. The Hype Guy (up to 60 characters) - role (string): e.g. Coach, Head Coach, Owner & Coach - bio (string): In the gym's own words (up to 4000 characters; a blank line starts a new paragraph; a long bio folds under Read more) - highlights (array of string): Up to 6 short highlights, e.g. "5 seasons on American Ninja Warrior" - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_coach Update a coach. Changes the gym (recorded in History). Takes dry_run. Change a coach's name, ninja name (nickname), role, bio, highlights, link, place in the order, or headshot framing and zoom. Send only what changes. Only use facts the owner gives you. - coach (string, required): The coach's current name - new_name (string): The coach's new name - ninja_name (string): Nickname shown under the name, e.g. The Hype Guy; empty to remove it - role (string): Their role, e.g. Head Coach - bio (string): A short bio in the owner's words. Never invent achievements. - highlights (array of string): Replaces the whole list (up to 6) - link_label (string): e.g. Instagram - link_url (string): https address; empty to remove the link - position (integer): 1 = first (the featured coach) - headshot_framing (string): Where the round headshot centers on its photo, as "x% y%" ("50% 30%": the middle, a little above center). Use when the owner says the face is cut off or off-center. - headshot_zoom (number): Zoom the round headshot in on that spot, 1 (none) to 3, when the face looks small - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_coach Remove a coach. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a coach off the Coaches page. Ask the owner to confirm first, then send confirm: true. It can be put back from History. - coach (string, required): The coach's id or exact name, from get_coaches - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_special_events Special events. Reads only. Every special event (camps, Parents' Night Out, clinics, holiday camps): title, date, time, ages, price, description, picture, and online sign-up, plus the flyers that can be used as pictures. Dated events leave the site by themselves the day after they end. - No parameters. #### add_special_event Add a special event. Changes the gym (recorded in History). Takes dry_run. Add a camp, Parents' Night Out, clinic or other special event to the Special events page and the Coming up row on the schedule. Ask the owner for the date, time, ages and price; never guess them. With online_options families sign up and pay on the website. If the owner has a flyer, add the event first, then call request_photo_upload (or upload_photo) with purpose event_flyer and the event's title. - title (string, required): e.g. Black Friday Ninja Camp (up to 100 characters) - date (string): YYYY-MM-DD. Leave out for something offered on request - last_day (string): YYYY-MM-DD, only for events over several days - when (string): Only without a date, e.g. Whenever Cobb schools go digital - time (string): e.g. 9 AM–5 PM - ages (string): e.g. Ages 6–12 (online sign-up takes these ages; 3 to 18 when empty) - price (string): As shown to families, e.g. $85 per child - description (string): A few sentences in the gym's own words (up to 600 characters) - details (array of string): Bullet points, e.g. Bring a packed lunch, a snack and a water bottle (up to 12) - picture (string): A flyer's name (get_special_events lists them) or a photo_id from list_photos; empty for an automatic picture. For a new flyer, add the event first, then upload it with purpose event_flyer - online_options (array of object): Turns on sign-up and card payment on the website (up to 6 options; needs Stripe connected). An empty list turns it off - online_options[].label (string, required): e.g. Full day, 9 AM–5 PM - online_options[].price (number, required): Dollars, e.g. 85 - online_days (array of string): The days families can sign up for, YYYY-MM-DD (a dated event's own date is used when left out) - spots_per_day (integer): Most kids per day; 0 = no limit - extra_question (object): An optional question at sign-up with 2 to 12 choices - extra_question.question (string, required): The question families answer when they sign up, e.g. "T-shirt size" - extra_question.choices (array of string, required): The answers to pick from; leave empty for a typed answer - signup_link (string): Only when families sign up somewhere else: a full https:// address - button_label (string): Words on that sign-up button, e.g. Book now - location (string): Which location it is at, by name (only for gyms with several locations); empty = every location - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_special_event Change a special event. Changes the gym (recorded in History). Takes dry_run. Change a special event: send only what changes (title, date, time, ages, price, description, details, picture, online sign-up options and days). For example, add a newly announced camp day with online_days. - event (string, required): The event's current title - title (string): e.g. Black Friday Ninja Camp (up to 100 characters) - date (string): YYYY-MM-DD. Leave out for something offered on request - last_day (string): YYYY-MM-DD, only for events over several days - when (string): Only without a date, e.g. Whenever Cobb schools go digital - time (string): e.g. 9 AM–5 PM - ages (string): e.g. Ages 6–12 (online sign-up takes these ages; 3 to 18 when empty) - price (string): As shown to families, e.g. $85 per child - description (string): A few sentences in the gym's own words (up to 600 characters) - details (array of string): Bullet points, e.g. Bring a packed lunch, a snack and a water bottle (up to 12) - picture (string): A flyer's name (get_special_events lists them) or a photo_id from list_photos; empty for an automatic picture. For a new flyer, add the event first, then upload it with purpose event_flyer - online_options (array of object): Turns on sign-up and card payment on the website (up to 6 options; needs Stripe connected). An empty list turns it off - online_options[].label (string, required): e.g. Full day, 9 AM–5 PM - online_options[].price (number, required): Dollars, e.g. 85 - online_days (array of string): The days families can sign up for, YYYY-MM-DD (a dated event's own date is used when left out) - spots_per_day (integer): Most kids per day; 0 = no limit - extra_question (object): An optional question at sign-up with 2 to 12 choices - extra_question.question (string, required): The question families answer when they sign up, e.g. "T-shirt size" - extra_question.choices (array of string, required): The answers to pick from; leave empty for a typed answer - signup_link (string): Only when families sign up somewhere else: a full https:// address - button_label (string): Words on that sign-up button, e.g. Book now - location (string): Which location it is at, by name (only for gyms with several locations); empty = every location - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_special_event Remove a special event. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a special event off the website. Past dated events already hide by themselves. Ask the owner to confirm first, then send confirm: true. Families who already signed up stay in the back office; it can be put back from History. - event (string, required): The event's title - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### list_report_schedules Scheduled report emails. Reads only. The reports sent by email on a schedule: the person's own (owners see every one at the gym), each with what it sends, how often and when (in the gym's time zone), who gets it, whether it is paused, the next and last send and how the last one went. - report (string): Optional: only this report's (a key from list_reports) #### schedule_report_email Email a report on a schedule. Changes the gym (recorded in History). Takes dry_run. Sets up a report to be emailed on its own: every day, every week on a day, every month on a day, or after each pay period, at a time of day in the gym's time zone, to the person asking and any of the gym's other owners and managers (managers never get money reports). Each email has the report's numbers, the first 25 rows, the whole table as a spreadsheet file, a link to the report and a one-click Stop link. Sends a saved view exactly as saved (view_id), or the report with the dates, columns, filters and sort given. Nothing is sent before the website is live. Use dry_run first and confirm who gets it with the owner. - report (string): The report to send (a key from list_reports); leave out when view_id is given - view_id (string): Or a saved view or My report to send as saved (an id from list_report_views) - name (string): The email's name, for example Monday sales (default: the report's or view's name) - how_often (string: day | week | month | payperiod, required): day: every day; week: every week on day_of_week; month: every month on day_of_month; payperiod: the day after each pay period ends, for that pay period - day_of_week (string): For week: Monday to Sunday (default Monday) - day_of_month (string): For month: 1 to 28, or last (default 1) - time (string): The time of day in the gym's time zone, 24-hour HH:MM (default 07:00; rounded to 15 minutes) - send_to (array of string): Email addresses of the gym's owners and managers who get it (default: only the person asking; managers never get money reports) - period (string): Without a saved view: the dates each email covers, such as yesterday, lastweek, lastmonth, week, month or 30 (default: the report's own) - location (string): Without a saved view: a location key from list_reports, or leave out for all - choice (string): Without a saved view: the report's own choice as name=value, for example by=type - columns (array of string): Without a saved view: the columns, in order (column keys) - filters (array of object): Without a saved view: filters on columns, as in save_report_view - filters[].field (string, required): The column to filter, by its key in the report - filters[].op (string: contains | in | gte | lte | after | before, required): How to compare: contains, in, gte (at least), lte (at most), after, before - filters[].values (array of string, required): The value or values to compare with - sort (string): Without a saved view: the column to sort by - dir (string: asc | desc): Sort order: asc (smallest or oldest first) or desc (largest or newest first) - dry_run (boolean): Say what would be scheduled without saving it #### change_report_schedule Change, pause or test a scheduled report email. Changes the gym (recorded in History). Changes a scheduled report email: its name, how often, day, time or who gets it, pauses or resumes it (the person who set it up, or an owner for anyone's), or sends one now to the person asking to check it. - id (string, required): The id from list_report_schedules - name (string): A new name - how_often (string: day | week | month | payperiod): How often, as in schedule_report_email - day_of_week (string): For week: Monday to Sunday - day_of_month (string): For month: 1 to 28, or last - time (string): The time of day in the gym's time zone, HH:MM - send_to (array of string): Everyone who should get it from now on (owners and managers of the gym) - paused (boolean): true to pause it, false to start it again - send_test (boolean): Send one now, only to the person asking #### delete_report_schedule Delete a scheduled report email. Changes the gym (recorded in History). Takes confirm. Deletes a scheduled report email (the person's own; owners may delete anyone's). Nothing more is sent. Needs confirm: true; it can't be undone (pausing with change_report_schedule can). - id (string, required): The id from list_report_schedules - confirm (boolean): true to delete (it can't be undone) #### get_classes Classes families can book. Reads only. Every bookable class (Schedule > Classes & enrollment): name, type, days and times, ages, tuition and how it is charged, capacity and spots left, location, description, free trials, whether it is on the website, and where it came from. Also the gym's class types and locations. Numbers only, never who is enrolled. - include_hidden (boolean): true = also list hidden classes #### add_class Add a class. Changes the gym (recorded in History). Takes dry_run. Add a bookable class (owners only): its days and times go on the weekly schedule and families can book it on the Book a class page. Ask the owner for the days and times, ages, tuition and capacity; never guess a price or a time. Use dry_run first to show them what will be added. - name (string, required): e.g. Ninja Basics (up to 80 characters) - days_and_times (array of string, required): Each weekly meeting as words, e.g. ["Monday 4:30 PM - 5:30 PM", "Wednesday 4:30 PM - 5:30 PM"] or ["Mon & Wed 4:30-5:30 PM"]. Replaces all of the class's times - ages_from (integer): Youngest age, 0 to 99 - ages_to (integer): Oldest age, 0 to 99; leave out for no upper age - tuition (number): Dollars, charged as 'charged' says - charged (string: month | class | session): month = monthly tuition (families enroll and are billed each month), class = a drop-in price per class, session = one price for a whole session - capacity (integer): Most athletes in the class, 1 to 500; 0 = no limit. Spots left = capacity minus everyone enrolled - type (string): The schedule type (its color): Class, Open gym, Competition team, Homeschool PE, Toddlers & minis or Other (get_classes lists the gym's types) - location (string): Which location, when the gym has several - description (string): What athletes do and who it is for, shown on the class's booking page (up to 1,500 characters) - free_trials (boolean): true = families can book a free trial class - on_website (boolean): false = hidden from the Book a class page and the weekly schedule (kept, not deleted) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_class Change a class. Changes the gym (recorded in History). Takes dry_run. Change any detail of a bookable class (owners only): name, days and times, ages, tuition, how it is charged, capacity, type, location, description, free trials, or hide/show it. Send only what changes; everything else stays. Enrolled families keep their tuition. A class that came from iClassPro is replaced by the next iClassPro download. - class (string, required): The class's current name - new_name (string): The class's new name - days_and_times (array of string): Each weekly meeting as words, e.g. ["Monday 4:30 PM - 5:30 PM", "Wednesday 4:30 PM - 5:30 PM"] or ["Mon & Wed 4:30-5:30 PM"]. Replaces all of the class's times - ages_from (integer): Youngest age, 0 to 99 - ages_to (integer): Oldest age, 0 to 99; leave out for no upper age - tuition (number): Dollars, charged as 'charged' says - charged (string: month | class | session): month = monthly tuition (families enroll and are billed each month), class = a drop-in price per class, session = one price for a whole session - capacity (integer): Most athletes in the class, 1 to 500; 0 = no limit. Spots left = capacity minus everyone enrolled - type (string): The schedule type (its color): Class, Open gym, Competition team, Homeschool PE, Toddlers & minis or Other (get_classes lists the gym's types) - location (string): Which location, when the gym has several - description (string): What athletes do and who it is for, shown on the class's booking page (up to 1,500 characters) - free_trials (boolean): true = families can book a free trial class - on_website (boolean): false = hidden from the Book a class page and the weekly schedule (kept, not deleted) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_class Remove a class. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Remove a class from the website and the weekly schedule (owners only). A class families have booked is hidden instead of deleted, so their enrollments and history stay. Needs the owner's yes and confirm: true. - class (string, required): The class's id or exact name, from get_classes - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_tuition_rules Tuition rules. Reads only. The rules for monthly class tuition (Settings > Classes and enrollment): one billing day with a prorated first month, the registration fee and how often it is charged, and the sibling discounts. - No parameters. #### update_tuition_rules Change the tuition rules. Changes the gym (recorded in History). Takes dry_run. Change the monthly tuition rules (owners only): billing day and proration, registration fee, sibling discounts. Send only what changes. Changes apply to new enrollments. - bill_everyone_on_one_day (boolean): true = every monthly class is billed on the billing day, and the first month is prorated by the classes left before it - billing_day (integer): 1 to 28 - registration_fee (number): Dollars; 0 for none - registration_fee_charged (string: yearly | once): yearly = every 12 months per family; once = once per family, ever - second_child_discount_percent (integer): 0 to 50 - third_and_later_children_discount_percent (integer): 0 to 50 - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_schedule_entry_description Describe a schedule entry. Changes the gym (recorded in History). Takes dry_run. Set the short description visitors see when they tap or hover an entry on the weekly schedule (Schedule > Schedule > What each entry is). Owners and managers. - entry (string, required): The entry's name as it shows on the schedule, e.g. Open Gym (get_schedule lists them) - description (string): What visitors see when they tap or hover the entry, up to 400 characters; empty or left out = use the default (the matching class's text, or a general line for its type) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_private_lessons Private lessons. Reads only. The private lessons the gym sells (Schedule > Private lessons): each lesson type with its coach, length, price in dollars, how families book it (pick an open time, pay first and set the time later, or either), whether it's on sale and how many open times it has; and how many lessons are waiting for a time, coming up and waiting to be marked done. No families' names. - No parameters. #### add_private_lesson_type Add or change a private lesson type. Changes the gym (recorded in History). Takes dry_run. Add a private lesson type (owners and managers) or change one (give its id): the coach, length, price and how families book it. With how = times or either, add its open times next with add_private_lesson_times. - title (string, required): What families see, e.g. Private Lesson or Competition Prep - coach (string): A coach's name from the Coaches page, or leave out for any coach - minutes (integer): Length, 10 to 240 - price (number): Dollars - how (string: times | arrange | either): times = families pick one of the gym's open times; arrange = families pay first and the gym calls to set the time; either = both - about (string): Optional: who it's for and what to expect - on_sale (boolean): false = saved but not on the website - id (string): To change one: its id from get_private_lessons - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### add_private_lesson_times Add open private lesson times. Changes the gym (recorded in History). Takes dry_run. Publish open times families can pick for a private lesson type (owners, managers, or the coach it belongs to). A time already there is skipped. - lesson_type_id (string, required): The id from get_private_lessons - first_date (string, required): YYYY-MM-DD, today or later - start_times (array of string, required): Start times that day, e.g. ["16:00", "4:30 pm"] - weeks (integer): Repeat on the same weekday for this many weeks, 1 to 12 (default 1) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_dropin_rates Drop-in prices. Reads only. What one visit costs without a membership: for each location (or the gym), the open gym price for each kind of visitor (standard, college, age 5 and under, spectators) and any class with its own drop-in price. Also says whether families can pay for a drop-in online. - No parameters. #### set_dropin_rates Change drop-in prices. Changes the gym (recorded in History). Takes dry_run. Set what a drop-in costs at one location (owners): the open gym price for each kind of visitor and any class with its own drop-in price. Families then pick the gym, who is coming and the day on the drop-in page and pay online. Send only the list that changes; the other stays. - location (string): The location's name or key. Leave out for a gym with one location - open_gym (array of object): Replaces this location's open gym prices; the first is the usual price. An empty list removes them - open_gym[].who (string, required): The kind of visitor, e.g. Standard, College student, Age 5 and under, Spectators - open_gym[].price (number, required): Dollars for one visit; 0 = free (shown, not sold) - open_gym[].note (string): Optional, e.g. Show your student ID - classes (array of object): Replaces the classes with their own drop-in price at this location. An empty list removes them - classes[].class (string, required): The class as named on the schedule - classes[].price (number, required): Dollars for one class - classes[].shown_as (string): Optional: the name families see - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_private_lesson_type Remove a private lesson type. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Remove a private lesson type from Schedule > Private lessons and the website (owners and managers); its open times go too. Lessons families already bought stay on the list. To only hide it for a while, use add_private_lesson_type with its id and on_sale: false instead. Needs confirm: true after the owner says yes. - lesson_type_id (string, required): The id from get_private_lessons - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes #### remove_private_lesson_time Remove an open private lesson time. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take one open time off a private lesson type (owners, managers or the lesson's own coach), so families can't pick it. A time a family has booked can't be removed here. Needs confirm: true after the owner says yes. - lesson_type_id (string, required): The id from get_private_lessons - date (string, required): YYYY-MM-DD - start_time (string, required): e.g. 16:00 or 4:30 PM - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes ### Memberships, class packs and credit Membership plans, member prices, membership rules, class packs and account credit. #### get_membership_plans Membership plans. Reads only. Every membership plan the gym sells (or used to): name, price, how often it is charged, sign-up fee, free trial, people covered, whether families can join online, and whether it is on sale. Plans only: never members. - No parameters. #### add_membership_plan Add a membership plan. Changes the gym (recorded in History). Takes dry_run. Add a membership plan (owners only). Ask the owner for the name, price and how often it is charged; never guess a price. Families see it on the Memberships page when families_can_join_online is true (the default). - name (string, required): e.g. Ninja Unlimited (up to 80 characters) - description (string): One or two lines families see under the plan's name (up to 300 characters) - price (number, required): Dollars each time it is charged, $1 to $5,000 - how_often (string: weekly | monthly | yearly, required): How often it is charged - every (integer): Charged every 1 (default), 2, 3 or 6 weeks / months / years - sign_up_fee (number): A one-time fee in dollars; 0 for none - free_trial_days (integer): 0 to 60 - people_covered (integer): How many people one membership covers, 1 to 8 (a family plan covers several) - families_can_join_online (boolean): true = shown on the website's Memberships page so families can join and pay online - list_position (integer): Order on the Memberships page, 0 to 99 (lower first) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_membership_plan Change a membership plan. Changes the gym (recorded in History). Takes dry_run. Change a membership plan's name, price, how often it is charged, fee, trial, people covered, online sign-up or order (owners only). Send only what changes; everything else stays. Existing members keep their own price. - plan (string, required): The plan's current name - new_name (string): The plan's new name - description (string): One or two lines families see under the plan's name (up to 300 characters) - price (number): Dollars each time it is charged, $1 to $5,000 - how_often (string: weekly | monthly | yearly): How often it is charged - every (integer): Charged every 1 (default), 2, 3 or 6 weeks / months / years - sign_up_fee (number): A one-time fee in dollars; 0 for none - free_trial_days (integer): 0 to 60 - people_covered (integer): How many people one membership covers, 1 to 8 (a family plan covers several) - families_can_join_online (boolean): true = shown on the website's Memberships page so families can join and pay online - list_position (integer): Order on the Memberships page, 0 to 99 (lower first) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### reorder_membership_plans Change the order of membership plans. Changes the gym (recorded in History). Takes dry_run. Change the order membership plans show in on the website's Pricing and Memberships pages and in the back office (owners only). get_membership_plans lists them in the current order. Only plans on sale are ordered. - order (array of string, required): Plan names in the order they should show, first one first. Plans you leave out keep their order after these. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_membership_plan_on_sale Stop or restart selling a membership plan. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Stop selling a membership plan (it leaves the website; current members keep their memberships) or put an archived plan back on sale (owners only). Stopping needs the owner's yes and confirm: true. - plan (string, required): The plan's id or exact name, from get_membership_plans - on_sale (boolean, required): false = stop selling it (archive); true = sell it again - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_member_benefits Member prices. Reads only. What members pay for open gym: each membership plan's open gym perk (Free, money off, or a members' price) and the price for children in a weekly class. Members get it automatically online, in the family cart and at the front desk. - No parameters. #### set_member_benefit Set a member price for open gym. Changes the gym (recorded in History). Takes dry_run. Set what members pay for open gym (owners only): on a membership plan (e.g. Elite: free) or for children in a weekly class (e.g. $5 off). Ask the owner for the amount; never guess it. - who (string, required): A membership plan's name (e.g. Elite), or "weekly class" for children enrolled in a weekly class - how (string: free | money_off | members_pay | regular, required): free; money_off (amount = dollars off); members_pay (amount = the price); regular = no member price - amount (number): Dollars, for money_off or members_pay - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_class_packs Class packs. Reads only. The class packs the gym sells (at the front desk, and online on the class packs page): name, number of classes, price and how many months a pack is good for. - No parameters. #### save_class_pack Add or change a class pack. Changes the gym (recorded in History). Takes dry_run. Add a class pack, or change one's name, number of classes, price or months it is good for (owners and managers). Send only what changes. Packs already sold keep what they were sold with. - pack (string): The pack's current name, to change one; leave out to add a new pack - name (string): e.g. 10-class pack (up to 60 characters) - classes (integer): How many classes, 1 to 500 - price (number): Dollars - months (integer): How many months it is good for; 0 = no end - location (string): Only for gyms with several locations: the location that sells it, by name; empty = every location - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_class_pack Stop selling a class pack. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a kind of class pack off sale (owners and managers). Packs families already bought keep working. Ask the owner to confirm, then send confirm: true. It can be put back from History. - pack (string, required): The class pack's id or exact name, from get_class_packs - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_account_credit Account credit. Reads only. Families' account credit (money a family can spend with the gym, often from a refund to credit instead of the card). Without a family: every family with credit and the total. With a family: their credit now and its history (each change: when, what, who, the amount and the credit after). Owners and managers. - family (string): A family's name or email. Leave it out for every family with credit #### change_account_credit Add or take off account credit. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Add credit to a family's account (a make-good, a goodwill credit) or take credit off (a mistake), with a reason that shows in their history. Owners and managers. Every change needs confirm: true after the owner said yes. Refunds to credit are made from the refund buttons in the back office, not here. - family (string, required): The family's name or email - amount (number, required): Dollars: positive adds credit, negative takes it off - reason (string, required): Why, for the family's credit history - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_membership_rules Membership rules and terms. Reads only. The membership rules on Money > Memberships > Plans & rules (owners): the introduction on the Memberships page, the exact membership terms families agree to before paying, whether members can cancel online in My account, and whether members get an emailed receipt for each payment. - No parameters. #### set_membership_rules Change the membership rules and terms. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change the membership rules on Money > Memberships > Plans & rules (owners only). The terms are legal text families agree to before paying: always show the owner the exact new wording first (call with dry_run) and suggest their attorney reviews it; a terms change needs confirm: true. Turning off online cancel needs confirm: true and a warning to the owner first: several states (California among them) require an online way to cancel anything sold online, and a membership bought online can always be cancelled online anyway. Turning receipts off needs confirm: true. Only what the owner mentions changes. - introduction (string): A line or two at the top of the Memberships page (300 characters at most; empty = none) - terms (string): The whole new membership terms, word for word (3000 characters at most; empty = back to the standard text) - members_can_cancel_online (boolean): Members can cancel in My account (the membership runs to the end of the paid period) - email_receipts (boolean): Email members a receipt for each payment - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes ### Camps and birthday parties Camps by the week or day, private camp requests, party packages, rooms and start times, add-ons, party look and choices, and tips. #### list_text_campaigns Text messages sent and scheduled. Reads only. The gym's last 20 text messages to groups: the words, who they went to, when, and how many were sent, waiting for quiet hours to end, skipped (STOP, or already texted that day) and failed. No phone numbers. - No parameters. #### list_camps Camps. Reads only. Every camp (summer, school break, after-school program, private): its dates, number of camp days, Morning / Afternoon / Full Day sessions with times and room, prices in dollars (weekFull, weekHalf, dayFull, dayHalf, flex5Full, flex10Full, flex5Half, flex10Half), whether families can book it, camper-days booked, its public booking page and back office page. - include_past (boolean): true = camps that have ended too #### get_camp_day A camp day's numbers. Reads only. For one day: each camp running, how many campers are booked, checked in now, picked up and not here yet, each session's bookings and room left, and the roster's back office page. Numbers only, no children's names. - day (string): YYYY-MM-DD (default today) - camp_id (string): The id from list_camps (default every camp running that day) #### list_private_camp_requests Private camp requests. Reads only. Private camp requests waiting for an answer: which camp, how many campers, how many days, the estimate in dollars. Names and contact details are on the back office page Camps > Private Requests. - No parameters. #### add_camp Set up a camp. Changes the gym (recorded in History). Sets up a new camp as a draft (families can't book it yet): dates, days, days off, sessions with times and room, prices and flex passes, and an optional private camp price. The owner checks it on the camp's back office page and opens it for booking there. - name (string, required): The name families see - kind (string: summer | break | afterschool | private): summer, school break, after school or private (a group books the whole camp) - start (string, required): First day, YYYY-MM-DD - end (string, required): Last day, YYYY-MM-DD - weekdays (array of integer): Camp days of the week, 0 = Sunday (default Monday to Friday) - days_off (array of string): Holidays with no camp, YYYY-MM-DD - ages (string): The ages it is for, as families see it, e.g. 6-12 - about (string): A short description for the camp's page - location (string): A location key, for a business with several - sessions (object): am = Morning, pm = Afternoon, full = Full Day - sessions.am (object): Morning session: { on, start, end, room } with times as HH:MM, 24-hour - sessions.pm (object): Afternoon session: { on, start, end, room } with times as HH:MM, 24-hour - sessions.full (object): Full-day session: { on, start, end, room } with times as HH:MM, 24-hour - prices (object): Dollars; leave one out to not sell it - prices.weekFull (number): Price of a full week of full days, in dollars - prices.weekHalf (number): Price of a full week of half days, in dollars - prices.dayFull (number): Price of one full day, in dollars - prices.dayHalf (number): Price of one half day, in dollars - prices.flex5Full (number): Price of a flex pass for any 5 full days, in dollars - prices.flex10Full (number): Price of a flex pass for any 10 full days, in dollars - prices.flex5Half (number): Price of a flex pass for any 5 half days, in dollars - prices.flex10Half (number): Price of a flex pass for any 10 half days, in dollars - private_day_price (number): Dollars a day for a private camp group (turns on private camp requests) - private_group_size (integer): How many campers a private camp price includes #### list_parties Upcoming birthday parties. Reads only. Every birthday party in a date range (booked online or added by staff), optionally only one room, start time, package or coach, or only those with a balance due, waivers missing or allergies: date and time, package and add-ons, room and coach, how many kids are expected and coming, waivers signed and still needed, kids with allergies, who can't come, the balance due, and the party's back office page. - from (string): First day, YYYY-MM-DD (default today) - to (string): Last day, YYYY-MM-DD (default 60 days on) - room (string): Only this party room (exact name, e.g. Party Room B) - start_time (string): Only parties starting at this time, HH:MM 24-hour (e.g. 17:00) - package (string): Only this package (exact name) - coach (string): Only this coach's parties - balance_due (boolean): Only parties with a balance still due - waivers_missing (boolean): Only parties with a child whose waiver isn't signed - allergies (boolean): Only parties with a child who has allergies #### get_party_guests A party's guest list. Reads only. One party's guest list for running the party: how many children are coming, whose waivers are signed, how many have allergies or notes on file and who has checked in; plus how many can't come. In the back office's own assistant it also names each child and family with their allergies and notes; an outside AI app gets the numbers only, and the names are on the party's page. - party_id (string, required): The id from list_parties #### get_party_addons A party's food and extras. Reads only. One party's food and extras: what's chosen (with quantities and prices), the gym's list of add-ons that can be added (each, per guest or one price), the day the family can no longer change them online, and the party's total and balance. - party_id (string, required): The id from list_parties #### set_party_addons Change a party's food and extras. Changes the gym (recorded in History). Takes dry_run. Change a party's food and extras (owners and managers): send the whole new list. The party's total and balance change by the difference; the gym's own staff are not emailed. Use get_party_addons first for the keys. - party_id (string, required): The id from list_parties - addons (array of object, required): The whole new list: anything left out is taken off - addons[].key (string, required): The add-on's key from get_party_addons (or its name) - addons[].quantity (integer, required): How many for an each item (pizzas); 1 to add a per-guest or one-price item; 0 to take it off - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_party_look Change a party invitation's theme and color. Changes the gym (recorded in History). Takes dry_run. Change how a birthday party's invitation looks (owners and managers): a theme and a color. The invitation, the RSVP page, the paper invitations and the party emails follow it. Every color keeps the text easy to read. The family can also change it on their own party page. - party_id (string, required): The id from list_parties - theme (string: champion | unicorn | rainbow | neon | dino | space | ocean | sports | hero | jungle | clock | compete | spring | summer | spooky | winter, required): champion = Party Time (the usual confetti), unicorn = Unicorn Sparkle, rainbow, neon = Neon Glow, dino, space, ocean, sports = Sports Star, hero = Superhero, jungle, clock = Race the Clock (gray page, thick frame, the child's name on a yellow ribbon; best in the gym's own colors), compete = Selected to Compete (white page, black frame, obstacle athletes and a stars-and-stripes Ninja Party shield); seasonal: spring = Spring Bloom, summer = Summer Splash, spooky = Spooky Fun, winter = Winter Wonderland - color (string: gym | pink | purple | red | orange | green | teal | blue | navy): Optional: gym = the gym's own colors; leave out for the theme's own color - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### change_party Move a party, or mark it confirmed or arrived. Changes the gym (recorded in History). Takes dry_run. Move a birthday party to another day, time or room, or mark it confirmed or arrived (owners and managers). A move is checked like on the party's page: it stops when the date has passed, another party is in that room then, every party room is taken, or the gym is closed that day, and says why. A party paid online keeps its booking in step. This never emails the family: to tell them, the owner opens the party in the back office (Parties, then Edit or move the party) and saves with the email box ticked. - party_id (string, required): The id from list_parties - day (string): New day, YYYY-MM-DD (leave out to keep it) - start (string): New start time, 24-hour HH:MM - end (string): New end time, 24-hour HH:MM - room (string): The party room's name - confirmed (boolean): true = mark confirmed (staff talked to the family), false = undo - arrived (boolean): true = the family is here, false = undo - move_anyway (boolean): Move even when the room or every room is taken then (only when the owner says so) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_party_choices Party allergies and pizza ordering. Changes the gym (recorded in History). Takes dry_run. See or change two party choices (owners and managers): whether the RSVP asks about allergies, and whether families order pizza from the gym on their party page with a suggested order size. Call with no changes to see the current choices. - ask_allergies (boolean): true = guests are asked about allergies when they RSVP and staff see them; false = names only, no allergies anywhere - pizza_ordering (boolean): true = the party host can order pizza from the gym on their party page, with a suggested number of pizzas and an email with tips (needs a pizza priced each in Food and Extras: add_ons of update_party_booking) - slices_per_child (integer): 1 to 6 (default 2) - slices_per_pizza (integer): 4 to 16 (default 8) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_tips_by_person Tips by person. Reads only. Tips from parties and the register in a period: the total, each person's share (for payroll), and each tip (day, what it was for, how it was paid, who gets it). Owners only. - from (string): First day, YYYY-MM-DD (default the first of this month) - to (string): Last day, YYYY-MM-DD (default today) #### get_party_booking Birthday party booking. Reads only. How families book birthday parties online: whether online booking is on, the start times, how many parties at once, days' notice, each package's price, guests included and notice, add-on prices, the extra guest price, most guests, deposit and booking terms. - No parameters. #### update_party_booking Change party prices, times and booking. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change birthday party prices, guests included, add-on prices, start times, days' notice, deposit, whether the balance is charged automatically before the party (and how many days before), or booking terms, the Good to know list on the Parties page, show or hide the Party planning, handled section on the Parties page, or switch online booking on or off (owners and managers). Send only what changes. Switching online booking off needs the owner's yes and confirm: true. - online_booking (boolean): true = families book and pay online; false = the parties page keeps the request form - start_times (array of object): Replaces every start time. One item per party time, e.g. Saturday 12 PM to 2 PM - start_times[].day (string, required): The day of the week, e.g. Saturday - start_times[].start (string, required): e.g. 12 PM - start_times[].end (string): e.g. 2 PM - party_rooms (array of string): The party rooms by name (up to 10), e.g. Party Room A: each is a column on Bookings > Parties, and with rooms the parties at the same time is their number. An empty list removes the names - parties_at_the_same_time (integer): 1 to 10 (rooms or coordinators) - days_notice (integer): The earliest a family can book, in days from today, 0 to 60 - packages (array of object): Only the packages that change; the others stay - packages[].package (string, required): The package's name - packages[].price (number): The package's price in dollars - packages[].guests_included (integer): How many children the package includes - packages[].days_notice (integer): Only when this package needs more notice - add_ons (array of object): Food and extras to add, change or remove (others stay). Up to 3 new ones at a time - add_ons[].add_on (string, required): Its name, e.g. Pizza - add_ons[].price (number): Dollars - add_ons[].priced (string: one price | each | per guest): each = the family picks how many (pizzas); per guest = times the party's headcount (goodie bags) - add_ons[].category (string): e.g. Food, Drinks, Extras - add_ons[].remove (boolean): true takes this add-on away - families_can_change_add_ons_until_days_before (integer): Families change food and extras on their party page until this many days before (0 to 30, default 3) - extra_guest_price (number): Dollars per extra guest - most_guests (integer): Most guests at one party, 1 to 200 - deposit (number): Dollars paid online as a deposit; 0 = pay the full price online - charge_balance_automatically (boolean): With a deposit: true = the rest is charged to the family's card before the party (they agree when paying and get an email first); false = the rest is paid at the gym - balance_days_before (integer): How many days before the party the balance is charged, 1 to 14 (default 3) - booking_terms (string): Shown under the pay button, e.g. Deposits are refundable up to 7 days before the party (up to 400 characters) - good_to_know (array of string): Replaces the Good to know list on the Parties page, one short line each (up to 10): rules, what is paid when, what to bring - party_planning_section (boolean): true = the Parties page shows "Party planning, handled" (what families get with every party: the invitation, RSVPs with the waiver, their party page, reminders); false = hide it - party_video (boolean): true = that section plays the 25-second party video (a guest says yes, signs the waiver and appears on the guest list; filmed in a sample gym); false = hide the video. Never shown for a gym with an outside waiver link - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_location_party_booking Change one location's party times, rooms and packages. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change one location's birthday party booking (owners): online booking on or off, start times, named party rooms, parties at the same time, days' notice, most guests, and its packages (price, guests included, deposit, extra guest price; add or remove), its party rooms with their own picture, description and times (rooms), and the “Good to know before you book” list on its party page with headings, words and links (party_info), its own add-ons with a picture and description (add_ons). The balance charge and the cancel rule stay as set for all locations (update_party_booking), as do food and extras for a location without its own add-ons. Send only what changes. - location (string, required): The location's name (or key) - online_booking (boolean): true = families book and pay online at this location - start_times (array of object): Replaces every start time at this location - start_times[].day (string, required): The day of the week, e.g. Saturday - start_times[].start (string, required): e.g. 12 PM - start_times[].end (string): e.g. 1:50 PM - party_rooms (array of string): The location's party rooms by name (up to 10); with rooms, the parties at the same time is their number. An empty list removes the names - parties_at_the_same_time (integer): 1 to 10, when the rooms aren't named - days_notice (integer): 0 to 60 - most_guests (integer): 1 to 200 - packages (array of object): Only the packages that change or are new; the others stay. Up to 2 new ones at a time - packages[].package (string, required): Its name (a new name adds a package) - packages[].price (number): Dollars - packages[].guests_included (integer): How many children the package includes - packages[].deposit (number): Dollars paid online, 0 = the full price - packages[].extra_guest_price (number): Dollars per extra guest - packages[].remove (boolean): true takes this package away - rooms (array of object): Party rooms with their own picture, words and times: families pick a day, then a room and one of its free times. Only the rooms that change or are new; one new room at a time. With such rooms, start_times and party_rooms are not used - rooms[].room (string, required): Its name (a new name adds a room) - rooms[].description (string): What families read about the room, up to 300 characters - rooms[].times (array of object): Replaces this room's weekly times - rooms[].picture (string): A photo from the gym's library: its photo_id (list_photos, import_photo_from_url), or "" for none - rooms[].remove (boolean): true takes this party room away - add_ons (array of object): This location's own add-ons (shirts, decorating...), each with a picture and words. Only the ones that change or are new; up to 2 new at a time - add_ons[].add_on (string, required): Its name (a new name adds one) - add_ons[].price (number): Dollars - add_ons[].priced (string: flat | item | guest): flat = one price, item = each (asks how many), guest = per guest - add_ons[].description (string): What families read about it, up to 500 characters - add_ons[].picture (string): A photo_id from the gym's library, or "" for none - add_ons[].one_per_guest (boolean): true = when families book, suggest one of this add-on for each guest, with a button that adds them (only for add-ons priced item; nothing is added by itself) - add_ons[].remove (boolean): true takes this add-on away - party_info (array of object): Replaces the whole “Good to know before you book” list on this location's party page (up to 12 parts). [] removes it - party_info[].heading (string, required): e.g. Party Guests - party_info[].text (string, required): Its words, up to 3,000 characters; a line starting with - is a list item - party_info[].links (array of object): Links under the words (up to 6), each { label, url } - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_camp Change a camp's details. Changes the gym (recorded in History). Takes dry_run. Change an existing camp (owners and managers), as Edit Camp does in Schedule > Camps: name, dates, camp days, days off, ages, description, location, each session's times and room, prices and flex passes, and the private camp price. Only what the owner mentions changes. Families booked already keep their days; a new price is for new bookings. Use dry_run first and show the changes. To open or close booking use set_camp_status. - camp (string, required): The camp's name or its id from list_camps - name (string): The name families see - kind (string: summer | break | afterschool | private): summer, school break, after school or private (a group books the whole camp) - start (string): First day, YYYY-MM-DD - end (string): Last day, YYYY-MM-DD - weekdays (array of integer): Camp days of the week, 0 = Sunday - days_off (array of string): The whole list of holidays with no camp, YYYY-MM-DD - ages (string): The ages it is for, as families see it, e.g. 6-12 - about (string): A short description for the camp's page - location (string): A location key or name, for a business with several - sessions (object): am = Morning, pm = Afternoon, full = Full Day; only what changes - sessions.am (object): Morning session: { on, start, end, room } with times as HH:MM, 24-hour - sessions.pm (object): Afternoon session: { on, start, end, room } with times as HH:MM, 24-hour - sessions.full (object): Full-day session: { on, start, end, room } with times as HH:MM, 24-hour - prices (object): Dollars; null = stop selling that one; only what changes - prices.weekFull (number,null): Price of a full week of full days, in dollars - prices.weekHalf (number,null): Price of a full week of half days, in dollars - prices.dayFull (number,null): Price of one full day, in dollars - prices.dayHalf (number,null): Price of one half day, in dollars - prices.flex5Full (number,null): Price of a flex pass for any 5 full days, in dollars - prices.flex10Full (number,null): Price of a flex pass for any 10 full days, in dollars - prices.flex5Half (number,null): Price of a flex pass for any 5 half days, in dollars - prices.flex10Half (number,null): Price of a flex pass for any 10 half days, in dollars - private_camp (boolean): Offer private camp requests - private_day_price (number): A private camp's price for a full day, in dollars - private_half_day_price (number,null): A private camp's price for a half day, in dollars - private_group_size (integer): How many campers a private camp price includes - private_extra_camper_price (number,null): The price for each camper over the group size, in dollars - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_camp_status Open or close a camp for booking. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Open a camp for booking on the website, close booking, or put it back to draft (owners and managers), as the camp's page in Schedule > Camps does. Closing or putting an open camp back to draft stops new bookings and needs confirm: true after the owner says yes. Nobody is emailed. - camp (string, required): The camp's name or its id from list_camps - status (string: open | closed | draft, required): open = families can book on the website; closed = no new bookings (campers booked keep their days); draft = hidden from the website while it's set up - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes #### set_camp_request_status Mark a private camp request. Changes the gym (recorded in History). Takes dry_run. Mark a private camp request booked or declined (or back to new) after the gym has talked with the group (owners and managers), as Schedule > Camps > Private requests does. It only changes the mark: nobody is emailed, nothing is booked or charged. - request_id (string, required): The id from list_private_camp_requests - status (string: new | booked | declined, required): booked, declined, or new to clear the mark - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Competitions, leagues, sports and volunteers Competitions and the leagues a gym hosts, scoring and courses, reruns, analytics, volunteer plans, sports and teams. #### get_competitions Competitions. Reads only. The gym's competitions with their details: type, league and tier, dates, entry price, registration dates, capacity, links, wave times, description and whether it is shown on the website. Details only: athletes and registrations stay in the back office (get_registration_numbers gives totals). - include_past (boolean): true = also past competitions (default: upcoming only) #### add_competition Add a competition. Changes the gym (recorded in History). Takes dry_run. Create a competition (owners and managers). Ask the owner for the name, type, date, entry price and league; never guess them. It is saved as a hidden draft unless show_on_website is true; families can register once it is shown and has an entry price. Divisions, registrations and the run order are handled in the back office. - name (string, required): e.g. Fall Ninja Classic (up to 120 characters) - competition_type (string: challenge | flow | skills | speed | stage | ocr | team | other): challenge = Challenge course, flow = Flow course, skills = Skills competition, speed = Speed / head to head, stage = Stages (ninja warrior style), ocr = Obstacle course race, team = Team competition. Families see it when they register - league (string): e.g. WNL or UNAA; empty for the gym's own local event - tier (string): e.g. Tier 1, Tier 2, Qualifier (Tier 1 adds the Elite division) - first_day (string, required): YYYY-MM-DD - last_day (string): YYYY-MM-DD, only when it runs over several days; empty to clear - ages_counted_on (string): YYYY-MM-DD: the date athletes' ages are counted on (WNL uses January 1 of the championship year) - entry_price (number): Dollars. Online registration opens only when it is more than 0 - registration_opens (string): YYYY-MM-DD; empty = open now - registration_closes (string): YYYY-MM-DD, end of that day; empty = open until the competition - capacity (integer): Most paid athletes; 0 = no limit - live_stream_link (string): YouTube link; empty to remove - results_link (string): Link to the results; empty to remove - league_page_link (string): The league's page for this tier; empty to remove - ninja_master_event (string): The Ninja Master event's link or number; empty to remove - registration_where (string: here | ninja_master | sportsengine | other): Where families register: here = the gym's own website with online checkout; ninja_master, sportsengine or other = on that site (UNAA and NSC usually use Ninja Master, FINA SportsEngine). Then the Register buttons say "Register on Ninja Master" and open registration_link; the competition page, countdown, live stream, run order and results stay on the gym's website - registration_link (string): The https link to the competition's registration on that other site; empty to remove - ninjaworks_competition (string): The NinjaWorks timing competition link or number (live results and who is on the course); empty to remove - wave_times (string): The league's wave schedule: a day on its own line, then one line per wave like Teens | 9AM. When one competition covers two courses (a double header), put a line naming each course before its waves, like Flow course - description (string): Shown on the competition's page (up to 4,000 characters) - flyer (string): The name of a flyer the gym already has (get_special_events lists flyers); empty to remove. New flyers are added with upload_photo, purpose event_flyer - show_on_website (boolean): true = published on the website (registration can open); false = a hidden draft - location (string): Which location it is at, by name (only for gyms with several locations); empty = every location - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_hosted_leagues Leagues the gym hosts. Reads only. Which leagues' competitions the gym hosts (World Ninja League, UNAA, NSC, FINA, or its own competitions), whether the owner set it or it is worked out from the gym's competitions, and whether the website uses World Ninja League wording (the WNL steps, tiers and stats show only for a WNL gym). - No parameters. #### set_hosted_leagues Set the leagues the gym hosts. Changes the gym (recorded in History). Takes dry_run. Set which leagues' competitions the gym hosts (owners and managers). The Competitions page then talks only about those leagues (World Ninja League wording, the tier key and the WNL first-competition steps show only for WNL; other gyms get plain first-competition steps), and a new competition starts with the gym's league (WNL Tier 2, else the first league with no tier). Where families register for each competition is set with update_competition (registration_where, registration_link). - leagues (array of WNL | UNAA | NSC | FINA | local, required): Every league whose competitions the gym hosts; local = the gym's own competitions with no league. An empty list goes back to working it out from the gym's competitions - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_competition_analytics Competition analytics. Reads only. A competition's analytics from NinjaWorks timing or from runs scored in NinjaHQ (competitions with a NinjaWorks number, or scored on a phone in the back office): runs, course clears, the obstacle with the most falls, the obstacle with the most retries, the fastest clear, and every obstacle with its type, how many tried and the share who made it. Results are public on the competition's analytics page. - competition (string, required): The competition's name #### set_obstacle_types Set obstacle types. Changes the gym (recorded in History). Takes dry_run. Set the type of obstacles on a competition's analytics page (owners and managers): Balance, Swing & Lache, Upper Body & Grip, Moving Obstacles, Jumps & Precision, Walls & Climbing, Other. Types are guessed from the obstacle's name; this corrects them. The same obstacle keeps its type at later competitions. - competition (string, required): The competition's name - types (array of object, required): One entry per obstacle to change - types[].obstacle (string, required): The obstacle's name as NinjaWorks shows it - types[].type (string: Balance | Swing & Lache | Upper Body & Grip | Moving Obstacles | Jumps & Precision | Walls & Climbing | Other, required): Its type - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_competition_scoring Competition scoring: who is up, the course and the runs. Reads only. For a competition the gym scores itself in NinjaHQ (its own or a practice competition, never one a league system scores): the course (format, obstacles, time limits), who is on the course, who is next and on deck, how many have run, and every run with its result. Each run has an id for fix_competition_run, give_competition_rerun and remove_competition_run. - competition (string, required): The competition's name #### set_competition_course Set up a competition's course. Changes the gym (recorded in History). Takes dry_run. Set up or change the course of a competition the gym scores itself in NinjaHQ (owners and managers): the format, the obstacles in order and the time limit, with a different limit for some divisions. Once athletes have run, only obstacle names and time limits can change. Never for a competition a league system scores. - competition (string, required): The competition's name - format (string: Flow | Challenge | Full Course | NSC | Our Own Rules, required): Flow: the first fall ends the run. Challenge: 2 retries per run, 1 per obstacle, the clock stops during a reset. Full Course: a fall moves on to the next obstacle, no retries, the run ends at the buzzer or the time limit. NSC: up to 3 tries on each obstacle, a third fall on the same obstacle ends the run, the clock keeps running. Our Own Rules: see own_rules. - obstacles (array of string, required): The obstacle names in the order athletes meet them; the last one is the buzzer - time_limit (string): Minutes and seconds like "2:30"; empty for no time limit - division_time_limits (array of object): Only the divisions whose limit differs from time_limit - division_time_limits[].division (string, required): The division's name as in the competition, e.g. 11-12 Girls - division_time_limits[].time_limit (string, required): That division's limit in minutes and seconds, like "3:00" - own_rules (object): Only with Our Own Rules - own_rules.after_a_fall (string: the run ends | move on to the next obstacle | retry the obstacle): What happens when an athlete falls - own_rules.falls_that_end_the_run (integer): How many falls end the run (0 for no limit) - own_rules.retries_per_run (integer): How many retries an athlete has in the whole run - own_rules.retries_per_obstacle (integer): How many retries an athlete has on one obstacle - own_rules.clock_during_a_reset (string: stops | keeps running): Whether the run clock stops while an obstacle is reset - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### fix_competition_run Fix a scored run. Changes the gym (recorded in History). Takes dry_run. Correct a run scored in NinjaHQ: an obstacle's result (cleared, fell, time ran out, not reached), the clock when it happened, or its retries. The time that counts is the clock at the last cleared obstacle. Who made the fix, when and why are kept, and what the judge's taps said stays visible in the back office. The results, live page and analytics update at once. - competition (string, required): The competition's name - run_id (string): The run's id from get_competition_scoring (or give athlete) - athlete (string): The athlete's name, when the run id isn't known - obstacles (array of object, required): Only the obstacles to change; the others stay as they are - obstacles[].number (integer, required): The obstacle's number on the course, from 1 - obstacles[].result (string: cleared | fell | time ran out | not reached): What happened on the obstacle - obstacles[].clock (string): The run clock when it happened, like "1:16.05" - obstacles[].retries (integer): How many retries the athlete used on it - ended_by (string: a fall | time ran out | ended early): Only matters when not every obstacle was cleared - reason (string: Tapped Late | Wrong Button | Judge's Call | Video Review | Other, required): Why the run is being fixed - note (string): Why the run was corrected, kept with the fix - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### give_competition_rerun Give a re-run for a course problem. Changes the gym (recorded in History). Takes dry_run. Give an athlete a re-run after a course problem (an obstacle broke, someone got in the way, the clock was wrong) at a competition scored in NinjaHQ. The first run is kept, marked as re-run given, and no longer counts; the athlete goes back on the run list after a five-minute rest and only the re-run counts. - competition (string, required): The competition's name - run_id (string): The run's id from get_competition_scoring (or give athlete) - athlete (string): The athlete's name, when the run id isn't known - reason (string: An Obstacle Broke or Moved | Someone or Something Got in the Way | The Clock Was Wrong | Other, required): What went wrong on the course - note (string): What went wrong, e.g. the cargo net came loose; kept with the re-run - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_competition_run Remove or restore a scored run. Changes the gym (recorded in History). Takes dry_run. Take a run out of the results of a competition scored in NinjaHQ (a run started by mistake), or put a removed run back with restore: true. Nothing is deleted: the run and its history stay, and the athlete goes back on the run list. - competition (string, required): The competition's name - run_id (string): The run's id from get_competition_scoring (or give athlete) - athlete (string): The athlete's name, when the run id isn't known - restore (boolean): true = put a removed run back in the results - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_competition Change a competition's details. Changes the gym (recorded in History). Takes dry_run. Change a competition's details: name, type, league, tier, dates, entry price, registration dates, capacity, links, wave times, description, flyer, or whether it is shown on the website (owners and managers). Send only what changes; everything else stays as it is. - competition (string, required): The competition's current name - new_name (string): The competition's new name - competition_type (string: challenge | flow | skills | speed | stage | ocr | team | other): challenge = Challenge course, flow = Flow course, skills = Skills competition, speed = Speed / head to head, stage = Stages (ninja warrior style), ocr = Obstacle course race, team = Team competition. Families see it when they register - league (string): e.g. WNL or UNAA; empty for the gym's own local event - tier (string): e.g. Tier 1, Tier 2, Qualifier (Tier 1 adds the Elite division) - first_day (string): YYYY-MM-DD - last_day (string): YYYY-MM-DD, only when it runs over several days; empty to clear - ages_counted_on (string): YYYY-MM-DD: the date athletes' ages are counted on (WNL uses January 1 of the championship year) - entry_price (number): Dollars. Online registration opens only when it is more than 0 - registration_opens (string): YYYY-MM-DD; empty = open now - registration_closes (string): YYYY-MM-DD, end of that day; empty = open until the competition - capacity (integer): Most paid athletes; 0 = no limit - live_stream_link (string): YouTube link; empty to remove - results_link (string): Link to the results; empty to remove - league_page_link (string): The league's page for this tier; empty to remove - ninja_master_event (string): The Ninja Master event's link or number; empty to remove - registration_where (string: here | ninja_master | sportsengine | other): Where families register: here = the gym's own website with online checkout; ninja_master, sportsengine or other = on that site (UNAA and NSC usually use Ninja Master, FINA SportsEngine). Then the Register buttons say "Register on Ninja Master" and open registration_link; the competition page, countdown, live stream, run order and results stay on the gym's website - registration_link (string): The https link to the competition's registration on that other site; empty to remove - ninjaworks_competition (string): The NinjaWorks timing competition link or number (live results and who is on the course); empty to remove - wave_times (string): The league's wave schedule: a day on its own line, then one line per wave like Teens | 9AM. When one competition covers two courses (a double header), put a line naming each course before its waves, like Flow course - description (string): Shown on the competition's page (up to 4,000 characters) - flyer (string): The name of a flyer the gym already has (get_special_events lists flyers); empty to remove. New flyers are added with upload_photo, purpose event_flyer - show_on_website (boolean): true = published on the website (registration can open); false = a hidden draft - location (string): Which location it is at, by name (only for gyms with several locations); empty = every location - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_ninjahq_line NinjaHQ line in registration confirmations. Reads only. Whether competition registration confirmations end with the short NinjaHQ line (US families only, once a year per family, never when the athlete's home gym is this gym), and its wording. - No parameters. #### set_ninjahq_line Turn the NinjaHQ line in confirmations on or off. Changes the gym (recorded in History). Takes dry_run. Switch the short NinjaHQ line at the end of competition registration confirmations on or off (owners only). The confirmation itself is unchanged either way. - on (boolean): true = add the short NinjaHQ line at the end of competition registration confirmations; false = leave it out - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_competition Delete a competition. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Delete a competition nobody has registered or volunteered for, e.g. one made by mistake (owners and managers). A competition with any registration stays: hide it instead with update_competition (show_on_website: false). Ask the owner to confirm, then send confirm: true. History in the back office can bring it back. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_athlete_info_followups Athlete info follow-up settings. Reads only. Whether families are emailed automatically before every competition when their athlete's details (home gym, picture, ninja name, Instagram) are missing, and when: the first ask, the last call and the hour they go. Settings only: families and athletes stay in the back office. - No parameters. #### set_athlete_info_followups Change the athlete info follow-ups. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Switch the automatic athlete info follow-up emails on or off and set when they go (owners and managers). Switching them on means families are emailed automatically, and switching them off stops that, so both need the owner's yes and confirm: true. Send only what changes. - automatic (boolean): true = email families automatically before every competition when details are missing - first_ask_days_before (integer): 5 to 30 days before the competition - last_call_days_before (integer): 2 to 7 days before (after the first ask) - send_at_hour (integer): 9 to 20 (the gym's local hour, 24-hour clock) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_sports_and_teams Sports and teams. Reads only. The Teams page: each sport (with the classes in it), the competitive teams (sport, where their training times come from, tagline, about, highlights, how to join) and the page's headings. Teams only: athletes and team lists stay in the back office. - No parameters. #### save_team Add or change a team. Changes the gym (recorded in History). Takes dry_run. Add a competitive team to the Teams page, or change one's name, sport, training times entry, tagline, about, highlights or how to join (owners only). Send only what changes. Training times always come from the weekly schedule. - team (string): The team's current name, to change one; leave out to add a team - name (string): e.g. Ninja Pro Team (up to 60 characters) - sport (string): A sport's name from get_sports_and_teams, or "none" - schedule_entry (string): The weekly schedule entry its training times come from (a name from get_sports_and_teams); empty = the entry with the team's name - tagline (string): One line under the name (up to 120 characters) - about (string): Up to 500 characters - highlights (array of string): Up to 8 short lines, e.g. Trains four days a week - how_to_join (string): e.g. Tryouts in August (up to 240 characters) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_team Take a team off the Teams page. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a team off the Teams page (owners only). Its classes and the families' team email list stay. Ask the owner to confirm, then send confirm: true. History can bring it back. - team (string, required): The team's id or exact name, from get_sports_and_teams - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### save_sport Add or change a sport. Changes the gym (recorded in History). Takes dry_run. Add a sport (ninja, parkour, chase tag...) or change one's name, short name or description, and say which classes belong to it (owners only). Only needed when the gym trains more than one sport; sports group the classes on the Classes page. - sport (string): The sport's current name, to change one; leave out to add a sport - name (string): e.g. Parkour (up to 40 characters) - short_name (string): Up to 20 characters - about (string): One or two sentences for the home page and the Classes page (up to 300 characters) - classes (array of string): Class names (from get_sports_and_teams) to put in this sport; classes left out keep their sport - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_sport Remove a sport. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Remove a sport (owners only). Its classes and teams stay, with no sport. Ask the owner to confirm, then send confirm: true. - sport (string, required): The sport's id or exact name, from get_sports_and_teams - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_teams_page_words Change the Teams page headings. Changes the gym (recorded in History). Takes dry_run. Change the Teams page's headline, intro and note, and the heading above the sports on the home page (owners only). Send only what changes. - teams_headline (string): e.g. Our competitive teams (up to 100 characters) - teams_intro (string): One or two sentences above the teams (up to 300) - teams_note (string): A note under the teams (up to 240); empty for none - sports_heading (string): The heading above the sports on the home page, e.g. Three sports, one gym (up to 80) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_volunteer_plan A competition's volunteer plan. Reads only. A competition's volunteer sign-up: whether it is open, the waiver and reminder settings, the note, the roles (jobs) and the shifts with how many people each role needs and how many have signed up. Numbers only: volunteers' names and contacts stay in the back office. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) #### set_volunteer_settings Open or close volunteer sign-up. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Open or close a competition's volunteer sign-up page and set the waiver, the reminders and the note (owners and managers). Opening it does not email anyone; asking families to volunteer is done in the back office. Closing sign-up or turning reminders off needs confirm: true. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - sign_up_open (boolean): true = families can pick shifts on the competition's volunteer page - volunteers_sign_waiver (boolean): true = volunteers need a signed waiver in their own name - reminders (boolean): true = volunteers get a reminder email before their shift - note (string): A note on the sign-up page, e.g. Free snacks for volunteers (up to 400 characters) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_volunteer_roles Set a competition's volunteer roles. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Set the volunteer jobs for a competition (obstacle reset, athlete staging, crowd control, check-in...): name, one line about it, where, and how early it starts (owners and managers). Send the whole list; a role with people signed up can't be removed, and removing any role needs confirm: true. Then set how many each shift needs with set_volunteer_shifts. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - roles (array of object, required): Every role (job), in order: this is the whole list. Roles are matched by name (or current_name to rename one). - roles[].name (string, required): e.g. Obstacle reset (up to 40 characters) - roles[].current_name (string): Only to rename a role: its name now - roles[].about (string): One line volunteers see (up to 240 characters) - roles[].where (string): Where in the gym, e.g. Main floor - roles[].starts_minutes_early (integer): 0 to 180: how many minutes before each shift this job starts (check-in might start 45 minutes early) - roles[].until_competition_starts (boolean): true = the job ends when the competition starts (check-in) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_volunteer_shifts Set a competition's volunteer shifts. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Set a competition's volunteer shifts (owners and managers): day, start and end, a label, and how many people each role needs in it (0 = not needed then). Send the whole list, keeping existing shifts by their shift_id from get_volunteer_plan. A shift with people signed up can't be removed; removing any shift needs confirm: true. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - shifts (array of object, required): Every shift: this is the whole list. Keep a shift by sending its shift_id. - shifts[].shift_id (string): From get_volunteer_plan, to keep an existing shift (its sign-ups stay with it); leave out for a new shift - shifts[].day (string, required): YYYY-MM-DD: one of the competition's days or the day before or after - shifts[].start (string, required): e.g. 8:00 AM or 08:00 - shifts[].end (string, required): e.g. 12:00 PM or 12:00 - shifts[].label (string): e.g. Morning (up to 60 characters) - shifts[].needs (object): How many people each role needs in this shift, by role name, e.g. { "Obstacle reset": 4 }. Roles left out keep their number (0 for a new shift). - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### copy_volunteer_shifts Copy a day's volunteer shifts. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Copy one day's volunteer shifts to another day of the competition, or to the other competition of the same weekend (owners and managers). The shifts already on the day copied to are replaced, so that needs confirm: true; a day with people signed up is left alone. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - from_day (string, required): YYYY-MM-DD: the day to copy - to_day (string, required): YYYY-MM-DD: the day to copy to - to_competition (string): Only to copy to the other competition of the same weekend: its name - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### reset_volunteer_shifts Start the volunteer shifts again. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Put a competition's volunteer roles and shifts back to the standard ones made from its wave times (owners and managers). Only before anyone signs up. Ask the owner to confirm, then send confirm: true. - competition (string, required): The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Emails, texts, push and social News email drafts (never sent by the connector), every automatic email and its versions, email settings, text campaign audiences, push notifications, the phone line and social posts. #### get_push_notifications Push notifications. Reads only. Push notifications to families' phones: whether they are switched on, how many families and devices have them on, whether the website is live (before launch only staff and test addresses get them), and the last 30 sends (title, message, link, who it went to, families and devices reached). Sending is done by an owner in the back office (Marketing > Push notifications): it reaches people, so the connector never sends one. - No parameters. #### flyer_to_email Make an email from a flyer. Changes the gym (recorded in History). Turn a saved flyer into a draft email in Marketing > Emails (owners and managers): a picture of the flyer, its words and details, its button, and a link to download the flyer as a PDF. Nothing is sent: the owner picks who gets it and presses Send on the Emails page. - id (string, required): The flyer's id (list_flyers) #### count_text_audience Who a text would reach. Reads only. How many people a text message to a group would reach (only people who said yes to texts, never anyone who replied STOP), the text as it would be sent (with the gym's name and Reply STOP to opt out), how many parts it is and the cost estimate. The connector doesn't send texts: the owner sends them in Marketing > Text messages. - audience (string, required): all, members, packs, customers, campers, competitors, loc:<location key> or tag:<list> - message (string): The text to check (optional): returns it as sent, its parts and cost #### save_email_draft Save an email to customers as a draft. Changes the gym (recorded in History). Takes dry_run. In the Web developer set. Save a news email or notice as a draft for the owner to review and send themselves: it becomes a saved template under Marketing > Email templates, picked under "Start from" on the Emails page (owners and managers). Nothing is sent from here, ever; the owner chooses who gets it and presses Send in the back office. - name (string): A name only the gym sees, e.g. Snow day closure (up to 80 characters) - subject (string, required): The subject line (up to 150 characters) - message (string, required): The email's words; blank lines between paragraphs - button_label (string): Optional button words, e.g. Book now - button_link (string): The button's https:// link, needed with button_label - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_email_preferences See which emails a family gets. Reads only. Which types of email one family gets from the gym: competition essentials (always), competition updates, classes, camps and gym notices, follow-ups, and news and promotions; and whether their address bounced or marked an email as spam. Owners only. - email (string, required): The family's email address #### set_email_preferences Change which emails a family gets. Changes the gym (recorded in History). Takes dry_run. Turn types of email on or off for one family, only when the family asked the gym to (owners only; recorded with the owner's name). Competition essentials (run order, competition-day reminders), receipts and confirmations can't be turned off. News and promotions can only be turned on by the family themselves (a recorded yes), so this tool doesn't change news; the family uses "Choose which emails you get" at the bottom of any email. - email (string, required): The family's email address - competition_updates (boolean): Competition update emails for this family - classes_camps_and_gym_notices (boolean): Class, camp and gym notice emails for this family - follow_ups (boolean): Follow-up emails for this family - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_automatic_emails The emails the website sends automatically. Reads only. Every automatic email the website sends customers (Marketing > Email templates): its name, when it is sent, who gets it, whether it is on, whether the gym changed its words, and whether it can be switched off on its own; the on/off groups (trial, party, camp, waitlist, waiver renewal and class pack emails); and the gym's own saved templates. Nothing is sent from here. - No parameters. #### get_email_template_versions An email's earlier versions. Reads only. The words an automatic email (or a saved template) goes out with now, and its last 20 saved versions by date, each with its subject and first words. Use the version number with restore_email_template_version. - email (string, required): The email's name from get_automatic_emails, or a saved template's name #### set_automatic_emails Turn a group of automatic emails on or off. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Turn a whole group of automatic customer emails on or off (owners and managers): trial and drop-in reminders with the after-trial invitation, party reminders and thank-you, waitlist spot offers, camp reminders, waiver renewal reminders, or class pack emails. Turning one off needs confirm: true after the owner says yes. This never sends anything itself. - group (string: trial_and_drop_in_reminders | party_reminders | waitlist_offers | camp_reminders | waiver_renewals | class_packs, required): Which group of automatic emails - on (boolean, required): true switches the whole group on, false off - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_email_on Turn one automatic email on or off. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Stop one automatic email on its own, or start it again (owners and managers), for the emails that can be switched off alone (reminders, follow-ups and thank-yous: can_switch_off_alone in get_automatic_emails). Receipts and confirmations can't be. Turning one off needs confirm: true after the owner says yes. - email (string, required): The email's name from get_automatic_emails - on (boolean, required): true starts the email again, false stops it - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### reset_email_template Put an email back to the standard words. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Put an automatic email back to NinjaHQ's standard words, undoing the gym's own words (owners and managers); its earlier versions stay under get_email_template_versions. An email switched off on its own is on again afterwards. For one of the gym's saved templates, this deletes it. Ask the owner, then send confirm: true. - email (string, required): The email's name, or a saved template's name to delete it - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### restore_email_template_version Bring back an earlier version of an email. Changes the gym (recorded in History). Takes dry_run. Bring back one of an email's earlier saved versions (owners and managers): from then on the email goes out with those words. The words it has now are kept as a version too, so this can be undone the same way. - email (string, required): The email's key, from get_automatic_emails - version (integer, required): The version number from get_email_template_versions - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_email_settings Email settings. Reads only. The gym's email settings: whether "Email me news" starts ticked for US visitors (US gyms only), the time camp reminders go out the day before, which groups of automatic emails are on, and whether owners get emails about customers' expiring or replaced cards. - No parameters. #### set_email_settings Change the email settings. Changes the gym (recorded in History). Takes dry_run. Change when camp reminders go out the day before, and (US gyms only) whether "Email me news" starts ticked for US visitors (owners and managers). To turn reminder emails on or off, use set_automatic_emails. Nothing is sent from here. - news_box_ticked_for_us_visitors (boolean): US gyms only: "Email me news" starts ticked on the website's forms for US visitors (US law allows it; visitors from other countries always see it unticked) - camp_reminder_hour (integer): 8 to 21 (24-hour clock): when camp reminders go out the day before, e.g. 17 = 5 PM - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_card_alert_emails Card alert emails to owners. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Turn on or off the emails owners get when a customer's saved card is about to expire, has expired or was replaced by the bank (owners and managers; Money > Cards to update). They go to the gym's owners only, never to customers. The list and check-in still show the cards either way. Turning them off needs confirm: true. - on (boolean, required): true sends owners these card emails, false stops them - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_phone_calls How the gym's phone line answers. Reads only. How calls to the gym's NinjaHQ phone number are answered (owners only; Settings > Phone & texting): the gym's number, how many cell phones ring and in which order, whether the call is announced first, whether calls outside opening hours go to voicemail, and the voicemail greeting. Staff's own cell numbers and addresses are not shown. - No parameters. #### set_phone_calls Change how the phone line answers. Changes the gym (recorded in History). Takes dry_run. Change how calls to the gym's NinjaHQ number are answered (owners only): the voicemail greeting, whether the cell phones ring all at once or one after another, the announcement before connecting, and after-hours voicemail. The cell phones that ring and the voicemail email addresses stay as they are (back office only). Calls are never recorded. - voicemail_greeting (string): What callers hear before leaving a voicemail (up to 500 characters); empty = the standard greeting - ring (string: all_at_once | one_after_another): Ring every phone at once, or one after another - announce_call_first (boolean): Say "Call for <gym>. Press 1 to answer" first, so a phone's own voicemail never takes the call - after_hours_straight_to_voicemail (boolean): Outside the website's opening hours, calls go straight to voicemail - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_social_posts Posts from Facebook and Instagram. Reads only. The gym's own recent Facebook and Instagram posts and what each one could add to the website: a closure, a schedule change, a special event (title, date, time, price, ages), photos or a video, and whether it was added. Also whether closures and photos are added by themselves. Only the gym's posts: comments and messages from people are not shown. - show (string: new | done | ignored | all): new = waiting for a choice (default), done = used, ignored = skipped #### use_social_post Put a social post on the website. Changes the gym (recorded in History). Takes dry_run. Add what one of the gym's own posts announces to the website (owners and managers): a closure or schedule change on the schedule, a special event on Special events, its photos on the Photos page, or its video. Check the date, time and price with the owner first; never guess them. - post_id (string, required): From get_social_posts - add (string: closure | change | event | photos | video, required): What to add: closure (the gym is closed), change (a one-day schedule change), event (Special events), photos (to the Photos page), video (a click-to-play clip on the Photos page) - index (integer): Which suggestion of that kind (from get_social_posts), default 0 - title (string): For an event or a video: the title (up to 80 characters) - date (string): YYYY-MM-DD, to correct the date read from the post - end (string): YYYY-MM-DD, the last day - time (string): For an event, e.g. 6-9 PM - price (string): For an event, e.g. $35 - ages (string): For an event, e.g. Ages 5-12 - description (string): For an event: the words families see (up to 600 characters) - use_picture_as_flyer (boolean): For an event: true (default) = the post's first picture becomes its flyer - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### skip_social_post Skip a social post. Changes the gym (recorded in History). Takes dry_run. Mark one of the gym's posts as skipped, so it leaves the waiting list without changing the website (owners and managers). - post_id (string, required): The post's id, from get_social_posts - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### refresh_social Check Facebook and Instagram for new posts. Changes the gym (recorded in History). Takes dry_run. Check the gym's connected Facebook Page and Instagram now for new posts (and new comments for the Social inbox), instead of waiting up to 15 minutes (owners and managers). It only reads the gym's own accounts: nothing is posted or replied. Says how many are new; comments themselves are answered in the back office. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_social_auto Let social posts update the website by themselves. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Choose whether closures and photos from the gym's own posts go on the website by themselves or wait for a tap (owners only). Special events always wait. Switching one back to ask needs confirm: true. - closures (string: auto | ask): auto = closures announced in a post go on the schedule by themselves; ask = wait for a tap - photos (string: auto | ask): auto = a post's photos go on the Photos page by themselves - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Flyers Print-ready flyers made from the gym's camps, parties, classes and events: more than 20 designs, a QR code, free stock photos, a share link and an email draft from any flyer. #### flyer_link Make a flyer to print. Reads only. A one-page flyer to print and hand out, made from the gym's website (classes by age, open gym, prices, parties, camps): returns the link to the flyers page in the back office with this flyer chosen, where the owner checks it and presses Print. Use it for a field trip or school visit (take-home flyers for the kids), the front desk, parties or camps. - purpose (string: everything | fieldtrip | parties | camps): What the flyer is for: everything (classes, open gym, parties, camps), fieldtrip (a thank-you for a field trip or school visit), parties or camps - school (string): For a field trip: the school or group's name, shown as Thanks for visiting, <name>! - offer (string): An optional offer line, such as Your first class is free (80 characters at most) - code (string): An optional discount code the gym already has (Money > Discount codes) - half_page (boolean): Two half-page flyers per sheet, to cut (cheaper for a whole class) - headline (string): Optional: the flyer's headline in the gym's own words (90 characters at most) - message (string): Optional: the line under the headline (240 characters at most) #### list_flyer_templates Flyer templates. Reads only. Everything a flyer can be made from: occasions (seasonal ones like halloween, thanksgiving, wintercamp, valentine, summercamp; year-round ones like pno, openhouse, competition, tryouts, hiring; and the four that fill themselves from the gym's classes, parties and camps), designs, layouts, color palettes (brand = the gym's own), stickers, QR targets, and each slot's limit and comfortable length. Also what's coming up (soonest first) and the camps, events, party packages and classes a flyer can be tied to. - No parameters. #### list_flyers Saved flyers. Reads only. The gym's saved flyers (newest change first), each with its id and the links to edit and print it. - No parameters. #### get_flyer Read a flyer. Reads only. One saved flyer: its words, look, photo, what it's tied to, warnings (words that make the type small), and the links to edit it and to print it (the print link shows the flyer with a Print button). - id (string, required): The flyer's id (list_flyers) #### create_flyer Make a flyer. Changes the gym (recorded in History). Make and save a flyer from an occasion with ready words in the gym's logo, colors, phone and website, then change any words. Returns its id, warnings and the links to edit and print it. Nothing is printed, sent or posted. - occasion (string, required): What it's for: a key from list_flyer_templates (halloween, wintercamp, pno, openhouse, everything, fieldtrip, ...) - name (string): Optional: a name for the flyers list - design (string): Optional design key (the occasion's own by default) - layout (string: classic | photo | bold | split): How the photo and words are arranged - palette (string): Optional palette key; brand is the gym's own colors - paper (string: letter | a4): Paper size: letter (US) or a4 - half (boolean): Two half-page flyers per sheet, to cut - color (boolean): false for ink saver (black and white) - slots (object): The words: headline, subhead, body, bullets (array), date, time, price, cta, offer, code (one of the gym's discount codes), to (a field trip's school), qr (home|classes|parties|camps|bound|page|none), qrPage, photo { src (from the gym's photo library: list_pictures), alt, fx, fy (what stays in view, 0-100) }. Leave date, time and price empty when tied to something: they fill in. - tie_to (object): Optional { kind: camp|event|party|class, id } from list_flyer_templates can_tie_to: its name, dates and price fill in - stickers (array of values): Optional [{ key, at: tl|tr|bl|br, size: s|m|l }] #### update_flyer Change a flyer. Changes the gym (recorded in History). Change a saved flyer: only what's given changes, so "make it the Halloween design" is { design: "halloween", palette: "halloween" } and the words stay. Words over a slot's limit are refused with the limit. - id (string, required): The flyer's id (list_flyers) - name (string): The flyer's name in the flyer list (not printed) - design (string): Design key from list_flyer_templates - layout (string: classic | photo | bold | split): How the photo and words are arranged - palette (string): Palette key from list_flyer_templates; brand is the gym's own colors - paper (string: letter | a4): Paper size: letter (US) or a4 - half (boolean): Two half-page flyers per sheet, to cut - color (boolean): false for ink saver (black and white) - slots (object): Only the slots that change (as in create_flyer); a slot set to "" is emptied - tie_to (object,null): { kind, id } or null to untie - stickers (array of values): The stickers, replacing the current ones: [{ key, at: tl|tr|bl|br, size: s|m|l }]; [] removes them #### search_stock_photos Search free stock photos. Reads only. Search Pixabay's free photos for a flyer (only when the gym has stock photos on). Returns each photo's id, a description, the photographer and its size; use_stock_photo puts one on a flyer. Prefer photos without recognizable faces or brand logos: the people in stock photos haven't agreed to be in advertising. The gym's own photos (list_pictures) usually work better. - query (string, required): What to look for, like "snowy park" or "birthday balloons" (80 characters at most) - page (integer): Which page of results, from 1 #### use_stock_photo Put a stock photo on a flyer. Changes the gym (recorded in History). Copy a Pixabay photo into the gym's photo library and put it on a flyer (its photographer is kept as the credit). Tell the owner to check what stays in view. - id (string, required): The flyer's id (list_flyers) - photo_id (string, required): The stock photo's id from search_stock_photos #### copy_flyer Copy a flyer. Changes the gym (recorded in History). Make a copy of a saved flyer (to change it for another camp week or another school), and return the copy. - id (string, required): The flyer to copy, from list_flyers #### delete_flyer Delete a flyer. Changes the gym (recorded in History). Delete a saved flyer for good (owners and managers). Ask the owner first. - id (string, required): The flyer to delete, from list_flyers ### Waivers Waiver templates, translations and which waiver is live. #### get_waiver_templates The waivers families sign. Reads only. The gym's waivers (People > Waivers > Waivers & settings): each one's name, whether it is live (families can sign it) or a draft, its version, how many have signed it and its languages. With waiver: that waiver's full text (introduction and sections), questions, who signs, ages, how long it is valid, video and other settings, and its Spanish or French translation. The template only: never signed waivers or who signed. - waiver (string): Optional: one waiver's name, to get its full text, questions and settings #### add_waiver_template Add another waiver. Changes the gym (recorded in History). Takes dry_run. Add another waiver, for example one for camps, parties or competitions (owners and managers). It starts as a DRAFT that families can't sign, copied from the sample waiver or from one of the gym's waivers. Change its text with update_waiver_template, then the owner reviews it (with their attorney) and publishes it with set_waiver_live. - title (string, required): e.g. Summer camp waiver (up to 120 characters) - start_from (string): The name of an existing waiver to copy; empty = NinjaHQ's sample waiver - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### update_waiver_template Change a waiver's text or settings. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change a waiver template: its title, introduction, sections of legal text, extra questions, who signs, ages, how long it is valid, the safety video and the other settings (owners and managers). This is the LEGAL TEXT families sign: never write or reword it on your own initiative; use the owner's words. Always call with dry_run: true first, show the owner the exact new wording (new_wording) word for word, and get a clear yes. On a live waiver the save becomes a new version that every family signs from then on (waivers already signed keep their version), so it needs confirm: true. Remind the owner to have their attorney review legal changes. Send only what changes. - waiver (string, required): The waiver's current name - new_title (string): The waiver's new title - introduction (string): The words above the waiver's sections. A blank line starts a new paragraph. - sections (array of object): The whole list of sections in order; replaces them all. Usually use section_changes or add_sections instead - sections[].heading (string, required): The section's heading - sections[].text (string, required): The section's words. A blank line starts a new paragraph; lines starting with "- " become a list. - sections[].initials_required (boolean): true = each signer initials this section - section_changes (array of object): Change or remove single sections - section_changes[].section (string, required): The section's current heading - section_changes[].heading (string): The heading of the section to change (as it is now) - section_changes[].text (string): The section's new words - section_changes[].initials_required (boolean): true = each signer initials this section - section_changes[].remove (boolean): true removes this section - add_sections (array of object): New sections added at the end - add_sections[].heading (string, required): The new section's heading - add_sections[].text (string, required): The section's words. A blank line starts a new paragraph; lines starting with "- " become a list. - add_sections[].initials_required (boolean): true = each signer initials this section - questions (array of object): The whole list of extra questions in order; replaces them all ([] = none) - questions[].question (string, required): The question as signers see it - questions[].answer_type (string: short_answer | long_answer | choose_one | yes_no | checkbox | date): How it is answered - questions[].asked (string: once | each_person): Once per waiver, or once for each person signed for - questions[].required (boolean): true = it must be answered - questions[].choices (array of string): For choose_one - questions[].flag_answer (string): Staff are alerted when someone gives this answer, e.g. yes - questions[].ask_details_on_yes (boolean): For a yes/no question: a yes asks for details - who_signs (string: adults_and_children | adults_only | children_only): Who the waiver is for - adult_age (integer): 18 to 21; younger participants need a parent or guardian to sign - minimum_age (integer): 0 = none - children_per_waiver (integer): 1 to 12 - valid_for_months (integer): 1 to 12 - safety_video (string): A YouTube link; empty for none - video_must_be_watched (boolean): true = the safety video must be watched before signing - emergency_contact (boolean): Ask for an emergency contact - phone_required (boolean): true = signers must give a mobile phone - email_gym_on_flagged_answer (boolean): true emails the gym when a signer gives a question's flagged answer - signers_confirm_email (boolean): true = signers confirm their email address before signing - kiosk_photo_of_signer (boolean): true takes a photo of the signer on the front desk kiosk - marketing_checkbox (string): The words of an optional, always unticked news checkbox; empty for none - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_waiver_translation Translate a waiver. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Add or change a waiver's Spanish or French text, or switch a language off (owners and managers). The form's own words (buttons, labels, emails) are already translated; this is the waiver's legal text. Use a translation the owner gives or approves: always call with dry_run: true first, show the owner the exact wording, and get a clear yes. On a live waiver the save becomes a new version families sign, so it needs confirm: true; switching a language off also needs confirm: true. Send only what changes. - waiver (string, required): The waiver template's id or exact title, from get_waiver_templates - language (string: spanish | french, required): Which translation - title (string): The waiver's title in that language (needed to switch the language on) - introduction (string): The introduction in that language - sections (array of object): The sections in that language: [{ section, heading, text }] - sections[].section (string, required): The section's English heading - sections[].heading (string): The section's heading in that language - sections[].text (string): The section's words in that language - questions (array of object): The extra questions in that language: [{ question, label }] - questions[].question (string, required): The English question - questions[].label (string): The question's words in that language - questions[].choices (array of string): Same order as the English choices - marketing_checkbox (string): The news sign-up box's words in that language - remove (boolean): true = switch this language off for the waiver - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_waiver_live Publish a waiver or take it offline. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Publish a waiver so families can sign it (on the website at /waiver and on the front desk kiosk), or take it offline so they can't (owners and managers). Before publishing, the owner should have their attorney review the text for their state; ask them and get a clear yes. Both ways need confirm: true. - waiver (string, required): The waiver template's id or exact title, from get_waiver_templates - live (boolean, required): true = publish (families can sign it at /waiver and on the kiosk); false = take it offline - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### delete_waiver_template Delete a waiver nobody signed. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Delete a waiver that nobody has signed yet, with all its versions (owners and managers). A waiver someone signed can't be deleted: take it offline with set_waiver_live instead. Ask the owner, then send confirm: true. - waiver (string, required): The waiver template's id or exact title, from get_waiver_templates - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Staff scheduling and time clock The weekly staff rota, shifts filled from classes, copying last week, and time clock settings. #### get_work_schedule Staff schedule. Reads only. The staff schedule for a week: each shift's day, times, hours, person (or Open shift), job, location, draft or published, gratuity rate, cover requests, and for past shifts how the time clock compares (ok, late, early, missed, not-in). - week (string): Any day of the week YYYY-MM-DD (default this week) - location (string): A location key (default all the person may see) #### add_work_shift Add a shift to the staff schedule. Changes the gym (recorded in History). Adds a draft shift to the staff schedule (owners and managers). It stays a draft until someone publishes the week in the back office, which tells each person their shifts. - person (string): The staff member's full name (leave out for an open shift) - day (string, required): YYYY-MM-DD - start (string, required): HH:MM, 24-hour - end (string, required): HH:MM, 24-hour - location (string): Location name or key (brands with several locations) - job (string): e.g. Front desk, Coach, Party host - gratuity_rate (boolean): Paid at the gratuity (tipped work) rate, as for parties #### update_work_shift Change a shift on the staff schedule. Changes the gym (recorded in History). Takes dry_run. Change a shift on People > Staff schedule (owners and managers): who, the day, times, location, job, note or the gratuity rate. Only what the owner mentions changes. The shift becomes a draft again: nobody is told until someone presses Publish for the week in the back office (that sends each person their shifts). - shift_id (string, required): The id from get_work_schedule - person (string,null): The staff member's full name; null = make it an open shift - day (string): YYYY-MM-DD - start (string): e.g. 9:00 or 4:30 PM - end (string): e.g. 5:00 or 9:30 PM - location (string): Location name or key (brands with several locations) - job (string): e.g. Front desk, Coach, Party host - note (string): A short note on the shift - gratuity_rate (boolean): Paid at the gratuity (tipped work) rate, as for parties - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_work_shift Remove a shift from the staff schedule. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Remove a shift from People > Staff schedule (owners and managers). A draft shift is deleted; a published one is marked removed, and the person hears about it only when someone publishes the week in the back office. Needs confirm: true after the owner says yes. - shift_id (string, required): The id from get_work_schedule - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes #### copy_last_week_shifts Copy last week's shifts. Changes the gym (recorded in History). Takes dry_run. Copy the week before's shifts into a week on People > Staff schedule (owners and managers), as Copy last week does. Shifts already there are skipped. The copies are drafts: nobody is told until the week is published in the back office. - week (string, required): Any day of the week to fill, YYYY-MM-DD - location (string): Location name or key (brands with several locations; default the first one you work at) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### fill_shifts_from_classes Add shifts for the week's classes and parties. Changes the gym (recorded in History). Takes dry_run. Add a draft shift for each class and booked party in a week whose coach is a staff member and has no shift yet (owners and managers), as Shifts for classes and parties does on People > Staff schedule. Party shifts use the gratuity rate. Nothing is published or sent. - week (string, required): Any day of the week, YYYY-MM-DD - location (string): Location name or key (brands with several locations) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_time_clock_settings Time clock settings. Reads only. The time clock's settings on People > Timesheets (owners): whether staff can clock in, smart reminders, how close counts as at the gym, when clock-in is refused, and the reminder and automatic clock-out hours. Never anyone's hours or pay. - No parameters. #### set_time_clock_settings Change the time clock settings. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change the time clock settings on People > Timesheets (owners only), as its Time clock settings box does. Only what the owner mentions changes. Turning the clock or the smart reminders off needs confirm: true after the owner says yes. Setting the gym's location needs a phone at the gym, so it stays in the back office. - clock_in_on (boolean): Staff can clock in and out - smart_reminders (boolean): A notification when someone is due to clock in or forgot to clock out - at_gym_within_meters (integer): Counts as at the gym within this distance (150 suits most buildings) - refuse_beyond_meters (integer): Clock-in is refused farther than this; in between it's allowed with a note and flagged - remind_to_clock_out_after_hours (integer): Remind someone to clock out after this many hours on the clock (2 to 20) - clock_out_automatically_after_hours (integer): Clock someone out by themselves after this many hours (3 to 24) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. - confirm (boolean): Must be true, after the owner has said yes ### Website widgets and screens Booking widgets for a website the gym already has (classes, camps, parties, open gym, events, a sign-in button), and the back office's Today and Front desk screens. #### list_website_widgets Website widgets. Reads only. The booking widgets this gym can put on its own website (class schedule, camps, birthday parties, open gym, after-school, special events, a Sign in to My account button), its locations, the website addresses allowed to show booking lists, and the direct sign-in link to My account. - No parameters. #### get_website_widget A website widget's code. Reads only. The one line of code to paste into the gym's own website (Wix, Squarespace, WordPress) for a booking widget, and a link to preview it. Booking lists only show on the website addresses saved with set_widget_websites; buttons work anywhere. - kind (string, required): classes, camps, parties, opengym, afterschool, events or account - location (string): A location key from list_website_widgets (optional) - style (string: list | button): list (a booking list with Book buttons) or button (one button) - label (string): The button's words (optional, up to 40 characters) #### set_widget_websites Websites that may show booking widgets. Changes the gym (recorded in History). Takes confirm. Replace the list of the gym's own website addresses that may show booking lists (owners). Anything that isn't a website address is left out and reported. - websites (string, required): The gym's own website addresses, separated by commas or new lines, such as yourgym.com (up to 10; the www. version is added) - confirm (boolean, required): Must be true, after the owner has said yes #### get_screen_widgets Today and Front desk screens. Reads only. What the back office's Today screen and the Front desk screen show, in order, and every widget that could be added (id, title, what it shows, where it goes). Use before set_screen_widgets. - No parameters. #### set_screen_widgets Change the Today or Front desk screen. Changes the gym (recorded in History). Takes dry_run. Sets which widgets the Today or Front desk screen shows and in what order (full width, left or right column). Owners and managers only. Read get_screen_widgets first and send the whole list. Ask before saving. - screen (string: today | desk, required): today = the back office's first screen; desk = the Front desk screen - widgets (array of object): The whole screen in order, top to bottom (ids from get_screen_widgets). Widgets left out are taken off. - widgets[].id (string, required): The widget's id, from get_screen_widgets - widgets[].size (string: full | left | right): full width, or the left or right column - start_over (boolean): true = put the screen back the way it came (widgets is ignored) - dry_run (boolean): true = show the result without saving ### Community, schools and homeschool The Community page and gear board, homeschool groups, nearby schools and their break calendars, and school partners. #### get_community Community page. Reads only. What the gym shares on its Community page: adaptive classes, scholarships (each with a note), the gear board (obstacles and equipment to sell, give, lend or find), whether it is listed on ninjahq.ai/community, and whether its referral thank-you month goes to the Ninja Community Fund. Athlete stories are counted only; they stay in the back office. - No parameters. #### update_community Change what the gym offers on its Community page. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Change the Community page's offers (adaptive classes, scholarships and their notes), the listing on ninjahq.ai/community and the Community Fund choice (owners and managers). Send only what changes. Switching an offer or the listing off needs confirm: true. - adaptive_classes (boolean): true = the gym offers adaptive classes or welcomes adaptive athletes - adaptive_note (string): How it works at the gym (up to 300 characters) - scholarships (boolean): true = the gym offers scholarship spots - scholarship_note (string): How a family asks (up to 300 characters) - listed_on_ninjahq_community (boolean): true = the gym's name, city, offers, gear posts and stories show on ninjahq.ai/community - thank_you_month_to_community_fund (boolean): true = give the referral thank-you month to the Ninja Community Fund - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### save_gear_post Add or change a gear board post. Changes the gym (recorded in History). Takes dry_run. Add a post to the Community page's gear board (obstacles and equipment to sell, give away, lend, or wanted), or change one (owners and managers). Other gyms reach the gym through its Contact page. Up to 12 posts. - post (string): The post's current title, to change one; leave out to add a post - title (string): What it is, e.g. 8 ft warped wall (up to 80 characters) - kind (string: sell | give | lend | wanted): sell = for sale, give = free to a good home, lend, wanted = the gym is looking for it - price_or_terms (string): e.g. $400, pick up only (up to 40 characters) - details (string): Condition, size, where (up to 400 characters) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_gear_post Remove a gear board post. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a post off the Community page's gear board, e.g. when it is sold or found (owners and managers). Ask the owner to confirm, then send confirm: true. - post (string, required): The post's title - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_homeschool_groups Homeschool groups. Reads only. The homeschool ORGANIZATIONS near the gym the owner keeps track of (co-ops, Classical Conversations communities, support groups, hybrid schools, library and church programs): kind, where and when they meet, the area, their website and public contact form, and where the outreach stands. Never families or children. - outreach (string: all | new | contacted | talking | partner | no): Only groups at this outreach step (default all) #### save_homeschool_group Add or change a homeschool group. Changes the gym (recorded in History). Takes dry_run. Add a homeschool organization to the gym's outreach list, or change one's details or outreach step (owners and managers). Organizations only: email addresses and phone numbers are refused; link the group's public contact form instead. Send only what changes. - group (string): The group's current name, to change one; leave out to add a group - name (string): The organization's name (up to 120 characters) - kind (string: coop | cc | support | hybrid | library | online | other): coop, cc (Classical Conversations), support, hybrid, library (library or church program), online, other - meets_at (string): Where it meets (up to 160) - when (string): When it meets, e.g. Tuesdays 9-12 (up to 80) - area (string): The area it serves (up to 120) - website (string): Its website link - contact_form (string): Its PUBLIC contact form link (never a person's email or phone) - found_at (string): A link to where the gym found it - outreach (string: new | contacted | talking | partner | no): new (not contacted), contacted, talking, partner, no (not interested) - note (string): Up to 500 characters; no names, emails or phone numbers - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### remove_homeschool_group Remove a homeschool group. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Take a homeschool group off the outreach list (owners only). Ask the owner to confirm, then send confirm: true. History can bring it back. - group (string, required): The group's id or exact name, from get_homeschool_groups - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_school_calendars School districts and their days off. Reads only. The school districts near the gym (from the U.S. Department of Education's public school directory, within the search radius) with each one's school days off (breaks, holidays, no-school days, early release, first and last days, summer) as they show on the back office Calendar, to plan camps and extra coaches. - No parameters. #### set_school_district_dates Set a school district's days off. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Type or correct a nearby school district's days off from its published calendar (owners only). The list replaces the district's dates, so send every date; dropping dates that are there now needs confirm: true. The Calendar then shows them and points out camp days. - district (string, required): The district's name from get_school_calendars - days_off (array of object, required): Every day off for the school year: this replaces the district's list - days_off[].start (string, required): YYYY-MM-DD - days_off[].end (string): YYYY-MM-DD for a break of several days; leave out for one day - days_off[].name (string): e.g. Thanksgiving break (up to 60 characters) - days_off[].kind (string: break | holiday | noschool | early | first | last | summer): break, holiday (one day), noschool (staff or digital learning day), early (early release), first / last (school days), summer - school_year (string): e.g. 2026-2027 - calendar_link (string): The district's published calendar (https://...) - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### find_nearby_schools Find the school districts near the gym. Changes the gym (recorded in History). Takes dry_run. Search the U.S. Department of Education's public school directory again for the school districts near the gym (owners only), optionally with a new radius. Days off already typed for a district are kept. Needs the gym's location in Settings. - radius_miles (integer): 3 to 40 miles around the gym; leave out to search the current radius again - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### get_school_partners School partners. Reads only. The gym's partner schools (PTA fundraisers for school-break camps): each school's status, whether its PTA accepted the terms, visits to and sign-ups from its family page, new families and the donations owed and paid, plus the gym's donation (a percentage of the first camp or a flat amount per new family). Never families' names. Owners only. - No parameters. #### save_school_partner Add or change a partner school. Changes the gym (recorded in History). Takes dry_run. Takes confirm. Add a nearby school as a partner (its PTA page and family page are made at once), or change a partner's contact, color or status (owners only). Only the school's public PTA or office contact, never a family's. Pausing or ending a partnership needs confirm: true. Sending the invitation email is done by the owner in the back office. - school (string): The partner school's current name, to change one; leave out to add a school - name (string): A new school's name (up to 120 characters) - contact_name (string): The PTA or school contact's name as the school lists it (up to 80) - contact_role (string): e.g. PTA President (up to 60) - contact_email (string): The school's PUBLIC PTA or office address, never a student's or parent's - color (string): The school's color for its pages, like #1d4ed8 - status (string: draft | invited | active | paused | ended): draft (not contacted), invited, active (partner), paused, ended - confirm (boolean): Must be true, after the owner has said yes - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. #### set_school_donation Set the donation to partner schools. Changes the gym (recorded in History). Takes dry_run. Set what the gym donates to a partner school's PTA for each new family who signs up for a camp through the school's page, once per family (owners only). Ask the owner for the amount; never guess it. It only sets the promise on the schools' pages: no money moves through NinjaHQ. - how (string: percent | flat): percent = a percentage of a new family's first camp (before tax); flat = a set amount per new family - percent (number): 0 to 100 - flat_amount (number): Dollars per new family, 0 to 500 - paid_out (string): When the gym pays the PTA, e.g. after each school break (up to 60 characters) - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ### Reports and numbers Ready-made reports, what each number means, report costs, daily and weekly summaries, membership and registration numbers. Totals only, never a customer's personal details. #### get_membership_numbers Membership numbers and growth. Reads only. How many members the gym has, monthly income from memberships, members by plan, and how many joined and left each month. Totals only: no names. - months (integer): How many months of history, 1 to 24 (default 6) #### get_registration_numbers Competition registration numbers. Reads only. For each upcoming competition: how many athletes have paid, by division, and how many spots are left. Totals only: no names. - No parameters. #### list_reports Reports. Reads only. The gym's reports (Sales, Sales by Service, Autopay Detail, Birthday Guest Lists, Mailing Lists): what each shows, whether it can be filtered by location, its choices, and its page in the back office (where it can be downloaded or printed). - No parameters. #### list_metrics What the report numbers mean. Reads only. Every number in the gym's reports with its plain-words definition, its unit (money, count, pct, minutes), which way is better (up or down), and what it can be split by: sales, refunds, net, discounts, card fees, failed payments, classes held, spots, check-ins, fill rate, attendance rate, no-shows, class revenue, revenue, coaches, other costs, profit, margin, cost per kid. Money numbers only for owners. Use it to explain a number or before answering how the gym is doing. - No parameters. #### get_report_numbers Report numbers for any dates, split your way. Reads only. Build your own report: any of the gym's report numbers (sales, refunds, net, discounts, card fees, failed payments, classes held, spots, booked, check-ins, fill rate, attendance, no-shows, class revenue, revenue, coaches, other costs, profit, margin, cost per kid...) for any dates, as totals or split by day, week, month, location or type, ready for a table or a chart. Read from the totals the gym's reports keep for each day, so it is quick even for years of data. Numbers only, never people. Money numbers only for owners. Use list_metrics for what each number means. - metrics (array of string): Number ids from list_metrics, such as sales.net, classes.checkins, profit.margin (default: all you can see) - period (string): today, yesterday, week, lastweek, month, lastmonth, 30, 90, quarter, year or lastyear (default this month) - from (string): First day YYYY-MM-DD (with to, instead of period; three years at most) - to (string): Last day YYYY-MM-DD - by (string: day | week | month | location | type): Split the numbers by day, week, month, location or type (class, party, camp, competition, membership...); leave out for totals - location (string): A location key from list_reports (default all) #### get_report_summary A report's numbers. Reads only. A report's headline numbers for a period and location: for Sales the sales, refunds, net, payments and average sale; for Sales by Service each service's net sales (up to 25); for Autopay Detail the families on autopay, monthly total and card problems; for Birthday Guest Lists the parties, guests, waivers and who can get the free trial offer; for Mailing Lists the list sizes. Numbers only: open the report's page for the rows. - report (string, required): The key from list_reports, such as sales, services, autopay, guests or lists - period (string): today, yesterday, week, lastweek, month, lastmonth, 30, 90, quarter, year, lastyear or next30 (default this month) - from (string): First day YYYY-MM-DD (with to, instead of period) - to (string): Last day YYYY-MM-DD - location (string): A location key from list_reports (default all) - choice (string): The report's own choice, such as by=type for Sales by Service or list=partyguests for Mailing Lists (name=value) #### get_weather_outlook Weather and business outlook. Reads only. How the gym's local weather changes its business, for planning: over the last 12 months, how rainy, snowy, hot, cold and mild days changed check-ins (or sales or website visits when the gym doesn't check people in) against a usual day of the same weekday, and the next 7 days' National Weather Service forecast (US locations) with what to expect each day (busier, quieter or a usual day, and the expected number). Past weather is from the nearest NOAA station, about a week behind. Use it for questions like "Will the rain this weekend hurt us?", "Do hot days slow us down?", or planning staff and open gym around the weather. Owners and managers. - location (string): A location key from list_reports' locations (leave out for all of yours) #### get_report_details Details of a class, party or product. Reads only. Everything the reports know about one class, party, camp, competition, product, membership or service, as the report pop-ups show it: for a class its tuition, spots, how many are enrolled, the last 90 days' classes run, visits, fill rate, revenue, coach and other costs, profit and margin, the next two weeks' classes and a month by month table; for a party the day, time, guests coming, waivers signed, coach, total, paid, balance and its cost and profit; for a product its price, stock and what sold by month; for a service what sold by month. Money only for owners. Names of enrolled students and guests stay in the back office. - type (string: class | party | product | camp | competition | membership | service, required): What it is - name (string): Its name, for a class, product, camp or competition (as in a report or get_classes) - id (string): Its id: a party's or membership's id (from list_parties or the back office), or for a service kind|name as in Sales by Service #### list_report_views My saved reports and views. Reads only. The saved views of reports (a report's dates, location, columns, filters and sort under a name) and the person's own reports made with Save as a new report (My reports), with the ones an owner shared with managers. Each has its spec (what it shows, in words) and its page. - report (string): Optional: only this report's (a key from list_reports) #### save_report_view Save a report view or a new report. Changes the gym (recorded in History). Takes dry_run. Saves a report the way the owner wants to see it, under a name: as a saved view of the report (Saved views on that report) or as a new report under My reports (Save as a new report), with the dates, location, columns and their order, filters and sort. Only for the person asking; owners can share it with managers. Use list_reports for the report keys and get_report_summary to check the numbers first. - report (string, required): The report it is based on (a key from list_reports) - name (string, required): Its name, for example "Party packages last month" - kind (string: view | copy): view: a saved view of that report; copy: a new report under My reports (default view) - period (string): today, week, month, lastmonth, 30, 90, quarter, year, lastyear or next30 - from (string): Or a start day (YYYY-MM-DD) - to (string): And an end day - location (string): A location key from list_reports, or leave out for all - choice (string): The report's own choice as name=value, for example by=type - columns (array of string): The columns to show, in order (column keys; leave out for the report's own) - filters (array of object): Filters on columns: contains (text), in (one of the values), gte/lte (a number, dollars for money), after/before (a day) - filters[].field (string, required): The column to filter, by its key in the report - filters[].op (string: contains | in | gte | lte | after | before, required): How to compare: contains, in, gte (at least), lte (at most), after, before - filters[].values (array of string, required): The value or values to compare with (one for every op but in) - sort (string): The column to sort by - dir (string: asc | desc): Sort order: asc (smallest or oldest first) or desc (largest or newest first) - share (boolean): Owners only: share it with managers - dry_run (boolean): Say what would be saved without saving #### delete_report_view Delete a saved report view. Changes the gym (recorded in History). Takes confirm. Deletes one of the person's own saved views or My reports (never someone else's). Needs confirm: true; it can't be undone. - id (string, required): The id from list_report_views - confirm (boolean): true to delete (it can't be undone) #### get_weekly_summary The weekly summary. Reads only. How the gym's week went, as in the Monday email: the week told in a few sentences; what needs the owner (failed payments, waivers running out); sales by kind against the week before and the 30 days before; members joined and left; trials booked, came and joined; check-ins and how full classes are; bookings of classes, parties, camps and competitions; website visitors, calls, directions and forms; new contacts and Google reviews; what's coming up. Counts and totals only. Managers get it without the money. - week (string): Any day (YYYY-MM-DD) in the week to summarize; default the last whole week (Monday to Sunday) #### get_daily_summary Yesterday's numbers. Reads only. How one day went at the gym, as in the morning email: the day told in a few sentences; what needs the owner; sales by kind against the same weekday last week and money so far this month against the same days last month; check-ins; new bookings of classes, parties, camps and competitions; members joined and left; trials booked and how many expected came; website visitors, calls and forms; and what's on today (trials expected, parties, competitions). Counts and totals only. Managers get it without the money. - day (string): The day to summarize (YYYY-MM-DD); default yesterday #### get_report_costs Report costs. Reads only. The costs the Cost and Profit report uses besides coach pay: fallback coach rate, payroll taxes %, space cost per hour, party supplies per guest and per party, cost per camper, cost per athlete, league fee per athlete and card fees %. Read the profit numbers with get_report_summary report=profit. - No parameters. #### set_report_costs Change report costs. Changes the gym (recorded in History). Takes dry_run. Set the costs the Cost and Profit report uses (owners). Give only the ones to change, in dollars or percent. Coach pay itself comes from each person's pay rate in Staff time & pay. - rate (number): Coach Pay When No Rate Is Set (dollars per hour). Used for a coach with no pay rate under Staff time & pay. - burdenPct (number): Payroll Taxes and Benefits (percent). Added on top of pay, for example 10%. Leave at 0 to count wages only. - room (number): Space Cost per Hour (dollars per hour). Rent, utilities and insurance for a month, divided by the hours you are open in a month. - partyGuest (number): Party Supplies per Guest (dollars). Wristbands, pizza, drinks: what one more guest costs. - partyFlat (number): Other Cost per Party (dollars). Cake, decorations, cleaning: the same for every party. - camper (number): Cost per Camper (dollars). Snacks, a T-shirt, supplies for each child booked. - athlete (number): Cost per Competition Athlete (dollars). Medals, wristbands, judges' supplies for each athlete. - league (number): League Fee per Athlete (dollars). What you pay the league (for example WNL) for each athlete. - cardPct (number): Card Fees (percent). The share of each sale your card processor keeps. About 3% for Stripe. - dry_run (boolean): true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet. ## Examples ### Review the website and act on the numbers Ask: "Review my website and tell me the three changes that would get more bookings." - get_website_review {"days":28}: Everything Analytics measured against the period before: the ranked What to improve list, funnels, menu use, heatmap summaries, forms, speed, problems, missing pages, videos, and a playbook of which tool makes each kind of change. - get_page_report {"page":"/parties","days":28}: Drill into the page with the biggest finding: scroll depth, how many views reach each section and for how long, taps per screen size, people who leave within 7 seconds. - get_page_heatmap {"page":"/parties","screen":"phone","days":28}: Every element tapped on phones with the spots inside it (0-1000 across and down): here the party photo gets taps but isn't a link, and few reach the Book button. - get_page {"page":"/parties"}: The page's sections and their ids, to suggest the change. - move_section {"page":"/parties","id":"<booking section id>","index":1,"dry_run":true}: The assistant tells the owner what it found (with the numbers) and what it would change, and shows the dry run: the booking section moves up under the top picture. - move_section {"page":"/parties","id":"<booking section id>","index":1}: After the owner says yes. Then publish_page when the owner is happy; History keeps the change, and the next review shows whether more people reached the button. ### Add a weekly class Ask: "Add Teen Ninja on Tuesdays from 5 to 6 PM for ages 12 to 17, $95 a month, 12 kids max." - get_classes {}: Read the classes first: the types, locations and names already in use. - add_class {"name":"Teen Ninja","days_and_times":["Tuesday 5:00 PM - 6:00 PM"],"ages_from":12,"ages_to":17,"tuition":95,"charged":"month","capacity":12,"free_trials":true,"dry_run":true}: A dry run shows exactly what would be added. The assistant shows it and asks "Shall I save that?" - add_class {"name":"Teen Ninja","days_and_times":["Tuesday 5:00 PM - 6:00 PM"],"ages_from":12,"ages_to":17,"tuition":95,"charged":"month","capacity":12,"free_trials":true}: Saved: the class is on the weekly schedule and families can book it. History keeps the change. ### Close for a holiday Ask: "We're closed on Thanksgiving, November 26." - add_closure {"date":"2026-11-26","reason":"Thanksgiving","dry_run":true}: Shows which classes and bookings that day touches. - add_closure {"date":"2026-11-26","reason":"Thanksgiving"}: The schedule, the home page and the booking pages show the closure within about a minute. ### Build a landing page in a site version Ask: "Make a Summer Ninja Camp landing page, let the owner preview it, then publish." - get_developer_guide {}: A web developer's agent reads the guide first: site versions, the design and CSS rules, the checks. - create_site_version {"name":"Summer camp 2027","note":"New camp landing page"}: A copy of the live site. Nothing here touches the live site. The answer has the version's id. - list_section_types {}: Every section type, its layouts and fields, and the live data sections (the camps, the schedule). - create_page {"version":"<version id>","title":"Summer Ninja Camp","slug":"summer-camp","template":"camp","seo":{"title":"Summer Ninja Camp for Kids 5 to 13","description":"Week-long summer ninja camps with obstacle courses, games and coaches who love kids. Full and half days, June to August."}}: Starts from the camp template, in the site's own design. - add_section {"version":"<version id>","page":"/summer-camp","type":"faq","variant":"accordion","settings":{"heading":"Camp questions"},"blocks":[{"settings":{"q":"What should my child bring?","a":"Water, a snack and gym shoes. We have the rest."}},{"settings":{"q":"Can I book single days?","a":"Yes. Book by the week, by the day or with a flex pass."}}]}: A Questions section. The page also gets FAQ structured data for Google. - check_page {"version":"<version id>","page":"/summer-camp"}: Findings as { severity, check, section, where, message, fix }. Fix every error. - site_version_link {"version":"<version id>","action":"create"}: A 14-day preview link of the whole site from this version, for the owner. - publish_site_version {"version":"<version id>","confirm":true}: Runs the review, then puts the design, every page, the menu, the logo and the icon live at once. The old site goes into the library. ### Change the design Ask: "Make it look more athletic: round corners and pill buttons." - get_design_system {}: The current design: colors, fonts, sizes, corners, schemes, the custom CSS and its rules. - set_design {"personality":"bold-athletic","changes":{"radius":"round","buttons":"pill"},"dry_run":true}: Every color pair is checked for WCAG AA contrast; a failing pair is refused with the reason. - set_design {"personality":"bold-athletic","changes":{"radius":"round","buttons":"pill"}}: Saved as the draft design. - publish_design {"note":"Bolder, rounder look","confirm":true}: Live on every page. The website check runs on the home page and the menu's pages and emails what to fix. ### Add CSS to one page Ask: "Space out the hero heading on the camps page." - update_page {"page":"/camps","css":".pb-t-hero h1 { letter-spacing: .02em; }\n@media (max-width: 600px) { .pb-t-hero h1 { letter-spacing: 0; } }","dry_run":true}: Page CSS is scoped for you: the rule becomes [data-pb-page="/camps"] .pb-t-hero h1. - preview_page {"page":"/camps"}: A signed 24-hour preview link to check at phone and computer size. - publish_page {"page":"/camps","note":"Hero heading spacing","confirm":true}: Live within about a minute. ### Make a camp flyer and email it Ask: "Make a winter camp flyer with a QR code to the camps page, then turn it into an email." - list_camps {}: The gym's camps with their ids, dates and prices. - list_flyer_templates {}: The occasions, designs and palettes, and what a flyer can be tied to. - create_flyer {"occasion":"wintercamp","palette":"brand","tie_to":{"kind":"camp","id":"<camp id>"},"slots":{"headline":"Winter Ninja Camp","subhead":"Obstacles, games and friends all break long","cta":"Book a day or the week","qr":"camps"}}: Tied to the camp, so its dates and price fill in. Letter size by default, with a PDF and social pictures. - flyer_to_email {"id":"<flyer id>"}: An email draft from the flyer. The owner sends it from the back office; the connector never sends email. ### Draft a newsletter Ask: "Write a December newsletter about winter break camp." - save_email_draft {"name":"December news","subject":"Winter break camp is open","message":"Winter break is almost here. Our camp runs December 22 to January 2 with full and half days.\n\nBook a day, a week or a flex pass.","button_label":"See camp days","button_link":"https://yourgym.com/camps","dry_run":true}: Shows the draft. - save_email_draft {"name":"December news","subject":"Winter break camp is open","message":"Winter break is almost here. Our camp runs December 22 to January 2 with full and half days.\n\nBook a day, a week or a flex pass.","button_label":"See camp days","button_link":"https://yourgym.com/camps"}: Saved as a draft. It goes only to families who said yes to news, with one-click unsubscribe and no open or click tracking, when the owner sends it. ### Turn on camp reminders Ask: "Remind camp families automatically before their camp days." - get_automatic_emails {}: Every automatic email, on or off, with its wording. - set_automatic_emails {"group":"camp_reminders","on":true,"dry_run":true}: What would change. - set_automatic_emails {"group":"camp_reminders","on":true,"confirm":true}: On. Each email's words can be changed in Email templates. ### Keep an old link working Ask: "The old summer camp page moved. Make the old link go to the new one." - get_redirects {}: The redirects already set, and addresses from the old website. - add_redirect {"old_address":"/summer-camps-2025","goes_to":"/summer-camp"}: Old links and search results keep working. ### Black Friday discount code Ask: "Make FRIDAY20 for 20% off the shop and camps through Monday." - get_discount_codes {}: The codes the gym already has. - add_discount_code {"code":"FRIDAY20","kind":"percent","value":20,"works_for":["shop","camp"],"starts_on":"2026-11-27","ends_on":"2026-11-30","dry_run":true}: A dry run first. - add_discount_code {"code":"FRIDAY20","kind":"percent","value":20,"works_for":["shop","camp"],"starts_on":"2026-11-27","ends_on":"2026-11-30"}: Families can use it at checkout from November 27. ### Import photos from links Ask: "Use these three photos from our old website in the gallery." - import_photo_from_url {"urls":[{"url":"https://old.yourgym.com/images/open-gym-1.jpg"},{"url":"https://old.yourgym.com/images/open-gym-2.jpg"},{"url":"https://old.yourgym.com/images/warped-wall.jpg"}],"purpose":"gallery"}: https only, public addresses, images the gym has the right to use. Each is straightened, color-corrected, resized as WebP and stripped of camera and location data. - photos_to_describe {}: The new photos that still need a description, with a small preview of each. - update_photo {"photo_id":"<photo id>","description":"A girl runs up the warped wall while her friends cheer at the bottom."}: Alt text says what happens in the photo, never guessing anyone's name or age. ### Change the menu Ask: "Put Camps and Parties under a Programs dropdown." - get_menu {}: The menu now and every page that can go in it. - set_menu {"items":[{"label":"Classes","path":"/classes"},{"label":"Programs","children":[{"label":"Camps","path":"/camps"},{"label":"Parties","path":"/parties"}]},{"label":"Competitions","path":"/competitions"},{"label":"Contact","path":"/contact"}],"dry_run":true}: Paths must be pages of the site; a dropdown holds 2 to 10 pages; at most 12 items. - set_menu {"items":[{"label":"Classes","path":"/classes"},{"label":"Programs","children":[{"label":"Camps","path":"/camps"},{"label":"Parties","path":"/parties"}]},{"label":"Competitions","path":"/competitions"},{"label":"Contact","path":"/contact"}]}: Live on every page. ### Put booking on a website you already have Ask: "Give me a class schedule I can paste into our WordPress site." - get_website_widget {"kind":"classes","style":"list"}: The one line of HTML to paste (shown below), and a preview. - set_widget_websites {"websites":"yourgym.com","confirm":true}: Booking lists show only on the websites saved here (up to 10). Buttons work anywhere. ### Change party packages Ask: "Raise the Ninja Party to $350 with 15 kids included." - get_party_booking {}: Packages, start times, rooms, add-ons, deposit and booking terms. - update_party_booking {"packages":[{"package":"Ninja Party","price":350,"guests_included":15}],"dry_run":true}: Shows the package before and after. - update_party_booking {"packages":[{"package":"Ninja Party","price":350,"guests_included":15}]}: Send only what changes: the other packages stay. New bookings use the new price; parties already booked keep theirs. ### Undo a change Ask: "Undo the change to the schedule I made this morning." - list_changes {"area":"Weekly schedule","limit":5}: Recent changes: when, who, through which app, and a change_id. - get_change {"change_id":"<change id>"}: Exactly what changed. - restore_change {"change_id":"<change id>","confirm":true}: The earlier version is back. A restore can itself be undone. ### Answer a how-to question Ask: "How do I refund a camp day?" - search_help {"query":"refund a camp day"}: Help Center articles that match. - get_help_article {"slug":"<article slug>"}: The article's steps, so the assistant walks the owner through the right screens instead of guessing.