Cipher SDK

Score every survey response for fraud from your own stack. Install the package, add a key, and validate.

Developer quickstart

The Cipher SDK lets you validate survey responses, detect fraud, and keep data quality high from your own code. Install it, add your API key, and score your first response in minutes.

pnpm add @surbee/cipher
typescript
import { Cipher } from '@surbee/cipher'

const cipher = new Cipher({ apiKey: process.env.CIPHER_API_KEY })

// Score your first survey response
const result = await cipher.validate({
  responses: [
    { question: 'Would you recommend us?', answer: 'Yes' },
  ],
  behavioralMetrics: tracker.getMetrics(),
})

console.log(result.score)          // 0.94
console.log(result.recommendation) // 'keep'

What you can do with Cipher

  • Validate any response.

    Pass survey responses with behavioral metrics. Get instant quality scores, recommendations, and detailed check results.

  • Tune tiers and thresholds.

    Pick a validation tier from 1 to 5 and set your own score thresholds for auto-reject and review. Higher tiers add AI-content, VPN, and fraud-ring checks.

  • Batch and fraud-ring detection.

    Validate many responses in one call. Turn on cross-respondent analysis (tier 5) to surface coordinated fraud rings across the whole batch.

  • Fast checks, no AI.

    Tiers 1 and 2 are free. They run the behavioral, timing, device, and content checks with no AI models, so they return in milliseconds.

Ready to screen your first response?

Cipher is incredibly fast and incredibly cheap. Score responses in microseconds, pay only for what you screen, and top up with credits that never expire.