https://app.spoofsense.ai/verify runs the same capture flow as the Web SDK, served from SpoofSense’s origin. Create the session on your backend, then redirect the user to the page or embed it in an iframe — no frontend SDK to install or maintain.
The client token always travels in the URL fragment (
#token=…), never a query parameter. Fragments don’t reach servers, so the token never lands in access logs.Redirect Mode
After creating the session on your backend, build the hosted URL and send the user there:return_url with the following query parameters:
spoofsense_status can also be cancelled or error. The query string is a hint, not proof — always read the authoritative decision server-side using your secret key.
Embed (iframe) Mode
Embed the capture flow directly in your page using an iframe. Theallow="camera" attribute is required, or the browser blocks capture inside the frame:
PostMessage Events
The hosted page posts these events to your parent window in iframe mode:capturedFrame rides the message only because &origin= named your page as the target. In redirect mode the image isn’t carried in the redirect — your backend retrieves it from the media endpoint instead.