Skip to content

HTTP API

Sealed answers are envelopes {"payload", "aid", "sig"} and need a nonce of 16 to 128 characters.

Method and path Access Sealed Purpose
GET /v1/identity/{aid} open yes Key state, witnessed, highest observed position, conflict, alerts
GET /v1/credentials/{said} open yes Status, credential and status events
GET /v1/kel/{aid} open Key event log with signatures and receipts
GET /v1/alerts/{aid} open Alerts
GET /v1/evidence/{aid} open Up to 1000 evidence and status references
GET /v1/feed?after= open yes Up to 50 signed alerts after a position
GET /oobi/{aid} open Introduction
POST /v1/status signed Submit a signed status reference
POST /v1/observe tenant, or open Submit 1 to 500 observations: [{"kind","content"}]
PUT /v1/webhook, DELETE /v1/webhook tenant Webhook
GET /v1/info open Identifier and role
GET /healthz open 503 if the pipeline is stalled for more than 30 seconds
GET /metrics open, or token Prometheus metrics

Administration and tenant endpoints are described in Tenants and Access.

Submitting observations

curl -X POST http://127.0.0.1:7620/v1/observe -H "Authorization: Bearer <api key>" \
  -d '[{"kind":"kel","content":{"event":"...","sigs":["..."]}}]'

The answer is 202 when the observations are queued, and 503 when the queue holds 100,000 items.

Metrics

watcher_observed_total, watcher_alerts_total{class}, watcher_poll_failures_total, watcher_webhooks_delivered_total, watcher_webhooks_abandoned_total, and the request metrics.