From zero to verified in 5 minutes
A four-step guide to send and verify your first OTP via the Authentica API.
1
Create your free account
Sign up at portal.authentica.sa with no credit card. You'll get 100 free verifications to test all channels.
2
Create an API key
Open Settings → API Keys in the dashboard and create a new key. Store it as AUTHENTICA_API_KEY in your environment — never commit it to your repo.
3
Install the SDK
Pick the SDK that fits your stack. The Node.js example below works with any TypeScript or JavaScript server.
bash
npm install @authentica/sdk4
Send and verify your first OTP
Just two calls: one to send the code, one to verify what the user entered. That's it — you're in production.
Node.js
import { Authentica } from "@authentica/sdk";
const client = new Authentica({
apiKey: process.env.AUTHENTICA_API_KEY!,
});
// 1. Send the OTP
const { id } = await client.otp.send({
channel: "sms",
phone: "+9665XXXXXXXX",
});
// 2. Verify the code the user typed
const result = await client.otp.verify({
id,
code: "123456",
});
console.log(result.status); // "verified"