Getting started¶
bsport Public API is designed for partner integrations that act on behalf of your company or franchise team. Direct REST integrations use API keys that Owners and Admins create in the Back Office. Approved users can also connect compatible AI assistants through MCP and OAuth.
These REST examples use V2. V1 remains a separate contract and retires on January 15, 2027; changing only the URL is not a migration strategy. See Migrate from V1 to V2 and the data model and terminology and Data model and terminology (V1).
What you can do¶
Use the API to automate operational workflows, such as managing clients, creating bookings, and querying billing information. All actions are performed in the context of a company or franchisor.
Which version each surface uses¶
Read the table by surface. The version decides which field names and IDs you receive.
| Surface | Version | What it means for you |
|---|---|---|
| REST API | V2 for new integrations. V1 is available until January 15, 2027 | Use /api/v2/. See V2 workflows and field conventions |
| Webhook payloads | V2 for new registrations. Existing registrations stay on V1 | New registrations use V2 event names and data follows the V2 response. See Webhook event payloads |
| MCP | V2 | Tools expose V2 management operations. See the MCP overview |
Prerequisites¶
For a direct REST integration, you need:
- An API key created in the Back Office (see below).
- Your
X-Client-IDvalue (used for tracing and support). - The company or franchisor identifier you will operate on.
- The base URL (see below).
Getting your API key and identifiers
An Owner or Admin creates the key in the Back Office, on a plan that includes API keys:
- For a studio: Settings, then Webhooks & APIs, then the API tab.
- For a Master Account: API keys in the Master Account menu.
The tool name entered when creating the key is your X-Client-ID. The key is shown
only once: Copy headers copies it with your X-Client-ID and your X-Company-ID
or X-Franchisor-ID.
For an MCP connection, you need:
- A bsport user account with MCP access.
- The identifier of a company that user can access.
- A compatible AI client.
MCP uses OAuth and does not require a Public API key or X-Client-ID. See
Connect an AI assistant with MCP for
the production URL and client-specific instructions.
Base URL¶
Every endpoint path in this documentation is relative to
https://public.production.bsport.io. Code samples use YOUR_ENV_DOMAIN as a
placeholder: replace it with public.production.bsport.io.
An API key acts on your live data with full admin access. Start with read requests, and create one key per integration so you can revoke one without stopping the others.
First REST request¶
Start with a ping request to verify connectivity and headers.
curl -X GET \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Client-ID: YOUR_CLIENT_ID' \
-H 'X-Company-ID: YOUR_COMPANY_ID' \
'https://YOUR_ENV_DOMAIN/api/v2/monitoring/health/ping/'
Replace YOUR_ENV_DOMAIN with public.production.bsport.io.
If the request succeeds, your REST integration is ready to use the guides and API reference.
Next steps¶
Follow the guides in this order.
- Authentication and Headers and tenant context
- Data model and terminology: the objects and how they relate
- Pagination and filtering, Errors and status codes and Rate limits and bulk data sync
- V2 workflows and field conventions: task guides
- Webhook event payloads and the Webhooks overview
- Connect an AI assistant with MCP and Using LLMs for custom integrations
- Coming from V1: Migrate from V1 to V2
Ask an AI assistant about these docs
llms.txt lists these guides, the OpenAPI files and the changelog in the
llms.txt format, a plain-text index written for AI assistants. Each
guide also has a Markdown version: replace .html with .md in its URL. If your assistant
can fetch web pages, give it the llms.txt URL and ask your question.