fetch. This keeps
your integration production-ready while the public SDK package is finalized.
Runtime requirements
Node.js 18+ includesfetch by default, so you can call ThreeTone directly
without extra dependencies.
Create an agent
/examples/javascript/create-agent.mjs
Recommended structure
- Keep your ThreeTone API key in server-side environment variables
- Wrap repetitive API calls in small helper functions
- Link mutating operations back to the API reference
- Add webhook verification for any event-driven integrations