btcintel

Add a labeler to the directory (ops, human admin or curator)

POST /v1/ops/community/labelers
who may call it
An operator
a human: admin or curator
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

A labeler is a pubkey whose NIP-32 labels readers may choose as a lens. Unlisted unless listed is true; no labeler is ever a default. Audited; the row keeps a changelog.

Parameters

NameWhereTypeRequiredWhat it does
pubkeybodystringrequired64 hex characters or an npub1… id.
namebodystringrequiredThe labeler's name, 1 to 120 characters once trimmed. Required.
descriptionbodystringoptionalWhat the labeler does, at most 1,000 characters.
urlbodystringoptionalThe labeler's site, an http(s) URL.
criteria_urlbodystringoptionalWhere the labeler states its criteria, an http(s) URL.
listedbodybooleanoptionalWhether the directory lists the labeler: unlisted unless this says otherwise.

The body is application/json.

schema LabelerBody
  • pubkey string required — 64 hex characters or an npub1… id.
  • name string required — The labeler's name, 1 to 120 characters once trimmed. Required. · at most 120 characters
  • description string — What the labeler does, at most 1,000 characters. · at most 1000 characters
  • url string (uri) — The labeler's site, an http(s) URL.
  • criteria_url string (uri) — Where the labeler states its criteria, an http(s) URL.
  • listed boolean — Whether the directory lists the labeler: unlisted unless this says otherwise. · default false

What it answers

201 · application/json

The directory entry.

FieldTypeWhat it carries
pubkeystringThe labeler's public key, 64 hex.
npubstring or nullThat key as an npub (NIP-19). Null when it does not encode.
namestringThe labeler's name in the directory.
namespacestringio.btcintel.
descriptionstring or nullWhat the labeler does. Null when the directory says nothing.
urlstring or nullThe labeler's site. Null when it has none.
criteria_urlstring or nullWhere the labeler explains its criteria.
listedbooleanShown in the public directory.
added_bystring or nullWho added it to the directory.
added_atstringWhen it was added.
schema Labeler
  • pubkey string required — The labeler's public key, 64 hex.
  • npub string | null — That key as an npub (NIP-19). Null when it does not encode.
  • name string required — The labeler's name in the directory.
  • namespace string required — io.btcintel.
  • description string | null — What the labeler does. Null when the directory says nothing.
  • url string | null (uri) — The labeler's site. Null when it has none.
  • criteria_url string | null (uri) — Where the labeler explains its criteria.
  • listed boolean required — Shown in the public directory.
  • added_by string | null — Who added it to the directory.
  • added_at string (date-time) required — When it was added.

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
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.
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.

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 -X POST https://api.btcintel.io/v1/ops/community/labelers \
  -H "Authorization: Bearer $BTCINTEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"pubkey":"…","name":"…"}' | 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.