Castle Identity Token | Risk Assessment API

Generate valid Castle identity tokens for risk assessment. Handle Castle-protected authentication flows.

The Challenge

Identity Risk Assessment

Castle provides real-time risk assessment that evaluates device and behavioral signals to block suspicious authentication attempts.

Our Solution

Identity Token Generation

Our API generates valid Castle identity tokens that pass risk assessment for authentication flows.

  • Request token generation
  • App ID support
  • Risk score optimization
  • Authentication flow support

Technical Details

Key parameters for integration.

Headercastle-token
Challenge TypeRisk Assessment
Common Errors Solved
403 Forbidden200 (Risk Block)

Integration is easy

Stop fighting with headless browsers. Get the cookie you need in a single API call and attach it to your HTTP client.

integration.js
const response = await fetch('/v1/tasks/submit', {
  method: 'POST',
  body: JSON.stringify({
    service: 'castle',
    url: 'https://example.com'
  })
});

// Returns valid castle-token