Client Usage
Client Usage
Use Amarsia from your application using our SDKs or direct REST API calls.
Overview
You can interact with Amarsia in two ways:
- JavaScript SDK — the recommended approach for Node.js and browser environments
- REST API — direct HTTP calls from any language or environment
In this section
JavaScript SDK
Install and use the official JavaScript/TypeScript SDK.
Error Handling
Handle errors and retries reliably in your integration.
Choosing the right client
Use the JavaScript SDK if you're building in Node.js or a frontend framework — it handles authentication, serialization, and type safety automatically.
Use the REST API directly if you're working in another language, building a lightweight integration, or want explicit control over HTTP behavior.