API Reference

OpenAPI document · Feature availability

Portal and first-party queue routes require a Supabase user access token. Scoped developer-key queue routes are available in the local sandbox only.

MethodPathPurpose
GET/v1/featuresCompare legacy feature families with production availability.
GET/v1/portal/queuesSearch and page through queues the signed-in account can access.
GET/v1/portal/eventsDiscover open events at published businesses.
GET/v1/portal/appointmentsRead appointments for the signed-in guest profile.
GET/POST/v1/portal/profileRead or update the signed-in account display name with an expectedUpdatedAt guard; no roles or identity fields are accepted.
GET/POST/v1/portal/profile/personas/{persona}Read or customize the account's guest/mojo/biz name and about text with expectedRevision. Persona metadata grants no business access.
POST/v1/portal/profile/imageSave a bounded PNG or remove the account photo with expectedUpdatedAt. GET profile returns a private five-minute signed URL.
GET/v1/portal/calendarRead a bounded guest or operator calendar window, or export as iCalendar (.ics).
GET/POST/v1/portal/library/bookmarksRead or update saved queue bookmarks for the signed-in profile with a stable requestId.
GET/v1/portal/library/visitsRead cross-queue personal visit history for the signed-in profile.
GET/v1/portal/notificationsRead persona-scoped in-app notifications and unread count for the signed-in profile.
POST/v1/portal/notifications/ackMark one or all persona-scoped notifications as read using a stable requestId.
GET/v1/portal/messages/threadsList active conversation threads and eligible appointments for the signed-in profile.
GET/v1/portal/messages/threads/{threadId}Read message history for an authorized conversation thread.
POST/v1/portal/messagesSend a message to an existing thread or start an appointment thread using a stable requestId.
POST/v1/portal/messages/threads/{threadId}/readMark an authorized conversation thread as read using a stable requestId.
GET/POST/v1/portal/reviewsList guest or operator service reviews, or submit/update a 1-5 star review for a completed appointment using a stable requestId.
POST/v1/portal/reviews/{reviewId}/responsePost or update an authorized operator response to a business review using a stable requestId.
GET/POST/v1/portal/support/ticketsList or update scoped guest and operator support tickets with threaded replies.
GET/POST/v1/portal/formsPublish business intake form templates or submit guest intake form responses.
GET/POST/v1/portal/promotionsPublish business promotional campaigns or claim guest vouchers idempotently.
GET/POST/v1/portal/socialRead or publish posts in community and business social bubbles.
GET/POST/v1/portal/commercePublish business catalog items or place guest orders idempotently.
GET/POST/v1/portal/walletRead immutable wallet ledger balance and history or claim activity rewards.
GET/POST/v1/portal/filesRead, create, update or archive actor-owned Drive & Vault notes.
GET/POST/v1/portal/gamificationRead visit/booking/review progression or claim unlocked sticker badges.
GET/POST/v1/portal/live-streamsRead or schedule business live stream broadcasts.
GET/POST/v1/portal/locationsRead or update PostGIS business branch coordinates and service notes.
GET/POST/v1/portal/offline/receiptsInspect or verify committed requestId command receipts after offline/interrupted retries.
GET/v1/portal/analyticsRead authorized operator or personal guest workspace analytics KPIs.
GET/v1/portal/managed-eventsList events owned or managed by the account.
POST/v1/portal/managed-eventsSave an event with a stable requestId and expectedRevision.
POST/v1/portal/events/{eventId}/appointmentsRequest a booking with a stable requestId.
GET/v1/portal/appointment-requestsRead pending requests for an owned or assigned business.
GET/v1/portal/appointment-attendanceRead active appointments for an owned or assigned business.
POST/v1/portal/appointments/{appointmentId}/statusUpdate booking or attendance using expectedStatus and requestId.
GET/v1/queues/{queueId}/snapshotRead queue counts and the ticket currently being served.
GET/v1/queues/{queueId}/entries?scope=mineRead only the caller’s visits, filtered before pagination.
POST/v1/queues/{queueId}/commandsSubmit a queue action using an idempotency key.

Personal visit history

Pass scope=mine to restrict a page to the caller’s own visits, including when the same account manages the queue. Use after for the next ticket cursor and limit from 1 to 100. A null nextCursor ends the list.