N Docs
← Back to site

Usage and limits

1 min readUpdated November 23, 2026

See how much of its plan a client has used, and what its key may do.

Request#

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

Answer#

A plain object, without data:

{ "links": 3, "link_limit": 1000, "clicks_this_month": 0, "click_limit": 100000, "month_start": 1793491200, "resets_at": 1796083200, "key_scope": "read_write", "rate_limit": 0 }
FieldMeaning
links, link_limitLinks the client has, and its limit
clicks_this_month, click_limitClicks from people since month_start, and the monthly limit
month_start, resets_atWhen the month began and when it resets (Unix seconds, UTC)
key_scoperead_write or read_only
rate_limitRequests a minute for this key; 0 means none

-1 means no limit.

Show it to people#

const u = await fetch(`${BASE}/api/usage`, { headers }).then(r => r.json());
const pct = u.link_limit > 0 ? Math.round(100 * u.links / u.link_limit) : 0;
console.log(`${u.links} of ${u.link_limit < 0 ? 'unlimited' : u.link_limit} links (${pct}%)`);

Numbers can lag by up to a minute. See Rate limits and usage.