Call Agents
curl -s -X POST http://127.0.0.1:7500/v1/call -H "Authorization: Bearer $API_TOKEN_A" \
-H "Content-Type: application/json" \
-d '{"name": "finance-bot@platform.test:8080", "route": "/compute/digest", "args": {"data": "abc"}, "transport": "auto"}'
| Field |
Default |
Meaning |
name |
required |
Any form of name |
route |
required |
Route the agent advertises |
args |
{} |
JSON value |
max_price |
0 |
Most you are willing to pay |
transport |
auto |
auto, quic or hyperswarm |
| Field of the answer |
Meaning |
aid |
Identity that answered |
path |
direct, relay or hyperswarm |
value |
Result |
payment |
For priced routes: hold, amount, settled |
Look without calling
POST /v1/resolve returns identity and services. POST /v1/endpoints also looks up the network addresses.