{
  "info": {
    "_postman_id": "33a36c7c-f45c-4780-a71c-9a67a119a6e6",
    "name": "ForgeRock Access Management Access Requests Scripts API",
    "description": "REST API for ForgeRock Access Management (AM) providing authentication, authorization, session management, and policy evaluation. Supports OAuth 2.0 and OpenID Connect flows, authentication trees/journeys, policy-based authorization decisions, and realm management.\n\nContact Support:\n Name: ForgeRock",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:42:18.000Z",
    "updatedAt": "2026-07-28T01:42:18.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-33a36c7c-f45c-4780-a71c-9a67a119a6e6"
  },
  "item": [
    {
      "name": "json",
      "item": [
        {
          "name": "realms",
          "item": [
            {
              "name": "root",
              "item": [
                {
                  "name": "realms",
                  "item": [
                    {
                      "name": "{realm}",
                      "item": [
                        {
                          "name": "scripts",
                          "item": [
                            {
                              "name": "{scriptId}",
                              "item": [
                                {
                                  "name": "ForgeRock Get a script",
                                  "id": "7f969f3e-289e-4693-8676-6cfac457ae6d",
                                  "protocolProfileBehavior": {
                                    "disableBodyPruning": true
                                  },
                                  "request": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "description": "(Required) CREST API version protocol header",
                                        "key": "Accept-API-Version",
                                        "value": "resource=2.0,protocol=1.0"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/json/realms/root/realms/:realm/scripts/:scriptId",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "json",
                                        "realms",
                                        "root",
                                        "realms",
                                        ":realm",
                                        "scripts",
                                        ":scriptId"
                                      ],
                                      "variable": [
                                        {
                                          "id": "4ac6ba60-294d-4ca6-8807-42172b761772",
                                          "key": "realm",
                                          "value": "root",
                                          "description": "(Required) The realm name"
                                        },
                                        {
                                          "id": "ebf310ca-e3fe-4b00-8d7d-86286e259688",
                                          "key": "scriptId",
                                          "value": "<uuid>",
                                          "description": "(Required) The script UUID"
                                        }
                                      ]
                                    },
                                    "description": "Retrieve a specific script by its UUID."
                                  },
                                  "response": [
                                    {
                                      "id": "48c1e022-85a0-4209-978e-4464b9c7f58b",
                                      "name": "The script",
                                      "originalRequest": {
                                        "method": "GET",
                                        "header": [
                                          {
                                            "description": "(Required) CREST API version protocol header",
                                            "key": "Accept-API-Version",
                                            "value": "resource=2.0,protocol=1.0"
                                          },
                                          {
                                            "key": "Accept",
                                            "value": "application/json"
                                          },
                                          {
                                            "description": "Added as a part of security scheme: apikey",
                                            "key": "iPlanetDirectoryPro",
                                            "value": "<API Key>"
                                          }
                                        ],
                                        "url": {
                                          "raw": "{{baseUrl}}/json/realms/root/realms/:realm/scripts/:scriptId",
                                          "host": [
                                            "{{baseUrl}}"
                                          ],
                                          "path": [
                                            "json",
                                            "realms",
                                            "root",
                                            "realms",
                                            ":realm",
                                            "scripts",
                                            ":scriptId"
                                          ],
                                          "variable": [
                                            {
                                              "key": "realm"
                                            },
                                            {
                                              "key": "scriptId"
                                            }
                                          ]
                                        }
                                      },
                                      "status": "OK",
                                      "code": 200,
                                      "_postman_previewlanguage": "json",
                                      "header": [
                                        {
                                          "key": "Content-Type",
                                          "value": "application/json"
                                        }
                                      ],
                                      "cookie": [],
                                      "responseTime": null,
                                      "body": "{\n  \"_id\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"description\": \"<string>\",\n  \"script\": \"<string>\",\n  \"language\": \"GROOVY\",\n  \"context\": \"OIDC_CLAIMS\",\n  \"createdBy\": \"<string>\",\n  \"creationDate\": \"<integer>\",\n  \"lastModifiedBy\": \"<string>\",\n  \"lastModifiedDate\": \"<integer>\"\n}",
                                      "createdAt": "2026-07-28T01:42:18.000Z",
                                      "updatedAt": "2026-07-28T01:42:18.000Z",
                                      "uid": "35240-48c1e022-85a0-4209-978e-4464b9c7f58b"
                                    },
                                    {
                                      "id": "c19bbd49-8ec9-46b8-9dfe-cb5a7faea238",
                                      "name": "Script not found",
                                      "originalRequest": {
                                        "method": "GET",
                                        "header": [
                                          {
                                            "description": "(Required) CREST API version protocol header",
                                            "key": "Accept-API-Version",
                                            "value": "resource=2.0,protocol=1.0"
                                          },
                                          {
                                            "key": "Accept",
                                            "value": "application/json"
                                          },
                                          {
                                            "description": "Added as a part of security scheme: apikey",
                                            "key": "iPlanetDirectoryPro",
                                            "value": "<API Key>"
                                          }
                                        ],
                                        "url": {
                                          "raw": "{{baseUrl}}/json/realms/root/realms/:realm/scripts/:scriptId",
                                          "host": [
                                            "{{baseUrl}}"
                                          ],
                                          "path": [
                                            "json",
                                            "realms",
                                            "root",
                                            "realms",
                                            ":realm",
                                            "scripts",
                                            ":scriptId"
                                          ],
                                          "variable": [
                                            {
                                              "key": "realm"
                                            },
                                            {
                                              "key": "scriptId"
                                            }
                                          ]
                                        }
                                      },
                                      "status": "Not Found",
                                      "code": 404,
                                      "_postman_previewlanguage": "json",
                                      "header": [
                                        {
                                          "key": "Content-Type",
                                          "value": "application/json"
                                        }
                                      ],
                                      "cookie": [],
                                      "responseTime": null,
                                      "body": "{\n  \"code\": \"<integer>\",\n  \"reason\": \"<string>\",\n  \"message\": \"<string>\"\n}",
                                      "createdAt": "2026-07-28T01:42:18.000Z",
                                      "updatedAt": "2026-07-28T01:42:18.000Z",
                                      "uid": "35240-c19bbd49-8ec9-46b8-9dfe-cb5a7faea238"
                                    }
                                  ],
                                  "createdAt": "2026-07-28T01:42:18.000Z",
                                  "updatedAt": "2026-07-28T01:42:18.000Z",
                                  "uid": "35240-7f969f3e-289e-4693-8676-6cfac457ae6d"
                                }
                              ],
                              "id": "9cadf7be-9a14-4a08-9f4b-af3623482734",
                              "createdAt": "2026-07-28T01:42:18.000Z",
                              "updatedAt": "2026-07-28T01:42:18.000Z",
                              "uid": "35240-9cadf7be-9a14-4a08-9f4b-af3623482734"
                            },
                            {
                              "name": "ForgeRock List scripts",
                              "id": "a66715e5-d8ed-4699-9401-e0adda038b80",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "method": "GET",
                                "header": [
                                  {
                                    "description": "(Required) CREST API version protocol header",
                                    "key": "Accept-API-Version",
                                    "value": "resource=2.0,protocol=1.0"
                                  },
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/json/realms/root/realms/:realm/scripts?_queryFilter=<string>",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "json",
                                    "realms",
                                    "root",
                                    "realms",
                                    ":realm",
                                    "scripts"
                                  ],
                                  "query": [
                                    {
                                      "description": "CREST query filter",
                                      "key": "_queryFilter",
                                      "value": "<string>"
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "id": "ddb84808-86bb-4a46-a84d-481a78402508",
                                      "key": "realm",
                                      "value": "root",
                                      "description": "(Required) The realm name"
                                    }
                                  ]
                                },
                                "description": "Query scripts configured in the specified realm."
                              },
                              "response": [
                                {
                                  "id": "63a94a4c-ae6b-4c3a-b8c8-5f0ca33fcf29",
                                  "name": "List of scripts",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "description": "(Required) CREST API version protocol header",
                                        "key": "Accept-API-Version",
                                        "value": "resource=2.0,protocol=1.0"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: apikey",
                                        "key": "iPlanetDirectoryPro",
                                        "value": "<API Key>"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/json/realms/root/realms/:realm/scripts?_queryFilter=<string>",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "json",
                                        "realms",
                                        "root",
                                        "realms",
                                        ":realm",
                                        "scripts"
                                      ],
                                      "query": [
                                        {
                                          "description": "CREST query filter",
                                          "key": "_queryFilter",
                                          "value": "<string>"
                                        }
                                      ],
                                      "variable": [
                                        {
                                          "key": "realm"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": "{\n  \"result\": [\n    {\n      \"_id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"script\": \"<string>\",\n      \"language\": \"GROOVY\",\n      \"context\": \"AUTHENTICATION_TREE_DECISION_NODE\",\n      \"createdBy\": \"<string>\",\n      \"creationDate\": \"<integer>\",\n      \"lastModifiedBy\": \"<string>\",\n      \"lastModifiedDate\": \"<integer>\"\n    },\n    {\n      \"_id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"script\": \"<string>\",\n      \"language\": \"GROOVY\",\n      \"context\": \"POLICY_CONDITION\",\n      \"createdBy\": \"<string>\",\n      \"creationDate\": \"<integer>\",\n      \"lastModifiedBy\": \"<string>\",\n      \"lastModifiedDate\": \"<integer>\"\n    }\n  ],\n  \"resultCount\": \"<integer>\"\n}",
                                  "createdAt": "2026-07-28T01:42:18.000Z",
                                  "updatedAt": "2026-07-28T01:42:18.000Z",
                                  "uid": "35240-63a94a4c-ae6b-4c3a-b8c8-5f0ca33fcf29"
                                }
                              ],
                              "createdAt": "2026-07-28T01:42:18.000Z",
                              "updatedAt": "2026-07-28T01:42:18.000Z",
                              "uid": "35240-a66715e5-d8ed-4699-9401-e0adda038b80"
                            }
                          ],
                          "id": "21f2ceca-6727-4e5d-b138-2badb13ae961",
                          "createdAt": "2026-07-28T01:42:18.000Z",
                          "updatedAt": "2026-07-28T01:42:18.000Z",
                          "uid": "35240-21f2ceca-6727-4e5d-b138-2badb13ae961"
                        }
                      ],
                      "id": "95c9e925-c617-4947-8aa2-b8860d350b1e",
                      "createdAt": "2026-07-28T01:42:18.000Z",
                      "updatedAt": "2026-07-28T01:42:18.000Z",
                      "uid": "35240-95c9e925-c617-4947-8aa2-b8860d350b1e"
                    }
                  ],
                  "id": "cc3104b4-f9ad-43bc-a139-2031a7392653",
                  "createdAt": "2026-07-28T01:42:18.000Z",
                  "updatedAt": "2026-07-28T01:42:18.000Z",
                  "uid": "35240-cc3104b4-f9ad-43bc-a139-2031a7392653"
                }
              ],
              "id": "40fde5d0-2e36-4d5f-9b51-4b438dee2e3d",
              "createdAt": "2026-07-28T01:42:18.000Z",
              "updatedAt": "2026-07-28T01:42:18.000Z",
              "uid": "35240-40fde5d0-2e36-4d5f-9b51-4b438dee2e3d"
            }
          ],
          "id": "52602964-792c-480f-890b-53aba75dc1f7",
          "createdAt": "2026-07-28T01:42:18.000Z",
          "updatedAt": "2026-07-28T01:42:18.000Z",
          "uid": "35240-52602964-792c-480f-890b-53aba75dc1f7"
        }
      ],
      "id": "cdd3c4da-3eb5-4149-9e0f-c08ff7c3c2f5",
      "createdAt": "2026-07-28T01:42:18.000Z",
      "updatedAt": "2026-07-28T01:42:18.000Z",
      "uid": "35240-cdd3c4da-3eb5-4149-9e0f-c08ff7c3c2f5"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "iPlanetDirectoryPro",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "deployment",
      "value": "am.example.com"
    },
    {
      "key": "baseUrl",
      "value": "https://{{deployment}}/am"
    }
  ]
}