Get the spec
The spec ships with these docs and powers the API Reference tab:Try requests in the docs
Every endpoint page in the API Reference has an interactive playground. Paste ask_test_ key, fill in the fields, and send real requests against the sandbox without leaving the docs — the fastest way to explore an endpoint before writing code.
Import into Postman
1
Import the spec
In Postman, click Import → Link and paste the spec URL above. Postman generates a collection with one request per endpoint, organized by resource.
2
Set collection variables
Set
baseUrl to https://api-sandbox.sohopay.xyz/v1 and add a collection-level Bearer Token auth with your sk_test_ key so every request inherits it.3
Send a request
Open Agents → List agents and hit Send. A
200 with your sandbox agents confirms the setup.Import into Insomnia
Insomnia imports the same spec: Create → Import From → URL, paste the spec URL, and choose Request Collection. Set the base environment to the sandbox URL and add theAuthorization: Bearer sk_test_... header in the environment so all requests share it.
Generate a typed client
For languages without an official SDK — Go, Java, Ruby, Rust — generate one from the spec.openapi-generator
orval (TypeScript, framework-aware)
If you want generated TypeScript hooks (React Query, SWR) instead of the official SDK:Generated clients give you types and request plumbing, but not the official SDKs’ automatic retries, idempotency-key generation, or webhook signature verification — implement those yourself (see error handling and webhooks). Official Speakeasy-generated SDKs for more languages, starting with Go, are on the roadmap.
Keep generated code current
Pin the spec you generated from and regenerate on API changes. A simple CI check catches drift:/v1; breaking changes would ship as a new version, so regeneration within /v1 is additive.
Next steps
API Reference
Endpoint pages with the interactive playground.
TypeScript SDK
The official SDK with retries and idempotency built in.
Code Examples
Runnable, CI-tested examples for every core flow.

