🎉 @facesmash/sdk v0.1.0 is now available on npm — Read the docs →
FaceSmash Docs
API Reference

Authentication

API key management and authentication methods

API Keys

Every request to the FaceSmash API requires an API key. Keys are scoped to your organization and can have different permission levels.

API key management is coming soon. During the beta period, contact support@everjust.co to obtain an API key.

Key Types

TypePrefixUse Case
Livefs_live_Production applications
Testfs_test_Development and testing (rate-limited)

Using Your API Key

Pass the API key in the Authorization header:

curl https://api.facesmash.app/v1/faces/detect \
  -H "Authorization: Bearer fs_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"image": "base64..."}'

Or in the SDK:

const facesmash = new FaceSmash({
  apiKey: 'fs_live_your_api_key',
});

Security Best Practices

  • Never expose live keys in client-side code — Use test keys for browser-side SDK operations and live keys only on your server
  • Rotate keys regularly — Generate new keys and deprecate old ones
  • Use environment variables — Store keys in .env files, never commit them to source control
  • Restrict by domain — Configure allowed origins for each key in the dashboard
# .env
FACESMASH_API_KEY=fs_live_your_api_key
// Server-side only
const facesmash = new FaceSmash({
  apiKey: process.env.FACESMASH_API_KEY,
});

Permissions

PermissionDescriptionLiveTest
faces:registerRegister new facesYesYes
faces:verifyVerify faces (1:1)YesYes
faces:identifyIdentify faces (1:N)YesYes
users:readRead user profilesYesYes
users:deleteDelete users and biometric dataYesNo
webhooks:manageCreate and manage webhooksYesNo

On this page