Skip to content

Your First API Call

Prerequisites: You have a Bearer token from the Authentication step.

List the locations your credentials have access to. This gives you the locationUuid values you’ll use in almost every subsequent request.

Terminal window
curl https://gotab.io/api/loc \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

[
{
"locationUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"locationId": 42,
"name": "Demo Rooftop Bar",
"timezone": "America/New_York",
"urlName": "demo-rooftop-bar"
}
]

Save the locationUuid — you’ll use it in every location-scoped request.

The same data is available via GraphQL. This is useful when you need nested location data in a single request.

Endpoint: POST https://gotab.io/api/graph

query {
locationsList {
name
locationUuid
locationId
timezone
urlName
}
}

Send it as a JSON body:

Terminal window
curl -X POST https://gotab.io/api/graph \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "query { locationsList { name locationUuid locationId timezone urlName } }"}'

Try this query (and others) interactively in the GraphQL Explorer →

Use the locationUuid from Step 1 to fetch available menus for that location:

Terminal window
curl "https://gotab.io/api/loc/a1b2c3d4-e5f6-7890-abcd-ef1234567890/menus" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Or via GraphQL:

query ($locationUuid: String!) {
location(locationUuid: $locationUuid) {
name
menus {
menuId
name
menuType
}
}
}

You now have the basics: credentials → token → locations → menu. From here you can explore the full API surface.

Where to goWhat you’ll find
REST API ReferenceInteractive docs for every endpoint — try requests in the browser
GraphQL ExplorerSchema browser and query editor
GuidesWalkthroughs for ordering, payments, accounting, loyalty, and more
ConceptsOAuth deep-dives, webhooks, pagination, and rate limits