Auth0 · Schema

Auth0 Rule

JSON Schema for Auth0 Rule entity, extracted from the Auth0 Management API OpenAPI v2.0 spec (component: Rule).

AI AgentsAuthenticationAuthorizationFGAIdentity ManagementMCPOktaOpenID ConnectSAMLSecuritySCIM

Properties

Name Type Description
name string Name of this rule.
id string ID of this rule.
enabled boolean Whether the rule is enabled (true), or disabled (false).
script string Code to be executed when this rule runs.
order number Order that this rule should execute in relative to other rules. Lower-valued rules execute first.
stage string Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`.
View JSON Schema on GitHub

JSON Schema

auth0-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/auth0/main/json-schema/auth0-rule-schema.json",
  "title": "Auth0 Rule",
  "description": "JSON Schema for Auth0 Rule entity, extracted from the Auth0 Management API OpenAPI v2.0 spec (component: Rule).",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of this rule.",
      "default": "rule_1"
    },
    "id": {
      "type": "string",
      "description": "ID of this rule.",
      "default": "con_0000000000000001"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the rule is enabled (true), or disabled (false).",
      "default": true
    },
    "script": {
      "type": "string",
      "description": "Code to be executed when this rule runs.",
      "default": "function (user, context, callback) {\n  callback(null, user, context);\n}"
    },
    "order": {
      "type": "number",
      "description": "Order that this rule should execute in relative to other rules. Lower-valued rules execute first.",
      "default": 1
    },
    "stage": {
      "type": "string",
      "description": "Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`.",
      "default": "login_success"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/auth0-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.