nlink.cc

The nlink API

One resource, four calls. Create a link, list your links, read one, delete it. Everything is JSON over HTTPS.

The API is available on Pro and Business. Create a key in Dashboard → API. A key is shown once, at creation — store it somewhere you can get it back.

Base URL
https://nlink.cc/api/v1

Authentication

Send your key as a bearer token. Keys start with nlk_ and are scoped to one workspace.

curl https://nlink.cc/api/v1/links \
  -H "Authorization: Bearer nlk_live_xxxxxxxxxxxxxxxx"

QR codes

Every link has a QR code at a stable URL. No key needed — the code only encodes the public short link.

https://nlink.cc/api/qr/summer.png?size=1024
https://nlink.cc/api/qr/summer.svg
https://nlink.cc/api/qr/summer.pdf

PNG accepts size (128–2048 px). All formats accept dark and light as six-digit hex colours.

Errors

Errors return the matching HTTP status and a JSON body with a machine-readable code.

{ "error": "slug_taken", "message": "nlink.cc/summer is already in use." }
  • 401 · unauthorized — missing, unknown or revoked key
  • 403 · plan_required — the API needs Pro or Business
  • 404 · not_found — no link with that id in this workspace
  • 409 · slug_taken — that alias already exists
  • 422 · invalid_request — a field failed validation
  • 429 · rate_limited — slow down and retry

Rate limits

60 requests per minute per key. Redirects themselves are never rate limited — your links stay fast no matter what the API is doing.