Developer Documentation

Integrate with BuildStability using MCP (for AI agents) or REST API (for traditional apps). Get your first API call working in under 5 minutes.

Quick Start (5 minutes)

1

Enable API Access

Already a customer? Business → Profile → API & Integrations → Enable API/MCP Access. New here? Start a trial first.

Sign up →
2

Get Your Token

Create an OAuth app under API apps for integrations, or use Business → Profile → API & Integrations → Copy Token for MCP

Auth guide →
3

Make Your First Call

Choose MCP or REST API below, then test with our examples

Code examples →

Choose Your Integration Method

Pick the approach that fits your use case. Both provide full access to your data.

MCP (AI Agents)

For Claude, ChatGPT, Gemini, custom agents

  • JSON-RPC 2.0 over HTTP
  • 15 pre-built tools (clients, schedule, revenue, etc.)
  • Bearer token auth (JWT)

REST API

For web apps, mobile apps, integrations

  • Standard REST endpoints (GET, POST, PUT)
  • OAuth 2.0 Client Credentials flow
  • Clients, appointments, programs, revenue, classes, workouts

Authentication

REST API v1 (OAuth 2.0) — for integrations

The only credential /api/v1/* accepts. Create an app under API apps, copy the client ID and secret (the secret is shown once), then exchange them:

POST /api/oauth/token
Content-Type: application/json

{ "grant_type": "client_credentials",
  "client_id": "...", "client_secret": "..." }

-> { "access_token": "...", "token_type": "Bearer",
     "expires_in": 3600, "scope": "read write" }

Send it as Authorization: Bearer <access_token>. Scoped, revocable on its own, counted against the plan limits below, and refreshed by repeating the call. No human needed.

MCP (personal JWT) — for AI assistants

Business → Profile → API & Integrations → Copy Token. The JWT is copied to your clipboard.

Set Authorization: Bearer <token> on every MCP or REST Data API request. It does not authenticate /api/v1/*.

This is your own login, not a scoped key: it can write as well as read, it expires after an hour, and it is not counted by the usage meter. Treat it like a password.

What a JWT looks like: Three base64url segments separated by dots (header.payload.signature), typically 200–500+ characters. Example format:

eyJhbGciOiJIUzI1NiIs...eyJhdWQiLCJlbWFpbC...<signed>
Authorization: Bearer <your-jwt-token>
Content-Type: application/json

Rate Limits

PlanRequests / 15 minDaily CapQuery Complexity
Free Trial30100Basic
Essential501,000Standard
Starter1005,000Standard
Pro20015,000Advanced
Pro+50050,000Advanced

On a 429 the response carries Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Successful responses do not carry them, so pace against your own request count rather than polling for headroom. Daily allowances reset at midnight UTC, which your Business page shows in your own timezone alongside live usage. See pricing for plan details.

Available MCP Tools

16 tools available via MCP. Use tools/list for full details or see the Agent Guide.

Core

  • get_client_summary
  • list_active_programs
  • check_churn_risk
  • get_business_stats

Schedule

  • get_schedule
  • list_clients
  • get_available_slots

Analytics

  • get_revenue_summary
  • get_attendance_stats
  • get_popular_times

Actions

  • send_client_message
  • create_client_note
  • get_client_notes
  • get_client_workout_history

Ready to Build?

Start your free trial and get API access immediately. No credit card required.