Product

Built to stop every attack

From credential stuffing to promo abuse, Bastion detects and blocks sophisticated fraud in real time with sub-millisecond latency.

Integration

A small change to your stack. A new perspective on risk.

One script tag on the frontend. One API call on the backend. Bastion collects behavioral signals invisibly and returns a decision with the signals that explain it.

JavaScript / TypeScript SDK
Go SDK
Python SDK
Rust SDK
app.ts
import Bastion from '@bastionsecurity/sdk';

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

// On form submit or checkout
const token = await bastion.getToken();

// Submit an event from your browser
const result = await bastion.classify(token, {
  event_type: 'signup', account_id: 'account_123'
});
// => { classification: 'human', riskScore: 3, signals: [] }