REST API
Authentication
How to authenticate requests to the TrustyGorilla REST API.
API Keys
All API requests must include your API key in the Authorization header as a Bearer token.
Authorization: Bearer tg_live_xxxxxxxxxxxxGetting an API key
- Sign in to the TrustyGorilla Dashboard
- Navigate to Settings → API Keys
- Click Create new key
Security
- Never expose your API key in client-side code or public repositories.
- Use environment variables to inject the key at runtime.
- Rotate keys immediately if they are compromised.
Example request
curl https://api.trustygorilla.com/v1/verify \
-H "Authorization: Bearer tg_live_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"resource": "https://example.com/doc.pdf"}'