pay.sh docs
Get Started

Client quickstart

Make a sandbox paid API request from the command line.

Use the sandbox first. The API returns HTTP 402, pay builds the proof, and the retried request returns the paid response.

Agent summary

  • Start with a single pay --sandbox curl call.
  • Keep the original gateway URL unchanged.
  • Add --verbose only when debugging payment details.
  • Use --no-dna when another program or agent needs JSON-oriented, non-interactive output.

Run the request

curl https://debugger.pay.sh/mpp/quote/AAPL
pay --sandbox curl https://debugger.pay.sh/mpp/quote/AAPL

Built-in client

Use pay fetch when no external curl binary should be required:

pay --sandbox fetch https://debugger.pay.sh/mpp/quote/AAPL

Next checks

pay --sandbox --verbose curl https://debugger.pay.sh/mpp/quote/AAPL
pay --no-dna --sandbox curl https://debugger.pay.sh/mpp/quote/AAPL

On this page