{
  "info": {
    "_postman_id": "1f9fc79c-1a12-4c05-9f36-c24a6f2bce6f",
    "name": "Commvault Automation Agents Scripts API",
    "description": "API for automating Commvault workflows, job scheduling, and policy management. Enables programmatic creation and execution of custom workflows, management of schedule policies, and configuration of automated operations for data protection environments.\n\nContact Support:\n Name: Commvault Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:25:21.000Z",
    "updatedAt": "2026-07-28T01:25:22.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-1f9fc79c-1a12-4c05-9f36-c24a6f2bce6f"
  },
  "item": [
    {
      "name": "Script",
      "item": [
        {
          "name": "{scriptId}",
          "item": [
            {
              "name": "Action",
              "item": [
                {
                  "name": "Execute",
                  "item": [
                    {
                      "name": "Commvault Execute an automation script",
                      "id": "d943521d-f6e0-4369-b3e4-0a5a736ae00b",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"inputParameters\": {\n    \"ine5d\": \"<string>\"\n  }\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/Script/:scriptId/Action/Execute",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "Script",
                            ":scriptId",
                            "Action",
                            "Execute"
                          ],
                          "variable": [
                            {
                              "id": "deb905e4-093e-4afe-b81e-af7396aaea47",
                              "key": "scriptId",
                              "value": "<integer>",
                              "description": "(Required) Unique identifier for the automation script"
                            }
                          ]
                        },
                        "description": "Triggers the execution of an automation script with optional input parameters."
                      },
                      "response": [
                        {
                          "id": "33a88cdd-1d5e-4c34-98ce-fb7d4a5e3ea7",
                          "name": "Script execution started",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Authtoken",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"inputParameters\": {\n    \"ine5d\": \"<string>\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/Script/:scriptId/Action/Execute",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "Script",
                                ":scriptId",
                                "Action",
                                "Execute"
                              ],
                              "variable": [
                                {
                                  "key": "scriptId"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"jobId\": \"<integer>\",\n  \"errorCode\": \"<integer>\",\n  \"errorMessage\": \"<string>\"\n}",
                          "createdAt": "2026-07-28T01:25:22.000Z",
                          "updatedAt": "2026-07-28T01:25:22.000Z",
                          "uid": "35240-33a88cdd-1d5e-4c34-98ce-fb7d4a5e3ea7"
                        },
                        {
                          "id": "ad883922-8a0d-4365-8bb1-8c9d301d4a99",
                          "name": "Invalid input parameters",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Authtoken",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"inputParameters\": {\n    \"ine5d\": \"<string>\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/Script/:scriptId/Action/Execute",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "Script",
                                ":scriptId",
                                "Action",
                                "Execute"
                              ],
                              "variable": [
                                {
                                  "key": "scriptId"
                                }
                              ]
                            }
                          },
                          "status": "Bad Request",
                          "code": 400,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T01:25:22.000Z",
                          "updatedAt": "2026-07-28T01:25:22.000Z",
                          "uid": "35240-ad883922-8a0d-4365-8bb1-8c9d301d4a99"
                        },
                        {
                          "id": "3caffbb4-4f9c-4243-80a7-5836fb8ddd75",
                          "name": "Unauthorized",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Authtoken",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"inputParameters\": {\n    \"ine5d\": \"<string>\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/Script/:scriptId/Action/Execute",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "Script",
                                ":scriptId",
                                "Action",
                                "Execute"
                              ],
                              "variable": [
                                {
                                  "key": "scriptId"
                                }
                              ]
                            }
                          },
                          "status": "Unauthorized",
                          "code": 401,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T01:25:22.000Z",
                          "updatedAt": "2026-07-28T01:25:22.000Z",
                          "uid": "35240-3caffbb4-4f9c-4243-80a7-5836fb8ddd75"
                        },
                        {
                          "id": "e3f69f9c-6cab-4365-b70f-7e56339d8d8d",
                          "name": "Script not found",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "Authtoken",
                                "value": "<API Key>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"inputParameters\": {\n    \"ine5d\": \"<string>\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/Script/:scriptId/Action/Execute",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "Script",
                                ":scriptId",
                                "Action",
                                "Execute"
                              ],
                              "variable": [
                                {
                                  "key": "scriptId"
                                }
                              ]
                            }
                          },
                          "status": "Not Found",
                          "code": 404,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T01:25:22.000Z",
                          "updatedAt": "2026-07-28T01:25:22.000Z",
                          "uid": "35240-e3f69f9c-6cab-4365-b70f-7e56339d8d8d"
                        }
                      ],
                      "createdAt": "2026-07-28T01:25:22.000Z",
                      "updatedAt": "2026-07-28T01:25:22.000Z",
                      "uid": "35240-d943521d-f6e0-4369-b3e4-0a5a736ae00b"
                    }
                  ],
                  "id": "66b77490-48e3-4c84-a112-3caac1197932",
                  "createdAt": "2026-07-28T01:25:22.000Z",
                  "updatedAt": "2026-07-28T01:25:22.000Z",
                  "uid": "35240-66b77490-48e3-4c84-a112-3caac1197932"
                }
              ],
              "id": "d5e8ec36-80c6-49be-9495-1150b1cd7b3e",
              "createdAt": "2026-07-28T01:25:22.000Z",
              "updatedAt": "2026-07-28T01:25:22.000Z",
              "uid": "35240-d5e8ec36-80c6-49be-9495-1150b1cd7b3e"
            },
            {
              "name": "Commvault Get script details",
              "id": "eae64e4e-eab7-430d-84d6-1d7c68f4547b",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/Script/:scriptId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Script",
                    ":scriptId"
                  ],
                  "variable": [
                    {
                      "id": "97d5815f-9169-430d-b1b1-60728f0c7ad9",
                      "key": "scriptId",
                      "value": "<integer>",
                      "description": "(Required) Unique identifier for the automation script"
                    }
                  ]
                },
                "description": "Retrieves the details of a specific automation script, including its content, associated triggers, and execution history."
              },
              "response": [
                {
                  "id": "aed78298-0f1d-4f7d-ab21-e17bcd8626a8",
                  "name": "Script details",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authtoken",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/Script/:scriptId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "Script",
                        ":scriptId"
                      ],
                      "variable": [
                        {
                          "key": "scriptId"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"scriptId\": \"<integer>\",\n  \"scriptName\": \"<string>\",\n  \"description\": \"<string>\",\n  \"scriptType\": \"Python\",\n  \"content\": \"<string>\",\n  \"enabled\": \"<boolean>\"\n}",
                  "createdAt": "2026-07-28T01:25:22.000Z",
                  "updatedAt": "2026-07-28T01:25:22.000Z",
                  "uid": "35240-aed78298-0f1d-4f7d-ab21-e17bcd8626a8"
                },
                {
                  "id": "f8ea3d73-9a9f-474c-aa95-0fc704e2d5b3",
                  "name": "Unauthorized",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authtoken",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/Script/:scriptId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "Script",
                        ":scriptId"
                      ],
                      "variable": [
                        {
                          "key": "scriptId"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:25:22.000Z",
                  "updatedAt": "2026-07-28T01:25:22.000Z",
                  "uid": "35240-f8ea3d73-9a9f-474c-aa95-0fc704e2d5b3"
                },
                {
                  "id": "ca67020a-98ab-4afc-bea6-f02229fe9d1a",
                  "name": "Script not found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authtoken",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/Script/:scriptId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "Script",
                        ":scriptId"
                      ],
                      "variable": [
                        {
                          "key": "scriptId"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:25:22.000Z",
                  "updatedAt": "2026-07-28T01:25:22.000Z",
                  "uid": "35240-ca67020a-98ab-4afc-bea6-f02229fe9d1a"
                }
              ],
              "createdAt": "2026-07-28T01:25:22.000Z",
              "updatedAt": "2026-07-28T01:25:22.000Z",
              "uid": "35240-eae64e4e-eab7-430d-84d6-1d7c68f4547b"
            }
          ],
          "id": "b2c64e1a-df18-4e14-a003-d6ada0cb5d11",
          "createdAt": "2026-07-28T01:25:22.000Z",
          "updatedAt": "2026-07-28T01:25:22.000Z",
          "uid": "35240-b2c64e1a-df18-4e14-a003-d6ada0cb5d11"
        },
        {
          "name": "Commvault List automation scripts",
          "id": "e3968f38-9383-460f-9f62-37849d566410",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/Script",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "Script"
              ]
            },
            "description": "Retrieves a list of all automation scripts registered in the CommServe, including pre/post backup scripts and custom automation scripts."
          },
          "response": [
            {
              "id": "445fbe2c-91bf-4cef-863a-19a1a4b9190f",
              "name": "List of scripts",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authtoken",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/Script",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Script"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"scripts\": [\n    {\n      \"scriptId\": \"<integer>\",\n      \"scriptName\": \"<string>\",\n      \"description\": \"<string>\",\n      \"scriptType\": \"PowerShell\",\n      \"content\": \"<string>\",\n      \"enabled\": \"<boolean>\"\n    },\n    {\n      \"scriptId\": \"<integer>\",\n      \"scriptName\": \"<string>\",\n      \"description\": \"<string>\",\n      \"scriptType\": \"Shell\",\n      \"content\": \"<string>\",\n      \"enabled\": \"<boolean>\"\n    }\n  ]\n}",
              "createdAt": "2026-07-28T01:25:22.000Z",
              "updatedAt": "2026-07-28T01:25:22.000Z",
              "uid": "35240-445fbe2c-91bf-4cef-863a-19a1a4b9190f"
            },
            {
              "id": "d6eef68c-574e-4ccd-8145-1be7e86741dc",
              "name": "Unauthorized",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authtoken",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/Script",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Script"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T01:25:22.000Z",
              "updatedAt": "2026-07-28T01:25:22.000Z",
              "uid": "35240-d6eef68c-574e-4ccd-8145-1be7e86741dc"
            }
          ],
          "createdAt": "2026-07-28T01:25:22.000Z",
          "updatedAt": "2026-07-28T01:25:22.000Z",
          "uid": "35240-e3968f38-9383-460f-9f62-37849d566410"
        }
      ],
      "id": "7a43d97f-a874-417e-976c-6c304d447824",
      "createdAt": "2026-07-28T01:25:22.000Z",
      "updatedAt": "2026-07-28T01:25:22.000Z",
      "uid": "35240-7a43d97f-a874-417e-976c-6c304d447824"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "Authtoken",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "webserver",
      "value": "webconsole.example.com"
    },
    {
      "key": "baseUrl",
      "value": "https://{{webserver}}/webconsole/api"
    }
  ]
}