/
Contact usSee pricingStart building
    Introduction
    Device Fingerprinting
      Fingerprint Lookup
      Fingerprint Lookup (Deprecated)
      Set Rule
      Get Rules
    Errors
      Overview
      Error object
      400
      401
      403
      404
      408
      499
      500
      503
Get support on SlackVisit our developer forum

Contact us

Fraud and Risk Prevention

/

API reference

/

Device Fingerprinting

/

Get Rules

Get Rules

POST
https://telemetry.stytch.com/v1/rules/list

Get all rules that have been set for your project.


Body parameters


cursor string

limit int

Response fields


request_id string

status_code int

rules array[objects]

next_cursor string
const stytch = require('stytch');

const client = new stytch.Client({
  project_id: 'PROJECT_ID',
  secret: 'SECRET',
});

const params = {
  limit: 10,
};

client.fraud.rules.list(params)
  .then(resp => { console.log(resp) })
  .catch(err => { console.log(err) });
RESPONSE
200
​
{
  "next_cursor": "",
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "rules": [
    {
      "action": "CHALLENGE",
      "browser_id": "",
      "visitor_id": "visitor-6139cbcc-4dda-4b1f-b1c0-13c08ec64d72",
      "visitor_fingerprint": "",
      "browser_fingerprint": "",
      "hardware_fingerprint": "",
      "network_fingerprint": "",
      "asn": "",
      "cidr_block":,
      "country_code": "",
      "description": "",
      "rule_type": "VISITOR_ID",
      "created_at": "2024-01-01T00:00:00Z",
      "expires_at": "2033-01-01T00:00:00Z",
      "last_updated_at": "2025-01-01T00:00:00Z"
    }
  ],
  "status_code": 200
}