> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://schedule-docs.moxieservices.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://schedule-docs.moxieservices.com/_mcp/server.

# Getting started

The Moxie scheduling API serves the customer booking site and the admin portal. This reference is generated from the
API contract (`openapi.yaml`), the same file the backend is tested against, so it always matches what is deployed.

## Environments

| Environment | Base URL                                     |
| ----------- | -------------------------------------------- |
| Dev         | `https://schedule-api-dev.moxieservices.com` |
| Prod        | `https://schedule-api.moxieservices.com`     |

## How callers are checked

| Area                               | How                                                                                                                                                                   |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Admin portal (`/v1/admin/...`)     | A bearer token from `POST /v1/admin/session`, which only accepts active company Google accounts. Every route checks the user's permissions and offices on the server. |
| Customer signup (`/v1/signup/...`) | Starting a signup needs a Cloudflare Turnstile check; each signup then needs its own link token in the `X-Link-Token` header.                                         |
| Public catalog and terms           | Open, rate-limited.                                                                                                                                                   |

There are no cookies. Money is in whole cents. Every editable record carries a `version`; a stale one returns 409
`version_conflict`. Errors share one shape: `code`, `message`, `requestId` and, where relevant, `fieldErrors`.

## Keeping up to date

What is live in dev, and its known behaviors, is listed in the backend repository's `docs/frontend/api-status.md`.