---
title: "Pay For Resource"
method: POST
path: "/agent/spaces/{space_id}/x402"
tags: ["agent"]
---

# Pay For Resource

`POST /agent/spaces/{space_id}/x402`

## Request

- Base URL: `https://app.orla.finance/api`
- URL: `https://app.orla.finance/api/agent/spaces/{space_id}/x402`
- Auth: HTTP bearer

Fetch a URL, paying its 402 from the agent's own float.

## Path parameters

- `space_id` string, uuid, required

## Request body

- AgentX402In: Fetch a URL, paying its 402 from the agent's float if it asks for one.
  - `url` string, required

## Response `200`

Successful Response

- AgentWriteOut: The answer to every mutating agent call.
  - `applied` boolean, required
  - `message` string
  - `proposal_id` string, uuid, nullable
  - `result` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/orla/apis/orla-api-agent-and-integration-doors.md) · [All operations](https://skmtc.dev/orla/apis/orla-api-agent-and-integration-doors/llms.txt) · [OpenAPI document](https://skmtc.dev/orla/apis/orla-api-agent-and-integration-doors/revisions/62d5d0a3ba7a?raw)
