Whom the caller acts as (ops)
GET /v1/ops/me- who may call it
- An operator
- An operator's session at
aal1 is answered too, so a screen can ask it to step up. - how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
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.
Parameters
It takes no parameters.
What it answers
The operator, and a session's assurance level.
| Field | Type | What it carries |
|---|---|---|
operator | object | The operator the credential acts as. |
aal | integer | A session's assurance level; absent for the ops bearer and keys. |
schema
operatorobject required — The operator the credential acts as.idstring required — The operator's id.kindstring required — A human or an agent. · one of "human", "agent"display_namestring required — The name shown for the operator.rolesarray of string required — What the operator may do: admin, curator, moderator, drafter.
aalinteger — A session's assurance level; absent for the ops bearer and keys. · one of 1, 2
Absent and empty
| The case | In the answer |
|---|---|
| The ops bearer, or a key. | No aal: it is a session's. |
Errors
| Status | Code | When |
|---|---|---|
| 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. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
curl and jq, in any 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.