Welcome
Learn what the Identify API does, who calls which endpoint, and where to go next.
After this page you will know what the Identify API is for, which party calls which endpoint, and which guide to read next.
Prerequisites: none to read it. To make calls you need an API key for your app (see Authentication) and the Production host listed below.
The Identify API connects your app to Nortly. Your backend tells Nortly which merchant (shop) is using your app and pushes what you know about them. In return it receives a short-lived customer token. Your frontend then uses that token to read the app's configuration and the merchant's own Nortly data straight from the merchant's browser, without ever exposing your API key.
Who calls what
| Caller | Endpoint | Credential | Purpose |
|---|---|---|---|
| Your backend | POST /api/2026-07/identify | API key (bound to your app) | Push merchant data and get a customer token |
| Merchant's browser | GET /api/2026-07/app | Customer token | Read the app and its environment values |
| Merchant's browser | GET /api/2026-07/customer | Customer token | Read the merchant's own data (tags, custom fields, review) |
| Your backend or monitoring | GET / | None | Health check, returns the text identify ok |
Hosts
| Host | Use it for |
|---|---|
https://id.nortly.app | Production Nortly API. Use it for every call: POST /identify (required), GET /app and GET /customer. |
POST /identify needs a valid API key sent to this host; without one the answer is 401 unauthorized.
The big picture
Your backend ──POST /identify (API key)──▶ Nortly API
▲ │
└──────── { token, expiresAt } ◀───────────┘
│
└─ passes the token to your frontend
Merchant's browser ──GET /app, GET /customer (customer token)──▶ Nortly API- Your backend calls
POST /identifywith the merchant'sshopIdand any data you want Nortly to know. - Identify answers immediately with
tokenandexpiresAt. The data is merged asynchronously, so a200means "accepted", not "already visible". - Your backend hands the token to your frontend.
- The frontend calls
GET /appandGET /customerwithAuthorization: Bearer <token>. CORS is enabled, so these calls work from any origin. - The token is valid for 24 hours. There is no refresh endpoint: call
POST /identifyagain to get a new one.
We recommend
- Keep the API key on your backend only. Only the customer token goes to the browser.
- Refresh the customer token before
expiresAtinstead of waiting for a401. - Retry
429and503with exponential backoff.
Conventions
- All bodies are JSON and all errors look like
{ "error": "<code>" }. See Errors. - Paths are
/api/{version}/{resource}. This documentation covers version2026-07. See Versioning. - Any route can be answered with
429by rate limiting in front of the service. Back off and retry.
Next steps
- Quickstart: your first successful
GET /appin a few minutes. - Authentication: the two credentials, how to send them, token lifetime and refresh.
- Push merchant data: every field of
POST /identifyand how updates merge. - Read data in the browser:
GET /app,GET /customer, CORS and every response field. - Errors: status codes,
errorvalues and the different 404s. - Versioning: how
YYYY-MMversions work and how to migrate.
Updated 13 days ago