SDK
Quickstart
Make your first TrustyGorilla SDK call in minutes.
1. Install the SDK
npm install @trustygorilla/sdk2. Create a client
import { TrustyGorilla } from '@trustygorilla/sdk';
const tg = new TrustyGorilla({ apiKey: process.env.TRUSTYGORILLA_API_KEY });3. Verify a resource
const result = await tg.verify({
resource: 'https://example.com/document.pdf',
type: 'document',
});
console.log(result.trusted); // true | false
console.log(result.score); // 0–1004. Handle the response
if (result.trusted) {
console.log('Resource is trusted');
} else {
console.log('Reason:', result.reason);
}Next: explore the full API Reference.