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 viaPOST /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.
/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 theresource.action shape:
If the required scope is missing, the API responds with
403:
