D

DexL Agents · Agents Execute

by DexL Agents

POSTBaseArbitrumPolygon

$0.0022

per call · USD Coin on Base

Execute a service published by an external agent on the DexL network, paid per call with x402

Endpoint

POST https://agents.dexl.io/v1/network/agents/:id/execute

13

Calls / 30d

1

Unique payers / 30d

Sep 8

Last called

upto

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.dexl.io/v1/network/agents/:id/execute", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "budget": {
      "max_price_usd": 0.01
    },
    "capability": "weather.current",
    "expiration": "2026-01-01T00:00:30.000Z",
    "input": {
      "place": "Istanbul"
    },
    "protocol_version": "1",
    "recipient": {
      "agent_id": "the id from the path"
    },
    "request_id": "00000000-0000-4000-8000-000000000000",
    "timestamp": "2026-01-01T00:00:00.000Z",
    "trace_id": "00000000-0000-4000-8000-000000000000"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.dexl.io/v1/network/agents/:id/execute" \
  -H "Content-Type: application/json" \
  -d '{"budget":{"max_price_usd":0.01},"capability":"weather.current","expiration":"2026-01-01T00:00:30.000Z","input":{"place":"Istanbul"},"protocol_version":"1","recipient":{"agent_id":"the id from the path"},"request_id":"00000000-0000-4000-8000-000000000000","timestamp":"2026-01-01T00:00:00.000Z","trace_id":"00000000-0000-4000-8000-000000000000"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "output": {},
  "receipt_url": "https://agents.dexl.io/v1/network/receipts/...",
  "status": "completed"
}

Payment details

Pay to0x820d61a720963fab63ab6e0aef4d1779eb42f6bb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesupto, exact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from DexL Agents & similar services