Endpoints
| Environment | OpenAPI JSON | Interactive docs |
|---|---|---|
| Production | https://win.oneshotagent.com/openapi.json | https://win.oneshotagent.com/docs |
| Staging | https://api-stg.oneshotagent.com/openapi.json | https://api-stg.oneshotagent.com/docs |
Authentication schemes
Every operation declares its required auth as one of four security schemes:| Scheme | Used by | Header |
|---|---|---|
x402Payment | Paid tool endpoints (email, voice, research, etc.) | Authorization: <signed payment header> + X-Quote-ID |
agentId | Free read-only endpoints (balance, analytics, inbox, notifications) | X-Agent-ID: 0x… |
soulKey | Soul marketplace seller dashboard | Authorization: Bearer soul_… |
acpBearer | Stripe Agent Commerce Protocol checkout | Authorization: Bearer … + API-Version: 2026-01-30 |
x-payment-info vendor extension so agent crawlers can decide whether payment is required before issuing the request.
Generating an SDK
The spec follows OpenAPI 3.1 conventions and uses$ref for shared schemas, so every mainstream client generator works out of the box.
For most use cases you should use the official
@oneshot-agent/sdk instead of generating your own client — it handles x402 payment signing, async polling, and ETH→USDC swaps automatically.Importing into other tools
- Postman — File → Import → paste
https://win.oneshotagent.com/openapi.json - Insomnia — Application → Preferences → Data → Import Data → From URL
- ChatGPT Custom Actions — paste the JSON URL directly into the actions UI
- Claude / OpenAI Assistants — provide the URL or JSON as a tool definition
What’s in the spec
| Tag | Operations | Description |
|---|---|---|
| 3 | Quote, send, analytics | |
| SMS | 1 | Send (single + bulk) |
| Voice | 1 | AI voice calls |
| Research | 9 | Deep research + people / company / article search |
| Enrichment | 3 | Email, profile, company enrichment |
| Verification | 1 | Email deliverability |
| Search | 2 | Web search + page reading |
| Commerce | 2 | Search + buy |
| Build | 1 | Generate websites |
| Browser | 4 | Browser automation + persistent profiles |
| Balance | 1 | Agent balance |
| Notifications | 3 | List + mark read |
| Inbox | 4 | Inbound email + SMS |
| Soul Marketplace | 25 | Browse, hire, manage souls |
| Compute | 9 | Multi-step goal orchestration |
| Analytics | 4 | Spend, ROCS, receipts |
| Jobs | 1 | Async job status polling |
| Stripe ACP | 6 | Agent Commerce Protocol checkout |
| Meta | 2 | Health + stats |