Skip to main content
Install the SDK, point it at a funded wallet, and send an email. One call: the SDK gets the quote, signs the payment, and waits for the result. The code below is the whole integration.

Install the SDK

bash npm install @oneshot-agent/sdk

Send Your First Email

Behind that one call, the SDK:
  1. Gets a price quote from the API
  2. If paying with ETH, tops up USDC via Uniswap V3 when the balance runs low
  3. Signs a USDC payment authorization with your wallet
  4. Submits the signed payment and request
  5. Polls until the job completes
The SDK operates on Base Mainnet with real USDC. Fund your agent wallet before making paid tool calls.

What Just Happened

That one call ran a full payment exchange. The SDK used the x402 payment protocol:
You can do the same by hand with curl. The API Reference documents the raw endpoints.

Try More Tools

Every tool uses the same call pattern. Prices are on the Pricing page. A wallet call pays with x402, and its 402 quote carries the exact price before anything is charged. Calls paid from prepaid credits, such as an access-token session or the voice number purchase, are charged when the API accepts the request, before the work runs (a synchronous lookup answers 200, the number purchase 201, a queued job 202); a 402 there means insufficient credits, and nothing was charged or bought.

Advanced Configuration

Both overrides are optional.

Next Steps

SDK Examples

Email, voice, SMS, research, commerce, and build examples

API Reference

Raw endpoint docs for all tools

Pricing

Cost per endpoint

LangChain (Python)

Python integration with 48 LangChain tools plus the lookup tools

MCP Server

Use OneShot in Claude Desktop or Cursor