What you can build
Nahnu Links has APIs for building your own link product, adding short links to an app you already run, connecting analytics tools and extending the WordPress plugin.
What you can build#
- Your own link SaaS. Your customers sign up in your app. Each becomes a client in Nahnu Links, with their own links, domains, limits, API keys and brand. Your app talks to the partner API, and your customers never see Nahnu Links.
- White-label links in an app you already run. Add short links, custom domains and click stats. Map your account IDs to clients with
external_id, and get webhooks when links are made or clicked. - Integrations for one client. A Zapier flow, a script or a mobile app that makes links for one client, with that client’s API key.
- Analytics integrations. Show which visits came from which short link, with the site API and the bridge script.
- A WordPress plugin. Use the PHP functions and hooks, with no HTTP involved.
The APIs#
| API | Key | For | Start with |
|---|---|---|---|
| Client API | Client key nl_live_ | One client’s links, domains and stats | Links |
| Partner API | Partner key nl_pk_ | Many clients: create them, their keys, domains, brands; read clicks and events | Partner info |
| Webhooks | Signing secret | Being told when things happen | Add a webhook |
| Site API | Site key nlsk_ | Analytics tools reading links and clicks | How it works |
| PHP | None | Code running in the same WordPress | Functions |
Where it runs#
Everything is answered by the edge script on Bunny, close to every visitor, so your app never calls WordPress and keeps working while it’s busy or down. The plugin is the setup side: it connects Bunny, makes partner keys and switches on what the API needs.
Set up once, in the dashboard#
- Finish Bunny setup (the setup wizard).
- Make a partner key under Settings > Developers.
- Optional: give the API your own address under Your API address (see Base URL).
- If your customers will add their own domains, turn on Domains over the API on the same page. Until then, adding a domain answers
503 domains_not_set_up.
Next#
Follow the Quick start: add a customer, make their link and read their clicks in three calls.


