14-day free trial — no credit card required. Get Started

Try the Demo

Documentation

API Access

How to authenticate with the GrubStack API and open its interactive reference.

Accessing the GrubStack API

Every GrubStack subscription includes API access. Your API is deployed just for your business, and it's the same API your Dashboard and ordering site use. There are two ways to authenticate against it, depending on what you're building.

Base URL

Your API is available at:

https://api-<your-slug>.grubstack.app/v1

The easiest way to find your address is the Apps screen in your GrubStack account: the GrubStack API card shows it, with a button to copy it.

The GrubStack API card on the Apps screen, showing its address and the Open Docs button

Interactive API reference

Every endpoint is documented in your API's interactive reference. On the Apps screen, click Open Docs on the GrubStack API card (under Your Apps, or under Shared with You for an API that's been shared with you). It opens:

https://api-<your-slug>.grubstack.app/docs/

The reference lists each endpoint with its parameters and responses. To try requests from the page, click Authorize and enter Bearer <access_token>, using a token from the login steps below.

Signed-in users (JWT)

When you sign in to the GrubStack website, your browser receives a short-lived JWT session token. This is how the Dashboard itself talks to the API, and it's scoped to your user account and permissions: the account owner can use every endpoint, and a trusted user can only use what their Shared Access permissions allow.

Logging in via cURL or Postman

You can obtain a JWT directly by sending your username and password to the login endpoint. This URL is the same for every customer:

https://api.grubstack.app/v1/auth

The request body must be a raw JSON object containing your username and password.

cURL

curl -X POST https://api.grubstack.app/v1/auth \
  -H "Content-Type: application/json" \
  -d '{"username": "you@example.com", "password": "your-password"}'

Postman

  1. Create a new request and set the method to POST.
  2. Set the URL to https://api.grubstack.app/v1/auth.
  3. Open the Body tab, select raw, and choose JSON from the format dropdown.
  4. Enter your credentials:
{
  "username": "you@example.com",
  "password": "your-password"
}
  1. Send the request. On success, the response body's data.access_token field contains your JWT.

Your email address must be verified before you can sign in this way.

Use that token on requests to your API with an Authorization: Bearer <access_token> header. The token only works on the APIs of restaurants you belong to, as the owner or a trusted user.

Storefront access token

Your ordering site reads your menu with a storefront access token that belongs to your restaurant. Contact us if you need it for an integration.

Send it as an HTTP Basic Authorization header:

Authorization: Basic <your-access-token>

The value after Basic is your raw access token — it is not base64-encoded the way traditional HTTP Basic credentials are.

The storefront token is read-only: it can read your locations (including their order types, working hours and menus), menus and items. Because your ordering site uses it, treat it as public, not as a secret. If your integration needs to change data — updating menus, managing orders — use a signed-in JWT instead.

Example request

curl https://api-<your-slug>.grubstack.app/v1/locations \
  -H "Authorization: Basic <your-access-token>"