TrustyGorilla Docs
SDK

SDK Reference

Complete reference for the TrustyGorilla SDK.

TrustyGorilla

The main client class.

new TrustyGorilla(options: ClientOptions)

ClientOptions

PropertyTypeRequiredDescription
apiKeystringYesYour API key
baseUrlstringNoOverride API base URL
timeoutnumberNoRequest timeout (ms)

tg.verify(params)

Verify the trust level of a resource.

tg.verify(params: VerifyParams): Promise<VerifyResult>

VerifyParams

PropertyTypeRequiredDescription
resourcestringYesURL or identifier
typestringNoResource type hint

VerifyResult

PropertyTypeDescription
trustedbooleanWhether the resource is trusted
scorenumberTrust score (0–100)
reasonstringReason if not trusted

On this page