N Docs
← Back to site

Base URL

2 min readUpdated November 23, 2026

The API lives on your edge script, on Bunny, not on your WordPress site.

The address#

  • https://api.yourbrand.com when you’ve set Your API address under Settings > Developers, or
  • the edge script’s Bunny address, like https://nahnu-links.b-cdn.net.

Both keep working. Settings > API docs and Settings > Developers show your real address.

Paths#

APIPaths
Client API/api/links, /api/links/{id}, /api/links/{id}/stats, /api/domains, /api/usage, /api/me, /api/analytics, /api/connection
Partner API/api/partner/…
Site API/api/site/…

So a full address looks like https://api.yourbrand.com/api/links.

Ask which address to use#

GET /api/connection (with a client key) answers with api_url, the address to use:

{ "dashboard_url": "https://yourbrand.com/", "client_id": 1, "active": true, "version": "1.13.0", "api_url": "https://api.yourbrand.com" }

Apps you give to clients can call this once a day and switch to api_url when it changes. That’s how Nahnu Links Client follows a new API address by itself.

Short domains aren’t API addresses#

Your short link domains (like go.yourbrand.com) also answer /api/… paths, because they run the same edge script. Use your API address anyway: it’s meant for the API, and a short domain may be given to a client or removed later.

Your API address, in turn, answers the API only: short links typed on it get an error explaining that short links live on your link domains.

HTTPS only#

Always use https://. Keys sent over plain HTTP could be read on the way.