> ## Documentation Index
> Fetch the complete documentation index at: https://docs.authentica.sa/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript SDK

> Integrate Authentica verification services into your Node.js applications with a typed, server-side SDK.

The Authentica TypeScript SDK lets your backend call Authentica with typed methods instead of hand-built HTTP requests. It handles authentication, request formatting, response checks and typed errors for you.

> [!NOTE]
>
> **Beta:** The TypeScript SDK is currently in beta. Test your integration in a staging environment before using it in production.

```bash theme={null}
npm install @authenticasa/sdk
```

| | |
| - | - |
| **Package** | [`@authenticasa/sdk`](https://www.npmjs.com/package/@authenticasa/sdk) |
| **Version** | 0.1.0 |
| **Runtime** | Node.js 22 or later |
| **Modules** | ES modules and CommonJS, with TypeScript declarations |
| **License** | MIT |

> [!WARNING]
>
> **Server-side only.** Never expose your Authentica API key in frontend or browser code. Your web or mobile app should call your backend, and your backend calls Authentica.

## Get started

> [card] [Installation & Quick Start](https://docs.authentica.sa/sdk/typescript/quickstart.md)
>
> Install the SDK and make your first request in under five minutes.

## Services

> [card] [OTP](https://docs.authentica.sa/sdk/typescript/otp.md)
>
> Send and verify one-time passwords by SMS, WhatsApp or email.

> [card] [Face Verification](https://docs.authentica.sa/sdk/typescript/face-verification.md)
>
> Compare a reference face image with a real-time image.

> [card] [Voice Verification](https://docs.authentica.sa/sdk/typescript/voice-verification.md)
>
> Compare a reference voice sample with a real-time recording.

> [card] [Balance](https://docs.authentica.sa/sdk/typescript/balance.md)
>
> Check your current credit balance.

## Build reliably

> [card] [Error Handling](https://docs.authentica.sa/sdk/typescript/error-handling.md)
>
> Handle typed SDK errors, rate limits and timeouts.

> [card] [Security & Best Practices](https://docs.authentica.sa/sdk/typescript/security-best-practices.md)
>
> Keep API keys, user data and biometric data safe.

> [!NOTE]
>
> Prefer calling the REST API directly? See the [API Reference](https://docs.authentica.sa/api-reference/balance-monitoring/get-current-balance.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.