Get the current key
Get the name, spend and remaining credit limit of the key you call with. Handy for checking a key works.
Authorization
AuthorizationheaderrequiredBearer sk-orb-v1-…, your API key, or a free test key (sk-orb-test-…; no account? get one withPOST /sandbox/keys).
Response
dataobjectThe key.
Show 8 child attributes
labelstringA shortened form of the key, safe to show, e.g.
sk-orb-v1-1a2...f9c.namestringThe name you gave it.
usagenumberWhat it has spent, in US dollars.
limitnumber | nullIts credit limit in US dollars, or
nullfor none.limit_remainingnumber | nullWhat it can still spend under that limit, or
nullfor no limit.is_free_tierbooleanAlways
true; kept for OpenRouter compatibility.sandboxbooleantruefor a sandbox key (sk-orb-test-…): simulated output, never billed.expires_atinteger | nullWhen the key stops working, in Unix seconds: set only for a sandbox key made without an account,
nullotherwise.
Errors
The errors every endpoint shares: invalid input, keys, credits and cold starts. See Errors.