N Docs
← Back to site

The current client

1 min readUpdated November 23, 2026

Find out who a key belongs to, with the client’s plan, usage and details of the key itself. Useful right after someone pastes a key into your app, to show “Connected as Acme Bakery”.

Request#

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

Answer#

{ "data": { "client_id": 1, "name": "Acme Bakery", "plan": "pro", "link_limit": 1000, "links_used": 4, "click_limit": 100000, "clicks_this_month": 0, "resets_at": 1796083200, "domain_limit": 3, "domains_used": 1, "key_label": "acmebakery.com", "key_prefix": "nl_live_f5a01f", "key_scope": "read_write", "key_rate_limit": 0, "key_last_used": 1795348890 } }
FieldMeaning
client_id, name, planWho the key belongs to, and their plan
link_limit, links_usedLinks and their limit
click_limit, clicks_this_month, resets_atMonthly clicks (people), limit and reset time
domain_limit, domains_usedDomains and their limit
key_label, key_prefixThe key’s label and the start of the key, to tell keys apart
key_scope, key_rate_limitWhat the key may do, and its rate limit
key_last_usedWhen the key was last used, in Unix seconds

The full key is never returned.

Use it to#

  • Confirm a key works, and show the client’s name.
  • Hide buttons for actions a read only key can’t do.
  • Show usage against the plan.