Public API for AI-assisted bookings
Via the public customer API you can search playrooms and create bookings up to a hosted payment session, including directly through AI assistants.
Current standard: v2
For new integrations, v2 is the current standard for reading orders, guests, playrooms, and occupancy. The complete reference is available at /v2/openapi.json. The v2 endpoints are role-scoped and require an API key with the matching permission.
The catalog, booking, and payment endpoints that remain under /v1/ are documented below
as legacy.
Legacy: public v1 endpoints
No API key is needed for searching and reading:
| Method | Path | Description |
|---|---|---|
GET | /v1/playrooms | Browse the playroom catalog (20 items per page) |
GET | /v1/playrooms/{urlPath} | Details for a playroom |
GET | /v1/playrooms/{urlPath}/booking-options | Available check-in/check-out times and prices |
GET | /v1/openapi.json | OpenAPI description of public v1 operations |
GET | /v2/openapi.json | Separate OpenAPI description for v2 guest/host reads |
Host booking webhooks
The current company owner can manage outgoing booking notifications from Host > Webhooks.
The management API is authenticated with the owner's normal session (it is not part of the
public API-key v1/v2 contract): GET and POST /api/Owner/webhooks, PUT and DELETE /api/Owner/webhooks/{id}, POST /api/Owner/webhooks/{id}/enable, /disable, and
/rotate-secret. Create requires name, destinationUrl (HTTPS), and eventType
(booking.created). The signing secret is returned only on create and rotation; save it
securely then.
Each delivery is a versioned JSON envelope with id, type (booking.created), version
(1), occurredAt, and data.booking. The receiver must use the exact raw request body to
verify X-Webhook-Signature: sha256=<hex>. The HMAC-SHA256 input is UTF-8
<X-Webhook-Timestamp>\n<X-Webhook-Event-Id>\n followed by the exact body bytes; the key is
the UTF-8 signing secret. Compare signatures in constant time, validate timestamp freshness,
and deduplicate using the stable event ID in the header and envelope. Delivery is at-least-once,
not exactly-once; failed attempts are retried with bounded backoff (up to eight attempts).
Destinations must be HTTPS. Private, loopback, link-local, metadata, internal, and other special-use addresses are rejected after DNS resolution; addresses are pinned for each attempt, and redirects and proxies are disabled. The event includes host-visible booking and guest personal data, so the receiver is responsible for appropriate privacy and data-protection controls. Rotating a leaked secret invalidates it for subsequent attempts. The backend needs a persistent, shared ASP.NET Data Protection key ring to decrypt secrets after restarts and across replicas.
The host-management endpoints are owner-only and do not support team members or standalone
host accounts. The owner can inspect a subscription's redacted status via
GET /api/Owner/webhooks/{id}/deliveries?take=20 (default 20, maximum 100). It returns event ID,
status, attempt count, timestamps, HTTP response status, and a sanitized outcome only; payloads and
guest data are never returned. Create and update resolve DNS before saving and reject empty, mixed,
private, or otherwise unsafe answers. This check is not a permanent permission: delivery resolves
and pins public addresses again for every attempt.
Legacy: booking with a v1 API key
Creating and paying a booking requires an API key, sent in the X-API-Key header:
| Method | Path | Description |
|---|---|---|
POST | /v1/orders | Create a booking (requires Idempotency-Key) |
GET | /v1/orders/{orderId} | Status and details of a booking |
POST | /v1/orders/{orderId}/payment | Create the payment link for a booking |
Each protected endpoint also requires the matching key permission:
| Endpoint | Permission |
|---|---|
POST /v1/orders | bookings.create |
GET /v1/orders/{orderId} | bookings.read |
POST /v1/orders/{orderId}/payment | bookings.payment.create |
Grant only the permissions your integration needs. Effective permissions may
be lower than assigned permissions, for example when your account is locked or
deleted. A missing or invalid key returns 401; a missing permission returns 403.
Creating an API key
Create and manage your API keys yourself in your account under API keys. The key is shown only once — store it securely. Bookings created with one of your keys are assigned to your account.
Documentation and reference
The full developer documentation with guides, code examples and an interactive API reference is at docs.my-playrooms.de. If this page and the documentation ever differ, the documentation and the OpenAPI specification are authoritative.
OpenAPI specification
The current document for new integrations is /v2/openapi.json. The separate /v1/openapi.json document describes only the still-supported legacy v1 endpoints. Refresh each generated artifact separately after deployment; refreshing v1 does not add v2 paths to the v1 document.
MCP server
AI assistants can use the same capabilities through the MCP server: /mcp. It exposes the tools search_playrooms, get_playroom, get_booking_options, create_booking, get_booking and create_payment_session.
Rules and versioning
- Versioning happens via the URL path (
/v1/,/v2/); all paths are lowercase. - Idempotency:
POST /v1/ordersrequires anIdempotency-Keyheader. A successful retry with the same key and payload returns the same booking. A request that is rejected before a booking exists (for example because the playroom is not available) can be retried with the same key. A changed payload or an interrupted attempt that already created a booking but could not be completed returns409 Conflict; contact support before retrying with a new key. - Errors: Application errors normally use
ProblemDetailswithtitle,status, anddetail; do not rely on a stablecodefield. - Rate limiting: The public API allows 200 requests per 60 seconds, partitioned by API key or client IP. There is no documented daily limit.
- Webhooks: The public API has no outgoing booking webhooks yet. Poll the order endpoint for status.
Current standard: reading orders as a guest or host (v2)
Order reads are never anonymous. GET /v1/orders/{orderId} remains unchanged: it requires
bookings.read and returns only an order owned by the API-key owner's customer account.
The v2 guest routes are GET /v2/guest/orders and
GET /v2/guest/orders/{orderId}. Both require bookings.read and remain scoped to the
API-key owner's customer account. The host routes are GET /v2/host/orders and
GET /v2/host/orders/{orderId} (host.bookings.read), plus
GET /v2/host/guests and GET /v2/host/guests/{guestId}?orderId=...
(host.guests.read). Host guest detail requires the associated orderId, verifies the
guest belongs to that booking, and returns guest identity/contact/registration data only;
it contains no order, payment, or financial fields.
All v2 lists use 1-based page (default 1) and perPage (default 10, maximum 100).
The host order list additionally accepts an optional filter, using the host order
overview's text search across order ID, source ID, playroom name, customer display name
and email, guest email, and order status. Host guest list items are booking associations
(one row per booking); bookings without a customer ID are excluded from both items and
the total. Host API credentials are owner-only: each request rechecks that the API-key
owner is still the current company host owner with the owner role. Team-issued keys and
team-membership API access are not supported by v2; they require a separately scoped
future change.
For incremental sync and calendar tools, the host order list also accepts updatedSince
(sorted by updatedAt, including cancelled bookings with cancelledAt), from/to,
status, playroomId and sort. GET /v2/host/playrooms maps your rooms,
GET /v2/host/occupancy?from=...&to=... returns blocked periods (imported entries are left out
by default), the booking detail contains structured guest contact data and the chosen extras as
extras, the invoice number as invoiceNumber, and GET /v2/host/orders/{orderId}/messages gives read-only access
to the guest conversation with the separate host.messages.read permission (off by default).
There are no webhooks; poll with updatedSince. See the developer documentation, "Pulling
bookings into your own tool", for the full flow.