btcintel

Whom the caller acts as (ops)

GET /v1/ops/me
quién puede llamarla
Un operador
An operator's session at aal 1 is answered too, so a screen can ask it to step up.
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

The operator the credential acts as and, for a session, its aal: a session at aal 1 is answered here so a screen can ask it to step up, while every other ops route refuses it (403). An account linked to no operator answers 403; no credential, 401.

Parámetros

No toma parámetros.

Qué responde

The operator, and a session's assurance level.

CampoTipoQué lleva
operatorobjectThe operator the credential acts as.
aalintegerA session's assurance level; absent for the ops bearer and keys.
esquema
  • operator object obligatorio — The operator the credential acts as.
    • id string obligatorio — The operator's id.
    • kind string obligatorio — A human or an agent. · uno de "human", "agent"
    • display_name string obligatorio — The name shown for the operator.
    • roles array de string obligatorio — What the operator may do: admin, curator, moderator, drafter.
  • aal integer — A session's assurance level; absent for the ops bearer and keys. · uno de 1, 2

Ausente y vacío

El casoEn la respuesta
The ops bearer, or a key.No aal: it is a session's.

Errores

EstadoCódigoCuándo
401unauthorizedunauthorized: 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.
403forbiddenforbidden: 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.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

curl y jq, en cualquier shell.

curl -s https://api.btcintel.io/v1/ops/me \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq

This route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.