TrustShield

Developer documentation

Examples

Copyable examples for the most common TrustShield integration paths.

URL Trust

Verify URL

Evaluates a URL for phishing, suspicious redirects, domain risk, and trust indicators.

curl $NEXT_PUBLIC_API_BASE_URL/api/public/analyze/url \
  -H "Authorization: Bearer $TRUSTSHIELD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/login"}'

QR Trust

Verify QR

Analyzes QR payloads before users open links, payment intents, or embedded actions.

curl $NEXT_PUBLIC_API_BASE_URL/api/public/analyze/qr \
  -H "Authorization: Bearer $TRUSTSHIELD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"qrText":"upi://pay?pa=merchant@example&am=499"}'

Message Trust

Verify Message

Detects scam intent, urgency patterns, impersonation attempts, and embedded risky links.

curl $NEXT_PUBLIC_API_BASE_URL/api/public/analyze/message \
  -H "Authorization: Bearer $TRUSTSHIELD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"Your KYC expires today. Verify at https://example.com"}'

Payment Trust

Verify Payment

Checks payment intents and suspicious UPI-style flows before users approve a transfer.

curl $NEXT_PUBLIC_API_BASE_URL/api/public/analyze/payment \
  -H "Authorization: Bearer $TRUSTSHIELD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paymentUri":"upi://pay?pa=unknown@example&am=2499"}'