Interactive API Explorer
Try the WalletGate API directly in your browser. No code required!
Try it Live
Use your test API key (wg_test_*) to make real API calls directly from this page.
- Click the green "Authorize" button
- In the
ApiKeyAuthfield, paste your key value exactly as-is (e.g.wg_test_abc123) - Ensure the server is set to
https://api.walletgate.app - Expand an endpoint and click "Try it out"
Before You Start (Auth Quick Guide)
To use "Try it out", provide credentials in the Authorize dialog:
Public API (/v1/*): ApiKeyAuth only
- Click Authorize → under "ApiKeyAuth" paste just your key value (example:
wg_test_abc123— do not includeBearer). - Don’t have a key? Create an account at https://walletgate.app. A test key (100/mo) is shown once after sign‑up.
- Click Authorize → under "ApiKeyAuth" paste just your key value (example:
Admin API (/admin/*): AdminSession cookie
- Sign in to the admin console (local or hosted). After logging in, open DevTools → Application → Cookies and copy the value of
wg_admin_session. - Click Authorize → under "AdminSession" paste that cookie value. For mutating admin calls, use the returned
csrfTokenfrom/admin/auth/loginor/admin/auth/statusas headerx-csrf-tokenwhen prompted.
- Sign in to the admin console (local or hosted). After logging in, open DevTools → Application → Cookies and copy the value of
Notes
- The docs UI only accepts test keys (
wg_test_*) for /v1/* calls. - Admin endpoints and production calls are disabled by default; enable them with the toggles above only when needed.
Where to find wg_admin_session (screenshot)
If you logged into the admin console in another tab, open DevTools → Application → Cookies, select the site, then copy the value of wg_admin_session.
AdminSession helper
Then paste into Authorize → AdminSession (cookie). For writes, include headerx-csrf-token returned by /admin/auth/login or /admin/auth/status.- Detect — grabs
wg_admin_sessionfrom cookies (same-origin only) - Paste/Copy — move cookie value to/from your clipboard safely
- Open Authorize — jumps you straight to Swagger’s auth modal
Quick Start
- Get Your API Key: Sign up at walletgate.app
- Click "Authorize" above (green button)
- Paste Your Key in
ApiKeyAuth(justwg_test_your_key_here— no Bearer prefix) - Try Endpoints: Expand any endpoint and click "Try it out"
Example Request
Expand the POST /v1/verify/sessions endpoint and try this payload:
{
"checks": [
{ "type": "age_over", "value": 18 },
{ "type": "residency_eu" }
]
}Need Help?
Troubleshooting CORS (Try It Out)
If the in‑browser "Try it out" fails with a CORS error, verify your Origin is allowed by the API.
Run this preflight check (replace YOUR_ORIGIN with your site, e.g. https://docs.walletgate.app):
curl -i -X OPTIONS \
https://api.walletgate.app/v1/verify/sessions \
-H "Origin: YOUR_ORIGIN" \
-H "Access-Control-Request-Method: POST" \
-H "Access-Control-Request-Headers: authorization,content-type"Expected:
- 200 OK or 204 No Content
- An
Access-Control-Allow-Origin: YOUR_ORIGINheader
If not present, add YOUR_ORIGIN to the backend CORS_ORIGINS environment variable and redeploy the API.