Integrations

Works with your stack

Connect browser signals and server decisions to your application.

Integration options

Browser JavaScript / TypeScript

@bastionsecurity/sdk

Collect device and behavioral signals, receive a fingerprint token, and submit events.

Server REST API

/api/antibot/verify

Verify tokens and classify requests from Node.js, Go, Python, or any HTTP client.

Platform Integrations

Browser applications

Install the JavaScript SDK and configure your site key and allowed origins.

Server applications

Use authenticated REST requests with your site key and private secret.

Integration diagnostics

Run a real test decision from your workspace and inspect the recorded event.

FROM YOUR FIRST SIGNAL

A few lines.
A clearer picture.

Collect browser signals with the SDK, then verify the token on your server. Your workspace provides examples configured for your site.

Open your integration guide →
app.ts
import Bastion from '@bastionsecurity/sdk';

const bastion = new Bastion({
  siteKey: 'YOUR_PUBLIC_SITE_KEY',
  endpoint: 'https://api.bastionsecurity.io/api/antibot',
});

// Collect a token and submit your business event.
const token = await bastion.getToken();
const decision = await bastion.classify(token, {
  event_type: 'signup',
  account_id: 'account_123',
});

console.log(decision.classification, decision.riskScore);