---
title: "Run an agent autonomously, paid once via x402"
method: POST
path: "/v1/agents/{id}/autonomous"
---

# Run an agent autonomously, paid once via x402

`POST /v1/agents/{id}/autonomous`

## Request

- Base URL: `https://agents.dexl.io`
- URL: `https://agents.dexl.io/v1/agents/{id}/autonomous`
- Auth: API key in header `X-Payment`

The agent plans, discovers services, pays for them, executes and verifies. Priced at the budget you declare, because the plan does not exist yet and that budget is the only known ceiling.

## Path parameters

- `id` string, required

## Request body

- object
  - `goal` string, required
  - `budget_usd` number, required
  - `max_steps` number

## Response `200`

The run, its steps and what it spent

## Other responses

- `402`: Payment required

---

[API](https://skmtc.dev/dexl/apis/dexl-agents.md) · [All operations](https://skmtc.dev/dexl/apis/dexl-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/dexl/apis/dexl-agents/revisions/e3692765c3f7?raw)
