# How to read /v1/price

`GET /v1/price` returns the current check for one write, and the work alternative. It mints nothing. On attackfee.dev, this is a public GET. Do not hardcode the dollar figure. It can move, and it is hidden when the rate is not fresh.

The live well-known file can list a price basis per class with the converted figure left null. `/v1/price` is the current figure, with `basis` set to `current` when that path is live. The write class has been under a cent when checked. Point at `/v1/price` in copy and in clients.

A self-hosted issuer may not take payments. In that case the endpoint still describes the work alternative. People never pay money.

## Where Attackfee fits

An automated client should read `/v1/price` and `/.well-known/attackfee.json` before paying or doing the work. See [What is /.well-known/attackfee.json?](/learn/agents/well-known-attackfee-json) and [How does a paid write work?](/learn/payments/how-does-a-paid-write-work).

- [Attackfee](/)
- [Learn](/learn)
- [Payments](/learn/payments)
- [How to read /v1/price](/learn/payments/v1-price-endpoint)

## Related

- [Attackfee Learning Center](/learn)
- [How does a paid write work?](/learn/payments/how-does-a-paid-write-work)
- [What is /.well-known/attackfee.json?](/learn/agents/well-known-attackfee-json)
- [Server](/docs/server)
- [Agent calls](/docs/ask)

## Questions



### "Does calling /v1/price spend a pass or mint work?"

"No. It returns the current check and the work alternative. It mints nothing."

### "Which action does it default to?"

"Look at the live response and at the well-known file. You can request a class with the action query the site documents. Always trust the live body over an old note."

### "Why is the dollar figure sometimes missing?"

"The converted figure is hidden when the rate is not fresh. The well-known file may list a base amount with the converted field left null. Use /v1/price for the current number."

### "Can I cache it forever?"

"No. Re-fetch when you need a current amount. Do not hardcode a dollar figure in a client."

### "Is this a payout to me?"

"No. It is the cost of one write, when payments are on. A self-hosted issuer may be work-only."
