Get Rules

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

Get all rules that have been set for your project.


Body parameters


cursorstring

limitint

Response fields


request_idstring

status_codeint

rulesarray[objects]

next_cursorstring
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
{
  "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
}