Whom the caller acts as (ops)
GET /v1/ops/me- quién puede llamarla
- Un operador
- An operator's session at
aal1 is answered too, so a screen can ask it to step up. - 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.
| Campo | Tipo | Qué lleva |
|---|---|---|
operator | object | The operator the credential acts as. |
aal | integer | A session's assurance level; absent for the ops bearer and keys. |
esquema
operatorobject obligatorio — The operator the credential acts as.idstring obligatorio — The operator's id.kindstring obligatorio — A human or an agent. · uno de "human", "agent"display_namestring obligatorio — The name shown for the operator.rolesarray de string obligatorio — What the operator may do: admin, curator, moderator, drafter.
aalinteger — A session's assurance level; absent for the ops bearer and keys. · uno de 1, 2
Ausente y vacío
| El caso | En la respuesta |
|---|---|
| The ops bearer, or a key. | No aal: it is a session's. |
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 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. |
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" | jqThis 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.