The organisation's keys
GET /v1/orgs/{id}/keys- who may call it
- A session
- the session of an account · A member of the organisation.
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Any member: the rows, never a secret.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | integer | required | The organisation's id. One the caller is no member of is a 404. |
What it answers
The keys.
| Field | Type | What it carries |
|---|---|---|
keys | array | The owner's keys in any state, revoked ones too, without their secrets: the newest first, at most 100. |
keys[].id | integer | The key's id. |
keys[].prefix | string | The secret's prefix: btci_ for an issued key, btci_anon_ for an anonymous token. |
keys[].tier | string | The key's tier. |
keys[].scopes | array | What the key may do: its scopes. |
keys[].allowed_npubs | array | The npubs the key publishes and proposes as, 64 hex each. Empty when it has none. |
keys[].label | string or null | The key's name. Null when it has none. |
keys[].operator_id | string or null | The operator the key acts as on the ops routes. Null for any other key. |
keys[].created_at | string | When the key was made. |
keys[].expires_at | string or null | When it expires. Null when it does not. |
keys[].last_used_on | string or null | The last UTC day it was used, YYYY-MM-DD. Null until then. |
keys[].revoked_at | string or null | When it was revoked. Null while it is live. |
keys[].quota | object | What the key's tier allows. |
keys[].usage_today | object | What the key has spent today, by route. Only on GET /v1/keys/me; absent when the counts could not be read. |
schema KeyList
keysarray of KeyInfo required — The owner's keys in any state, revoked ones too, without their secrets: the newest first, at most 100.idinteger — The key's id.prefixstring — The secret's prefix:btci_for an issued key,btci_anon_for an anonymous token. · one of "btci_", "btci_anon_"tierstring — The key's tier. · one of "t1", "t2", "t4"scopesarray of string — What the key may do: its scopes.allowed_npubsarray of string — The npubs the key publishes and proposes as, 64 hex each. Empty when it has none.labelstring | null — The key's name. Null when it has none.operator_idstring | null — The operator the key acts as on the ops routes. Null for any other key.created_atstring (date-time) — When the key was made.expires_atstring | null (date-time) — When it expires. Null when it does not.last_used_onstring | null — The last UTC day it was used, YYYY-MM-DD. Null until then.revoked_atstring | null (date-time) — When it was revoked. Null while it is live.quotaQuota — What the key's tier allows.requests_per_mininteger — The requests a minute the tier refills, on average.burst_per_mininteger — The most requests the tier lets through at once: its bucket, refilled atrequests_per_min.requests_per_dayinteger — The requests a UTC day the tier allows. 0 sets no daily cap.bulk_max_subjectsinteger — The most subjects one bulk lookup may name. 0 falls back to 20, t0's number.publish_per_dayinteger — The Community events a UTC day each author may publish through the API at this tier. 0 sets no daily cap. Who may publish at all is decided apart: a person signed in with their key, or a key with thecommunity:publishscope and an allowed npub; t0 and t1 cannot.feedback_per_dayinteger — Feedback entries per caller per UTC day.proposals_per_dayinteger — Curated proposals per caller per UTC day.disputes_per_dayinteger — Disputes per caller per UTC day.scopesarray of string — The scopes of the tier. Absent from a key's row, whose ownscopesstand beside it.
usage_todayobject — What the key has spent today, by route. Only onGET /v1/keys/me; absent when the counts could not be read.totalinteger — The requests counted today, UTC.by_routeobject — Those requests by route.notestring — A reminder that the counts are flushed every minute: the live counter may be ahead.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | invalid_input: the request is malformed: bad hex, an address of another network, a bad vout, or a value out of its range. The message says which. |
| 401 | unauthorized | unauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
| 404 | not_found | not_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which. |
| 501 | not_configured | not_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
No snippet. This route takes a signed-in session (the cookie btcintel.io sets) or a NIP-98 signature from your Nostr signer, never a key, so no snippet can run it from a shell. See Identity.