Partner API

Your app, white-label short links inside.

Add clients with your own IDs, give them keys and domains, make their links and read their stats and events, from your own backend. Your customers never see Nahnu Links.

  • external_id
  • X-NL-Client
  • Domains over the API
  • Brand per client
Nahnu Links · Developers
The Developers tab with partner keys and webhooks
Answered at the edge

The API is answered by your edge script on Bunny, close to every visitor. Your app never calls WordPress.

Safe retries

The same external_id answers 409 with the existing client.

Events

Webhooks, a clicks feed and an events feed.

How it works

One partner key, every customer.

The partner API is at https://<your API address>/api/partner, with a partner key (nl_pk_…) made under Settings, Developers. Clients are named by id (12) or by your own ID with ext: (ext:user_42). Answers are { "data": … }, lists add "meta", and errors are { "error": …, "code": … }.

To work with one client’s links, use the client API with your partner key and an X-NL-Client header. It behaves exactly as that client’s own key would, with their domains, limits and plan.

At a glance

Base
/api/partner
Client names
12 or ext:user_42
Metadata
JSON object, up to 4 KB
New client defaults
100 links, 50,000 clicks, 3 domains
Client ids
Never reused

Clients

Add, list, change and delete.

MethodPathDoes
POST/clientsAdd a client: name, email, plan, external_id, metadata, limits, is_active.
GET/clientsList, with search, status, external_id, limit and offset.
PATCH/clients/{ref}Change any field. is_active: false pauses the account: links keep working, keys can’t change anything.
DELETE/clients/{ref}Delete. Keys stop working; domains and links come back to you. ?purge=links deletes links too.

Domains over the API

Your customers’ domains, live without WordPress.

Turn on Domains over the API under Settings, Developers. Then POST /clients/{ref}/domains with { "domain": "go.bluecafe.example" } adds the domain to one of your pull zones and asks Bunny for a free certificate. The answer includes the CNAME record to show your customer, and a status: live, dns, https, problem or unchecked.

The domain.live webhook fires when it starts working, so you don’t need to poll.

Brand per client

Each customer, their own look.

PUT /clients/{ref}/brand sets the brand a client’s site shows: name, company, support contact, logos, icon and accent colors. Fields left out use yours; PATCH changes only what you send.

Pricing

Get Partner API, and everything else.

One license unlocks every feature on this site. No link, click, domain or client limits. Your links run on your own Bunny.net account, which bills you for usage directly: under $1 a month for most setups.

Annual

$49.99/ year

Pay yearly. Upgrade to Lifetime any time and this year’s payment is credited.

  • Every feature, Partner API included
  • 1 main site, unlimited client sites
  • Unlimited links, clicks, domains and clients
  • 1 year of updates and support
Buy Annual

Best value

Lifetime

$249.99once

Pay once, keep it for good. Costs less than five years of Annual.

  • Every feature, Partner API included
  • 1 main site, unlimited client sites
  • Unlimited links, clicks, domains and clients
  • Lifetime updates, 3 years of support
Buy Lifetime
14-day money-back guaranteeSet up in about five minutesYour links, your Bunny account, your dataCompare plans →

Questions

Questions about Partner API

Can I use a partner key in my mobile app?

No. Keep partner keys on your server. Give apps a client key instead.

Can I make client API keys from my backend?

Yes, with POST /api/partner/clients/{ref}/keys.

How do I get clicks into my app?

Read stats per client, use the clicks feed or the events feed, or subscribe to click.created webhooks.

What does adding a domain cost?

Nothing extra from us. Bunny issues the certificate for free; you pay Bunny for usage.

Works well with

Related features

All features →

Run it on your own edge.

Partner API comes with every license, with every other feature. Unlimited links, clicks, domains and clients.

Save to list