API integration
Use the origin hosting Booking SaaS and append /api. Preview examples use the current preview host; production consumers should use their deployment’s canonical domain.
bash
export BOOKING_URL=https://booking.example.comVerify availability
bash
curl --fail "$BOOKING_URL/api/health/ready"/api/health reports process liveness. /api/health/ready also reads persistence and is the appropriate deployment/load-balancer check.
Authenticate requests
After consuming a magic link, pass the returned session ID:
bash
curl "$BOOKING_URL/api/me" \
-H "Authorization: Bearer $BOOKING_SESSION"Integration order
Implement consumers in this order:
- Authentication and session storage.
- Current-user/account retrieval with
/api/me. - Event and instance listings.
- Product display and purchase.
- Booking creation, listing, and cancellation.
- Administrative operations according to the current user’s roles.
Use Swagger UI to experiment and OpenAPI JSON for client generation. Generated clients must still handle 401, 403, 404, and 409 responses as normal domain outcomes.