---
title: "Create Purchase Request"
method: POST
path: "/library/purchase-requests"
---

# Create Purchase Request

`POST /library/purchase-requests`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/library/purchase-requests`
- Auth: none declared

Start a purchase for the human to confirm (#780). Body `{id, tenant, version?}`: the listing
(collection id and its seller workspace, from search results) and optionally the version the
agent expects (default `latest`; any other must be the version on sale now). Needs a scoped
library token with `library:acquire`. Returns 201 with `purchase_request_id`, a short
`user_code` and the `verify_url` the human opens; poll GET /library/purchase-requests/{id}.
Nothing is charged here, and the agent never receives a payment session.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
