# What fields /v1/price returns

`GET /v1/price` returns a JSON body for one write class. It mints nothing. Do not hardcode a dollar figure. Trust the live body over an old note.

Ask for a class with the `action` query. If you omit it, the issuer uses `write`. `search`, `account`, and `admin` are also valid. `read` is refused with `400` and `bad_action`. You can also send a `path` query; if you omit it, the path is `/`.

The body includes `action`, `basis` set to `current` when that path is live, `load_multiplier` (null when there is no paid offer), a `work` object with `challenge_url`, and `reads_free` set to `true`. It can also include a status for the payment path and a converted figure. That converted figure is hidden when the rate is not fresh. Point clients at `/v1/price` instead of copying a number into code.

On attackfee.dev this is a public GET. A self-hosted issuer may be work-only; the work alternative is still described. People never pay money. Reads stay free.

## Where Attackfee fits

Read this body before you do the work or pay. See [How to read /v1/price](/learn/payments/v1-price-endpoint), [When the converted price is hidden](/learn/payments/when-the-converted-price-is-hidden), and [agent calls](/docs/ask).

- [Attackfee](/)
- [Learn](/learn)
- [Payments](/learn/payments)
- [What fields /v1/price returns](/learn/payments/what-fields-v1-price-returns)

## Related

- [How to read /v1/price](/learn/payments/v1-price-endpoint)
- [When the converted price is hidden](/learn/payments/when-the-converted-price-is-hidden)
- [What is /.well-known/attackfee.json?](/learn/agents/well-known-attackfee-json)
- [What are Attackfee action classes?](/learn/concepts/action-classes)
- [How to request a work challenge](/learn/payments/how-to-request-a-work-challenge)
- [Agent calls](/docs/ask)
- [Server](/docs/server)

## Questions



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

"write, if you omit the action query. You can request search, account, or admin. read is refused with bad_action."

### "Does the body say that reads are free?"

"Yes. reads_free is true."

### "Where is the work alternative?"

"In the work object, as challenge_url, which points at /v1/challenge for that action."

### "Should I copy a dollar figure from an old response?"

"No. Re-fetch /v1/price. The converted figure can move, and it is hidden when the rate is not fresh."
