API Reference

import { BootstrapClient } from '@authgen-ai/sdk';

const client = new BootstrapClient({ baseUrl: 'https://bootstrap.ai', apiKey: process.env.BOOTSTRAP_API_KEY });

// 1) Verify a URL
const { data: v } = await client.verifyUrl('https://example.com/photo.jpg');

// 2) Share it for 24h
const { data: s } = await client.shareVerification({ id: v.id, ttlSeconds: 24*3600 });
console.log('Public URL:',   s.url || (client.baseUrl + '/verify/' + s.token));

// 3) Public read (no auth)
const { data: pub } = await client.getPublicVerification(s.token);
console.log(pub?.ok, pub?.verification?.status);