Skip to content

Service APIs

Administrative endpoints (admin) need Authorization: Bearer <ADMIN_TOKEN> of the service.

Service Method and path Access Purpose
authority GET /v1/identity open Identifier
authority POST /v1/enroll admin Issue a credential: aid, role
authority POST /v1/revoke admin Revoke: said
ledger GET /v1/identity open Identifier
ledger POST /v1/input, GET /v1/output/{id} signed Hold, capture, cancel, balance
ledger POST /v1/fund admin Fund: aid, amount, ref
ledger GET /v1/balance/{aid} admin Balance
ledger GET /v1/audit admin Consistency
name server GET /.well-known/nostr.json?name= open Look up a name
name server PUT /v1/names/{name} admin Set: pubkey
name server DELETE /v1/names/{name} admin Remove
aggregator GET /v1/ads?author=&aid=&service= open Cached advertisements

The ledger routes /ledger/hold, /ledger/capture, /ledger/cancel and /ledger/balance are called with signed messages and need the role agent.

Daemons

swarmd and irohd serve their agent only, with their own tokens.

Daemon Endpoints
swarmd /v1/node, /v1/announce, /v1/lookup, /v1/record, /v1/call
irohd /v1/node, /v1/call, /v1/blobs, /v1/blobs/fetch, /v1/blobs/{hash}, /v1/gossip/join, /v1/gossip/publish