btcintel

Whom the caller acts as (ops)

GET /v1/ops/me
who may call it
An operator
An operator's session at aal 1 is answered too, so a screen can ask it to step up.
what it costs
1 request of the quota
tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
None
On this page

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.

FieldTypeWhat it carries
operatorobjectThe operator the credential acts as.
aalintegerA session's assurance level; absent for the ops bearer and keys.
schema
  • operator object required — The operator the credential acts as.
    • id string required — The operator's id.
    • kind string required — A human or an agent. · one of "human", "agent"
    • display_name string required — The name shown for the operator.
    • roles array of string required — What the operator may do: admin, curator, moderator, drafter.
  • aal integer — A session's assurance level; absent for the ops bearer and keys. · one of 1, 2

Absent and empty

The caseIn the answer
The ops bearer, or a key.No aal: it is a session's.

Errors

StatusCodeWhen
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.

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" | 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.