DIDComm HTTP API¶
python -m keri_system.didcomm.server runs a node with DIDComm. Endpoints other than the first three need Authorization: Bearer <ADMIN_TOKEN>.
| Method and path | Purpose |
|---|---|
GET /healthz |
Liveness and identifier |
POST /didcomm |
Receive an envelope. Content type application/didcomm-encrypted+json |
GET /oobi |
DID and service descriptor |
GET /1.0/identifiers/{did} |
Resolve a DID |
POST /v1/introduce |
Learn a descriptor: url, did |
POST /v1/messages |
Send a message: type, to, body |
POST /v1/schemas |
Add a schema |
POST /v1/offers |
Offer a credential: to, schema, attributes, parent |
POST /v1/proofs |
Request a proof: to, schema, route |
POST /v1/tasks |
Send a task: to, route, payload, credential |
GET /v1/threads/{id} |
State of an exchange |
GET /v1/credentials |
Stored credentials |
GET /v1/escalations |
Requests waiting for review |
POST /v1/escalations/{id} |
Review: {"accept": true} |
POST /v1/keys/rotate |
Rotate the key agreement key |
to and did are DIDs of the form did:keri:<aid>. Envelopes are limited to 8 MiB.
Environment¶
| Variable | Meaning |
|---|---|
ENDPOINTS |
JSON list of endpoints in the descriptor |
RELAYS |
Relays for descriptors. The relay of the network by default |
MEDIATOR |
Identifier of the mediator to use |
SERVE_MEDIATION, MEDIATION_ALLOW |
Run a mediator, and for whom |
ACCEPT_ISSUERS |
Issuers whose offers are accepted. All by default |
ESCALATE |
Route patterns that always need review |