Skip to Content
🚀 Orga AI is in open beta.
ReferenceServer SDKsNode SDK

Node SDK Reference

This page documents every class, type, and utility exported by @orga-ai/node. Use it when you need the exact signatures for minting ephemeral tokens, fetching ICE servers, or keeping your API key locked to the backend.


Sections

  • Classes — OrgaAI constructor, methods, and lifecycle controls.
  • Types — OrgaAIConfig, SessionConfig, IceServer, and error type definitions.
  • Errors — Exception hierarchy for authentication and server failures.

💡 Tip:
The Node SDK is the backbone for all client SDKs — it’s what your web and mobile apps call through your API route when they need ephemeral session credentials.


Structure

Each reference page covers:

  1. A concise description of the class, interface, or constant.
  2. Code examples in TypeScript/JavaScript.
  3. Detailed parameter and return value tables.
  4. Notes about error handling and configuration.

Runtime requirements

RequirementDetails
Node.js ≥18Required for native fetch and AbortController.
Module systemWorks with ESM or CommonJS (import or require).
Network accessMust allow outbound HTTPS to https://api.orga-ai.com.
Environment variablesORGA_API_KEY (required).
DependenciesNone beyond Node’s built‑in APIs.

Next steps

Last updated on