Where the API key goes
On your server, and nowhere else. The call that creates the verification is the only one that uses it. If the key reaches the browser, anyone can read it and create verifications in your name. You give the browser only theurl. It is single-purpose: it works for that verification
and nothing else.
What you store
Environments
You pick the host per environment, the same pair scoring uses. There is no/verifications/sandbox path: for identity you change the host, not the path.
Details: Environments. Summary:
A key from one environment does not work in the other, and verifications do not cross over between them.
The web app (
sandbox.fraudeg.com / fraudeg.com) is the dashboard, not the API.
The two ways to present the flow
Both use exactly the same
url and the same decision by webhook. Switching from one to the other does not
touch your backend.