Swoop Check: verify on your server
One call before you accept the form.
Every form that carries a swoop-check field must be checked on your server before you trust it. A check is good once: a second verify of the same answer says already-used.
The call#
POST https://offers.kre8.fun/v1/check/verify
content-type: application/json (or application/x-www-form-urlencoded)
{ "secret": "swc_sk_YOUR_SECRET", "response": "<the swoop-check field>" }{ "success": true, "hostname": "shop.example.com", "tier": "normal", "issuedAt": "2026-11-25T10:00:00.000Z", "test": false, "errors": [] }
{ "success": false, "errors": ["already-used"] }Check success. If you listed hostnames for the key, hostname is the page the check ran on. tier says how much work the visitor was asked to do (low, normal, elevated, high): a high tier is not a refusal, the visitor did the extra work.
Examples#
// Node 18+ (fetch is built in). SWOOP_CHECK_SECRET is your secret key (swc_sk_...): keep it on the server.
export async function swoopCheck(token) {
const r = await fetch('https://offers.kre8.fun/v1/check/verify', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ secret: process.env.SWOOP_CHECK_SECRET, response: token }),
})
const j = await r.json()
return j.success === true // also: j.hostname, j.tier, j.errors
}
// in your route: if (!(await swoopCheck(req.body['swoop-check']))) return res.status(400).send('Please try again')<?php
function swoop_check(string $token): bool {
$ch = curl_init('https://offers.kre8.fun/v1/check/verify');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(['secret' => getenv('SWOOP_CHECK_SECRET'), 'response' => $token]),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 5,
]);
$body = curl_exec($ch);
curl_close($ch);
$j = json_decode((string) $body, true);
return is_array($j) && ($j['success'] ?? false) === true;
}
if (!swoop_check($_POST['swoop-check'] ?? '')) { http_response_code(400); exit('Please try again'); }import json, os, urllib.request
def swoop_check(token: str) -> bool:
req = urllib.request.Request(
'https://offers.kre8.fun/v1/check/verify',
data=json.dumps({'secret': os.environ['SWOOP_CHECK_SECRET'], 'response': token}).encode(),
headers={'content-type': 'application/json'},
method='POST',
)
with urllib.request.urlopen(req, timeout=5) as r:
return json.load(r).get('success') is True
# Flask: if not swoop_check(request.form.get('swoop-check', '')): abort(400)curl -s https://offers.kre8.fun/v1/check/verify \
-H 'content-type: application/json' \
-d '{"secret":"swc_sk_YOUR_SECRET","response":"<the swoop-check field>"}'Errors#
| Code | Meaning |
|---|---|
| missing-secret | No secret in the call. |
| invalid-secret | The secret is not known (or was rotated). |
| missing-response | The form had no swoop-check field: the script did not run, or the field was dropped. |
| invalid-response | The field is not a Swoop Check answer. |
| invalid-solution | The answer is wrong or was changed. |
| site-mismatch | The answer belongs to another site key. |
| expired | The check is older than 5 minutes. The box refreshes itself; a page left open long may need one more press. |
| already-used | This answer was checked before. |
| rate-limited | Too many verify calls for this site in a minute. |
Shopify#
Shopify’s own contact, newsletter and customer forms are sent to Shopify, so no server of yours can verify them: Swoop Check does not protect those forms, and the Swoop Ads Shopify extension does not pretend to. Use the extension’s Swoop Check block on a form that posts to your own app (an app proxy or your own backend), which then verifies as above.
Other tools#
The answer is in the ALTCHA v1 format, so ALTCHA’s own widget can also solve a Swoop Check challenge: point its challengeurl at https://offers.kre8.fun/v1/check/challenge?site=swc_pk_YOUR_SITE_KEY.