Keys
There are three kinds of key. Pick the one with the least access that does the job.
| Key | Starts with | Made in | Can do |
|---|---|---|---|
| Partner key | nl_pk_ | Settings > Developers | Everything 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 key | nl_live_ | Clients page, or POST /api/partner/clients/{ref}/keys | Only that client’s links, domains and usage. Give it to the client’s site or app. Read & write, or read only. |
| Site key | nlsk_ | Settings > General > Analytics connections, or made by client sites themselves | Read-only links and clicks for an analytics tool. |
Which key do I need?#
| You’re building | Use |
|---|---|
| A backend that manages many customers | Partner key |
| A tool, app or Zapier flow for one client | Client API key |
| An analytics integration | Site key |
| A WordPress plugin on the same site | No 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#
- Make a new key.
- Deploy it to your app.
- 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.


