SDKs & Libraries

Official and community libraries

SDKs coming soon

Official SDKs are in development. For now, use the REST API directly.

Official SDKs (coming)

Python

Soon
trustyn

Node.js

Soon
@trustyn/sdk

PHP

Soon
trustyn/trustyn-php

Go

Planned
github.com/trustyn/go

Python Example

python
import requests
import os

class TrustynClient:
    def __init__(self):
        self.api_key = os.environ.get("TRUSTYN_API_KEY")
        self.base_url = "https://api.trustyn.ai"
    
    def check(self, content):
        response = requests.post(
            f"{self.base_url}/v1/check",
            headers={"X-API-Key": self.api_key},
            json={"content": content}
        )
        return response.json()

# Usage
client = TrustynClient()
result = client.check("https://suspicious.xyz")
print(f"Verdict: {result['verdict']}")

OpenAPI Specification

Download our OpenAPI spec to generate clients in any language:

Download OpenAPI Spec