Client API keys
Give a client their own API key, for their site, app or tools. A client key only reaches that client’s links.
Endpoints#
| Method | Path | Does |
|---|---|---|
POST | /clients/{ref}/keys | Make a key: label, scope (read_write or read_only), rate_limit (requests a minute, 0 for none). The key is in data.key, once. |
GET | /clients/{ref}/keys | The client’s keys, without the secret. |
DELETE | /keys/{id} | Revoke a key. It stops working straight away. |
Make a key#
curl -X POST https://api.yourbrand.com/api/partner/clients/ext:user_42/keys \
-H 'Authorization: Bearer nl_pk_…' -H 'Content-Type: application/json' \
-d '{"label":"Blue Cafe app","scope":"read_write","rate_limit":120}' { "data": { "id": 4, "client_id": 2, "label": "Blue Cafe app", "prefix": "nl_live_753d7f", "scope": "read_write", "rate_limit": 120, "is_active": true, "created_at": 1795348904, "last_used_at": null, "key": "nl_live_753d7f…" } } Show data.key to the customer once, or pass it straight to where it’s needed. It’s never returned again; only prefix is.
Choosing settings#
| Setting | Choose |
|---|---|
scope | read_only for reporting and dashboards; read_write to make links |
rate_limit | 0 for the client plugin; 60 to 600 for keys you hand out to outside tools |
label | Where the key is used, so you can find it later |
Revoke a key#
curl -X DELETE https://api.yourbrand.com/api/partner/keys/4 -H 'Authorization: Bearer nl_pk_…' Revoke keys when a customer removes an integration, or when a key may have leaked. Then make a new one.
Connecting a client’s WordPress site#
Give the client the key and your API address. In Nahnu Links Client, they paste both under Settings > Connection. See Install and connect.


