Back to Documentation

API Reference

Complete REST API endpoints for document verification, credential issuance, and identity management.

Bearer token auth HTTPS only Rate limited
Node.js SDK
import { Authonex } from '@authonex/sdk';

const client = new Authonex({
  apiKey: process.env.AUTHONEX_API_KEY,
  environment: 'production', // or 'sandbox'
});

// Verify a document
const result = await client.decode.image({
  image: fs.readFileSync('./license-front.jpg'),
});

console.log(result.trustScore); // 0.95
console.log(result.decision);   // "allow"

// Issue a Verifiable Credential
const vc = await client.issue.vc({
  license_id: result.licenseId,
});

// Generate 60-second ephemeral QR token
const token = await client.issue.ephemeralToken({
  license_id: result.licenseId,
  ttl_seconds: 60,
});

// Get ZKP age proof (no DOB exposed)
const proof = await client.issue.selectiveDisclosure({
  license_id: result.licenseId,
  claim: 'age_over_21',
});

Authentication

POST/v1/auth/signup

Create a new account

POST/v1/auth/login

Authenticate and receive token