Domains
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 }] | Field | Meaning |
|---|---|
id | Use it as domain_id when making links. |
domain | The short domain. |
is_primary | The client’s main domain. |
client_id | The client it belongs to. |
created_at | When it was added, in Unix seconds. |
A key only ever sees its own client’s domains, never anyone else’s.
Choosing a domain for new links#
- Show the list in a dropdown in your app.
- Preselect the one with
is_primary: 1. - Leave
domain_idout 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.


