GraphQL API Reference
GGNomad is GraphQL-first. Product state — destinations, listings (stays, tours, activities, events), availability, itineraries, bookings, trips, and reviews — is served over a single GraphQL endpoint. Every request is authenticated and permission-checked before any data is read or written.
Operations marked roadmap are committed direction, not yet exposed.
Endpoint
All operations are sent as POST requests to the GGNomad GraphQL endpoint.
The default is production. Set BURDENOFF_ENV=local|alpha|prod to switch:
BURDENOFF_ENV | Endpoint |
|---|---|
prod (default) | https://graphqlworkspaces.burdenoff.com/workspaces/graphql |
alpha | https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql |
local | http://localhost:4003/workspaces/graphql |
POST /workspaces/graphql
Content-Type: application/json
Authorization: Bearer YOUR_TOKEN
Every field is permission-checked and scoped to the caller's workspace — a query for inventory in another workspace returns nothing. The workspace comes from your authenticated session, never from a client-supplied argument.
Authentication
OAuth 2.0 / OIDC Interactive and service callers authenticate through single sign-on and send a bearer token:
Authorization: Bearer YOUR_OAUTH_TOKEN
API keys Automation and integration callers use a workspace-scoped API key issued from the developer portal:
Authorization: Bearer YOUR_API_KEY
Discovery & inventory
List properties (stays)
Browse bookable stays in the workspace. Stays, tours, activities and events are
four separate list queries; each accepts status, minSustainabilityScore,
hasAccessibilityFeatures and pagination:
query Properties {
ggnomadProperties(status: ACTIVE, pagination: { limit: 20, offset: 0 }) {
id
name
pricePerNight
currency
maxGuests
rating
provider { id name type rating }
}
}
Get a single listing Open a stay, tour, activity, or event by id:
query Property($id: ID!) {
ggnomadProperty(id: $id) {
id
name
description
address
pricePerNight
currency
amenities
provider { id name rating }
}
}
The same shape applies to tours (ggnomadTours / ggnomadTour(id)), activities
(ggnomadActivities / ggnomadActivity(id)), and events (ggnomadEvents /
ggnomadEvent(id)). Transport trips the caller recorded are read via
ggnomadTrips.
Trip plans
Build a plan Create a plan, then add one item per listing. A plan reserves nothing and charges nothing; each item is booked separately:
mutation Plan($input: CreateGgnomadTripPlanInput!) {
createGgnomadTripPlan(input: $input) { id name }
}
mutation AddItem($tripPlanId: ID!, $input: AddGgnomadTripPlanItemInput!) {
addGgnomadTripPlanItem(tripPlanId: $tripPlanId, input: $input) { id itemName day }
}
{ "input": { "name": "Goa Getaway", "startDate": "2026-12-12", "endDate": "2026-12-15", "travelers": 4 } }
AddGgnomadTripPlanItemInput takes itemType, itemId and itemName
(required) plus day, scheduledAt, price, currency and notes. Read the
plan back with ggnomadTripPlan(id); totalsByCurrency gives per-currency
totals.
Let the planner draft it
ggnomadGenerateTripPlan(input: { destination, startDate, endDate, travelers, budget, currency, interests }) returns a priced, day-by-day proposal built from
active listings without creating anything; ggnomadAcceptTripPlanProposal(proposalId, itemIds) turns it into a trip plan.
Bookings & trips
Quote, then book
Ask for the price first, then create the booking. The price is always computed
by the service from the listing (a client-supplied totalPrice or currency is
ignored), and GGNomad generates a human-readable reference code:
query Quote($input: GgnomadBookingQuoteInput!) {
ggnomadBookingQuote(input: $input) { amount currency unitPrice quantity }
}
mutation Book($input: CreateGgnomadBookingInput!) {
createGgnomadBooking(input: $input) {
id
referenceCode
status # CONFIRMED when paid, within policy and instant-book; otherwise PENDING
paymentStatus # PAID or PENDING
checkIn
checkOut
}
}
{
"input": {
"bookingType": "PROPERTY",
"itemId": "<property id>",
"itemName": "Beach Villa",
"guestName": "Asha Rao",
"guests": 2,
"checkIn": "2026-12-12",
"checkOut": "2026-12-15"
}
}
bookingType, itemId, itemName, guestName and guests are required.
Payment is settled by the platform's billing service; pass the verified
billingTransactionId to have the booking marked paid.
List bookings Retrieve the bookings you made plus the bookings on listings you host, or one booking by id:
query Bookings {
ggnomadBookings(status: PENDING, pagination: { limit: 20, offset: 0 }) {
id
referenceCode
bookingType
itemName
status
}
}
query Booking($id: ID!) {
ggnomadBooking(id: $id) { id referenceCode itemName status paymentStatus }
}
Cancel a booking The traveler or the listing's host can cancel a booking that is not already cancelled, completed, refunded or a no-show. Cancelling records the transition and revokes unused tickets; it does not issue a refund:
mutation Cancel($id: ID!, $reason: String) {
cancelGgnomadBooking(id: $id, reason: $reason) { id status }
}
Favorites & wishlist
Toggle a favorite Save inventory to (or remove it from) a wishlist — the precursor to building an itinerary. The mutation flips the current state:
mutation Favorite($input: ToggleGgnomadFavoriteInput!) {
toggleGgnomadFavorite(input: $input)
}
{ "input": { "targetType": "TOUR", "targetId": "<tour id>" } }
query Favorites {
ggnomadFavorites(pagination: { limit: 50, offset: 0 })
}
Hosts & operators
Onboard a provider
Register a host or operator (a guesthouse, tour company, or venue). type is
one of HOTEL_OPERATOR, TOUR_OPERATOR, ACTIVITY_PROVIDER,
EVENT_ORGANIZER or TRANSPORT_PROVIDER:
mutation Provider($input: CreateGgnomadProviderInput!) {
createGgnomadProvider(input: $input) { id name type rating }
}
Create a property listing
Add a stay under a provider. A new listing starts as DRAFT; submit it with
submitGgnomadListingForReview(id, listingType) and it becomes bookable
(ACTIVE) once the marketplace operator approves it:
mutation Listing($input: CreateGgnomadPropertyInput!) {
createGgnomadProperty(input: $input) {
id
name
status
pricePerNight
}
}
Reviews
Travelers review a listing with createGgnomadReview; read them with
ggnomadReviews(targetType, targetId) and ggnomadReviewSummary(targetType, targetId), and reply as the host with respondGgnomadReview(id, response).
Analytics & overview Read marketplace and operator analytics:
query Overview {
ggnomadOverviewStats { users listings bookings monthlyRevenue }
ggnomadAnalytics { totalBookings totalRevenue conversionRate topDestinations }
}
Error handling
GGNomad surfaces errors in the standard GraphQL errors array with a typed
code in extensions:
{
"errors": [
{
"message": "Workspace context required",
"extensions": { "code": "WORKSPACE_REQUIRED" }
}
]
}
Common codes
UNAUTHENTICATED— no valid tokenFORBIDDEN— the actor lacks the requiredggnomad:*permissionWORKSPACE_REQUIRED— the request carried no workspace contextNOT_FOUND— the target does not exist in this workspaceVALIDATION_ERROR— the input failed schema or business validation
Rate limiting
Quotas are enforced per action, according to the workspace's billing plan. Limits surface as standard headers on the API response:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1623456789
Best practices
- Request only the fields you need — GraphQL lets you select exactly the inventory, booking, and provider fields a screen requires
- Paginate list queries — inventory, booking and other long lists accept
pagination: { limit, offset }(default 50, at most 100 per page). A few short, bounded lists (for examplemyGgnomadProviders,ggnomadPricingRulesandggnomadChannelMappings) take nopaginationargument; check the field's declared arguments in the schema - Handle the typed error codes above rather than parsing messages
- Respect workspace scoping — never assume an id from one workspace resolves in another
Getting started
Begin with a read query (ggnomadProperties) to confirm connectivity and your
token's ggnomad:read permission, then move on to booking flows. For the full
schema and partner integration patterns, see the
Developer Guide and
API Reference Overview.