The current client
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 } } | Field | Meaning |
|---|---|
client_id, name, plan | Who the key belongs to, and their plan |
link_limit, links_used | Links and their limit |
click_limit, clicks_this_month, resets_at | Monthly clicks (people), limit and reset time |
domain_limit, domains_used | Domains and their limit |
key_label, key_prefix | The key’s label and the start of the key, to tell keys apart |
key_scope, key_rate_limit | What the key may do, and its rate limit |
key_last_used | When 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.


