---
title: "Script triggers defined in the <span class=\"fr-alt\" title=\"You can edit the router configuration over REST at the config/router endpoint, or directly in the conf/router.json file.\">router configuration</span>"
description: Script triggers and available variables for PingIDM router configuration filters, including onRequest, onResponse, and onFailure
component: pingidm
version: 7.5
page_id: pingidm:scripting-guide:script-triggers-routerConfig
canonical_url: https://docs.pingidentity.com/pingidm/8.1/scripting-guide/script-triggers-routerConfig.html
llms_txt: https://docs.pingidentity.com/pingidm/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["Scripting", "Triggers", "Router", "Configuration"]
superseded_by: https://docs.pingidentity.com/pingidm/8.1/scripting-guide/script-triggers-routerConfig.html
---

# Script triggers defined in the router configuration *(tooltip: You can edit the router configuration over REST at the config/router endpoint, or directly in the conf/router.json file.)*

| Trigger      | Variable  |
| ------------ | --------- |
| `onFailure`  | exception |
| `onRequest`  | request   |
| `onResponse` | response  |
