---
title: "An order from a quote, payable by card for 24 hours"
method: POST
path: "/api/agent/orders"
---

# An order from a quote, payable by card for 24 hours

`POST /api/agent/orders`

## Request

- Base URL: `https://agentsindex.ai`
- URL: `https://agentsindex.ai/api/agent/orders`
- Auth: one of:
  - API key in cookie `__Secure-better-auth.session_token`
  - HTTP bearer

The account that owns the listing: its session, or an agent key with the order scope. The same Idempotency-Key returns the same order. Refusals carry a fix. Nothing is charged here.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `quote_id` string, required

## Response `200`

The order this Idempotency-Key already made.

- object

## Other responses

- `201`: The order, with payment.url.
- `409`: open_order, price_changed or idempotency_mismatch.

---

[API](https://skmtc.dev/agentsindex/apis/agentsindex-machine-api.md) · [All operations](https://skmtc.dev/agentsindex/apis/agentsindex-machine-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentsindex/apis/agentsindex-machine-api/revisions/9b3104eb9efd?raw)
