N Docs
← Back to site

Keys

2 min readUpdated November 23, 2026

There are three kinds of key. Pick the one with the least access that does the job.

KeyStarts withMade inCan do
Partner keynl_pk_Settings > DevelopersEverything on the partner API. On the link API it can act as any one client (X-NL-Client). Read-only partner keys can only GET.
Client API keynl_live_Clients page, or POST /api/partner/clients/{ref}/keysOnly that client’s links, domains and usage. Give it to the client’s site or app. Read & write, or read only.
Site keynlsk_Settings > General > Analytics connections, or made by client sites themselvesRead-only links and clicks for an analytics tool.

Which key do I need?#

You’re buildingUse
A backend that manages many customersPartner key
A tool, app or Zapier flow for one clientClient API key
An analytics integrationSite key
A WordPress plugin on the same siteNo key: use the PHP functions

Keeping keys safe#

  • Keep partner keys on your server. Never put one in a browser or a mobile app: anyone can read code that runs there.
  • Store keys in environment variables or a secrets manager, not in your code repository.
  • Use one key per app or integration, so you can remove one without breaking the others.
  • Keys are shown once and stored only as hashes. A lost key can’t be recovered; make a new one.

Rotate a key#

  1. Make a new key.
  2. Deploy it to your app.
  3. Remove the old key. It stops working straight away.

Read-only keys#

Partner and client keys can be read only. They can call GET endpoints; anything that changes data answers 403. Use them for dashboards and reporting.