Developer SDK

Kill passwords with 3 lines of code

Drop in our SDK. Let your users authenticate with their face. No password databases. No reset flows. No breaches. Just authentication that works.

Quick Start

Up and running in 5 minutes

1

Install the SDK

terminalbash
npm install @facein/sdk
2

Add the provider and authenticate

app/page.tsxtsx
import { FaceInProvider, useAuth } from '@facein/react';

function App() {
  return (
    <FaceInProvider apiKey="fi_live_...">
      <LoginPage />
    </FaceInProvider>
  );
}

function LoginPage() {
  const { authenticate, user, isLoading } = useAuth();

  if (user) return <Dashboard user={user} />;

  return (
    <button onClick={() => authenticate()}>
      Login with FaceIn
    </button>
  );
}
3

Verify on your backend

api/auth.tstypescript
// Verify a FaceIn authentication token
const response = await fetch('https://api.facein.id/v1/verify', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer fi_live_...',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    token: authToken,  // from client SDK
  }),
});

const { verified, user_id, confidence } = await response.json();
// { verified: true, user_id: "usr_abc123", confidence: 0.999 }
SDKs & Tools

Everything you need to go passwordless

⚛️

React / Next.js

First-class React hooks and components. Server-side session validation included.

📱

React Native

Native face detection with camera access. iOS and Android support.

🍎

Swift / Kotlin

Native SDKs for iOS and Android. Deep OS integration for biometric APIs.

🔗

REST API

Language-agnostic HTTP API. Works with any backend — Node, Python, Go, Rust.

🔔

Webhooks

Real-time event notifications. Auth success, failures, user lifecycle events.

📊

Admin Dashboard

Monitor auth events, manage users, configure security policies. Real-time analytics.

Real-time Events

Webhooks for everything

Get notified the instant something happens. Auth events, user lifecycle changes, security alerts — all delivered to your endpoint in real-time.

  • auth.success — user authenticated
  • auth.failed — authentication attempt failed
  • user.enrolled — new user enrolled biometrics
  • user.deleted — user removed their account
  • security.anomaly — unusual pattern detected
webhook-config.jsonjson
// Configure webhook for auth events
// POST https://api.facein.id/v1/webhooks
{
  "url": "https://yourapp.com/webhooks/facein",
  "events": [
    "auth.success",
    "auth.failed",
    "user.enrolled",
    "user.deleted"
  ]
}
API Reference

REST API endpoints

Simple, RESTful API. JSON in, JSON out.

POST/v1/authenticate
POST/v1/verify
GET/v1/users/:id
DELETE/v1/users/:id
POST/v1/webhooks
GET/v1/events
Developer Pricing

Start free. Scale as you grow.

No credit card required. No hidden fees.

Starter

Perfect for prototyping and small projects.

Free
  • Up to 1,000 MAU
  • All SDK features
  • Community support
  • Basic analytics
  • Standard API rate limits
Get Started Free
Most Popular

Growth

For production apps ready to scale.

$0.10/ MAU
  • Unlimited MAU
  • Priority support
  • Advanced analytics
  • Webhooks & events
  • Custom branding
  • 99.9% SLA
Get API Key

Enterprise

For organizations with advanced needs.

Custom
  • Volume discounts
  • Dedicated support engineer
  • Custom SLA (99.99%)
  • On-premise deployment
  • SOC 2 Type II report
  • Custom contracts
Contact Sales

Build something passwordless

Get your API key in 30 seconds. Start authenticating users today.

Get API Key — Free Forever