# Northlight Yoga sandbox

The public address is the sandbox. The studio is fictional, its timetable is seeded and nothing is charged, so a test booking costs nobody anything. Use an address at `example.org` as the attendee, and cancel with the `manage_token` from the receipt when you have finished so that the place is free again. To try the member operations, sign in at [/account](/account) as one of the two demo members.

## Connect

- Base URL: `https://yoga.ferrite.run`
- MCP server: `https://yoga.ferrite.run/mcp`
- Requests and responses: [OpenAPI 3.1 document](/openapi.json)

## Credentials

No API key, account or sign-up is needed to read the timetable, hold a place, book a class, change a booking with the token on its receipt, join a waitlist or send an enquiry. Six operations act on a member's account: `get_my_account`, `list_my_bookings`, `book_with_membership`, `cancel_my_booking`, `subscribe_membership` and `manage_membership`. They need a Personal Agent's `Poppy-Session` header and an OAuth 2.1 access token with the scope each description names, and answer 401 without them. The [protected resource metadata](/.well-known/oauth-protected-resource) names the authorization server, and the [agent guide](/poppy/guide) walks through the sign-in.

## Try a read

List every bookable class with its duration, seats per session, teacher IDs, optional per-class booking questions (`questions`), and drop-in pricing (`drop_in_price: null`, `pricing_model`). Use it first, to find the class a customer wants and its id. Required fields: none. Example: GET /api/event-types. Returns `{ event_types: [...], drop_in_price: null, pricing_model }`.

```sh
curl -s 'https://yoga.ferrite.run/api/event-types'
```

## Try a write

Send the studio an enquiry (signed-out OK). Use it for a question or request that booking a class does not cover. Required fields: `name`, `email`, `company_size` (integer; 1 for an individual). Optional: `intent`. Example: {"name":"Maya Lin","email":"maya@example.org","company_size":1,"intent":"Private session inquiry"}. Returns `{ id, status, routed_to }`.

```sh
curl -s -X POST 'https://yoga.ferrite.run/api/routing/responses' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: submit_routing_response-1' \
  -d '{"company_size":1,"email":"maya@example.org","name":"Maya Lin"}'
```

The [developer guide](/developers) lists every operation, the error format and the rate limits.
