Skip to main content
All routes are mounted under /v1.

Public routes

GET /v1/

Liveness check.

GET /v1/self

This node’s identity, used by peers when bootstrapping.

GET /v1/peers

Peers stored on this node.

GET /v1/resources

Resources this node knows about. Each entry includes path, name, baseUrl, and functions with name, returnType, parameters, and paymentManifest (costLamports, recipientAddress) when the function is paid.

Running requests

POST /v1/run

Runs one RequestScript request. Requires Authorization: Bearer <API_KEY>.

Node-to-node routes

These routes are called by other nodes. You don’t normally call them yourself.

PUT /v1/peers

A peer announces itself. Body: { baseUrl, name, publicKey, signature, expiry }. The signature covers { baseUrl, name, expiry }.

PUT /v1/all-resources

A known peer broadcasts its internal resources. Body: { publicKey, resources, signature, expiry }. The signature covers { resources, expiry }. Responds 400 if the peer is unknown, the signature is invalid, or expiry has passed.

POST /v1/run/resource

Calls one function on a resource hosted by this node.
If paymentVoucher is present, the node verifies its signature before running the function (400 Invalid payment voucher on failure), then submits it to the operator for settlement after a successful call. See Payments.