N Docs
← Back to site

Domains

1 min readUpdated November 23, 2026

List the domains a client can make links on.

Request#

curl https://api.yourbrand.com/api/domains -H 'Authorization: Bearer nl_live_…'

Answer#

A plain array, without data:

[{ "id": 3, "domain": "go.acmebakery.com", "is_primary": 1, "client_id": 1, "created_at": 1795348616 }]
FieldMeaning
idUse it as domain_id when making links.
domainThe short domain.
is_primaryThe client’s main domain.
client_idThe client it belongs to.
created_atWhen it was added, in Unix seconds.

A key only ever sees its own client’s domains, never anyone else’s.

  • Show the list in a dropdown in your app.
  • Preselect the one with is_primary: 1.
  • Leave domain_id out to use the default short domain.

Adding domains#

Clients add domains in their dashboard or on their site; partners can add them over the partner API. See Domains over the API.