Skip to content

Agent API

Endpoints under /v1 need Authorization: Bearer <API_TOKEN>.

Method and path Body or query Purpose
GET / Page
GET /oobi Introduction: aid, nostr
GET /healthz Liveness
GET /v1/identity Identifier, key, and whether credential and advertisement are ready
PUT /v1/credential credential Store the credential
POST /v1/rotate Rotate keys
POST /v1/resolve name Resolve and verify
POST /v1/endpoints name Network addresses
GET /v1/discover route Agents offering a route
POST /v1/call name, route, args, max_price, transport Call
POST /v1/session/call name, route, args Call in a session
GET /v1/petnames List petnames
PUT /v1/petnames/{name} identifier Set a petname
DELETE /v1/petnames/{name} Remove a petname
DELETE /v1/pins/{name} Forget a pin
POST /v1/oobi url, petname Accept an introduction
POST /v1/gossip/join topic, members Join a group
POST /v1/gossip/publish topic, data Publish
GET /v1/gossip/events topic, after Read

Bodies are limited to 32 MiB.