Token Validation
Server-side verification token validation.
Always validate verification tokens on your backend before processing sensitive actions. Call POST /v1/validate-token with the token and your Secret Key.
curl -X POST https://api.magentrust.ai/v1/validate-token \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-d '{"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'Check valid and optionally enforce a minimum entropyScore (e.g. ≥ 0.7) for high-value endpoints.