N Docs
← Back to site

Partner info

2 min readUpdated November 23, 2026

The partner API is for running many clients from your own backend: create them, give them keys and domains, brand their sites, and read their clicks and events. It’s what you use to build your own link product on Nahnu Links.

Basics#

  • Address: https://<your API address>/api/partner.
  • Key: a partner key (nl_pk_…) from Settings > Developers. Keep it on your server.
  • Clients are named by id (12) or by your own ID with ext: (ext:user_42).
  • Answers are { "data": … }, and lists add "meta".
  • Errors are { "error": "…", "code": "…" }. See Errors.

Describe your setup#

GET /api/partner describes your setup:

curl https://api.yourbrand.com/api/partner -H 'Authorization: Bearer nl_pk_…'
{ "data": { "version": "1.13.0", "write": true, "default_domain": null, "dashboard_url": "https://yourbrand.com/", "clients": 2, "links": 22 } }
FieldMeaning
versionThe edge script version
writefalse means a read-only partner key
default_domainThe default short domain, if set
dashboard_urlYour WordPress dashboard
clients, linksTotals

Call it when your app starts, to check the key and the setup.

What’s in the partner API#

AreaPathsGuide
Clients/clients, /clients/{ref}Clients
Their links/api/links with X-NL-ClientAct as one client
Their keys/clients/{ref}/keys, /keys/{id}Client API keys
Domains/clients/{ref}/domains, /domainsDomains over the API
Brands/clients/{ref}/brandWhite label per client
Usage and stats/clients/{ref}/usage, /clients/{ref}/statsUsage and stats
Feeds/clicks, /eventsClicks feed, Events feed
Webhooks/webhooksWebhook endpoints

A typical integration#

  1. When a customer signs up in your app, POST /clients with your external_id.
  2. Make their links with X-NL-Client: ext:{your id}.
  3. If they bring a domain, POST /clients/{ref}/domains and show them the DNS record.
  4. Show stats from /clients/{ref}/stats.
  5. Listen for webhooks to keep your app in step.