Integrating Goust
Two calls. The widget mounts in your page and produces a token, and your backend asks Goust whether that token is worth trusting. Nothing is installed on your server: verification is one JSON POST.
Every snippet in these pages is built from a sample sitekey. Replace it with the one on your dashboard, and read your site secret from your environment — it is a server credential and must never reach the browser.
The two halves
Section titled “The two halves”What comes back
Section titled “What comes back”A grant is success: true; a refusal names its errors. Both answer 200, because “don’t trust this token” is an answer to
the question you asked rather than a failed request.
Reading the answer walks through the shape.
Before you go live
Section titled “Before you go live”Keep the secret where the backend snippet expects it — in your server’s environment, never in a page — and verify every token on your server: a token nobody verifies protects nothing. Sitekeys and secrets and Sites and domains cover the rest.