Skip to main content
Every authenticated call uses the same header, regardless of token type:
There are two ways to get a token. Use whichever fits your case:

API Key

To integrate your own store with an internal system, script, or private app. You generate the key yourself in the dashboard — no authorization flow needed.

OAuth

To build a public app that other sellers will install and authorize on their own store. See the OAuth guide.

API Key

Generated under Settings → API in the Lojou dashboard. Each key is created with a fixed set of scopes chosen at creation time — it doesn’t change later without generating a new key.

OAuth token

Issued via POST /v1/oauth/token, after the seller authorizes your app. It expires in 30 days (the refresh_token returned alongside it is meant to renew access without asking for authorization again — build that into your app’s backend). An OAuth token’s scopes are whatever the seller approved on the authorization screen — possibly a subset of what your app requested.
From the point of view of /v1/* endpoints, an OAuth token and an API key work exactly the same — the only difference is how each one is issued.

Scopes

Every authenticated call is checked against the token’s scopes (API key or OAuth). A scope follows the resource.action shape:
Not sure which scopes your token has? Call GET /v1/scopes — it lists every scope the API supports and the endpoints each one unlocks.
If the required scope is missing, the API responds with 403:

Authentication errors