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

CallerEndpointCredentialPurpose
Your backendPOST /api/2026-07/identifyAPI key (bound to your app)Push merchant data and get a customer token
Merchant's browserGET /api/2026-07/appCustomer tokenRead the app and its environment values
Merchant's browserGET /api/2026-07/customerCustomer tokenRead the merchant's own data (tags, custom fields, review)
Your backend or monitoringGET /NoneHealth check, returns the text identify ok

Hosts

HostUse it for
https://id.nortly.appProduction 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
  1. Your backend calls POST /identify with the merchant's shopId and any data you want Nortly to know.
  2. Identify answers immediately with token and expiresAt. The data is merged asynchronously, so a 200 means "accepted", not "already visible".
  3. Your backend hands the token to your frontend.
  4. The frontend calls GET /app and GET /customer with Authorization: Bearer <token>. CORS is enabled, so these calls work from any origin.
  5. The token is valid for 24 hours. There is no refresh endpoint: call POST /identify again 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 expiresAt instead of waiting for a 401.
  • Retry 429 and 503 with exponential backoff.

Conventions

  • All bodies are JSON and all errors look like { "error": "<code>" }. See Errors.
  • Paths are /api/{version}/{resource}. This documentation covers version 2026-07. See Versioning.
  • Any route can be answered with 429 by rate limiting in front of the service. Back off and retry.

Next steps

  • Quickstart: your first successful GET /app in a few minutes.
  • Authentication: the two credentials, how to send them, token lifetime and refresh.
  • Push merchant data: every field of POST /identify and how updates merge.
  • Read data in the browser: GET /app, GET /customer, CORS and every response field.
  • Errors: status codes, error values and the different 404s.
  • Versioning: how YYYY-MM versions work and how to migrate.

Did this page help you?