{
  "info": {
    "_postman_id": "5e075082-c0eb-48e2-95cc-696197a97e2a",
    "name": "Commvault Automation Agents Authentication 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:10.000Z",
    "updatedAt": "2026-07-28T01:25:10.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-5e075082-c0eb-48e2-95cc-696197a97e2a"
  },
  "item": [
    {
      "name": "Login",
      "item": [
        {
          "name": "Commvault Authenticate and obtain auth token",
          "id": "b06b77eb-3124-434a-9ee3-094fdd74c597",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"<string>\",\n  \"password\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/Login",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "Login"
              ]
            },
            "description": "Authenticates a user with username and password credentials and returns an authentication token (QSDK token) for subsequent API requests. The token must be included in the Authtoken header of all subsequent requests."
          },
          "response": [
            {
              "id": "6327ee1e-3e3a-44c8-9de4-46c2c6de17c6",
              "name": "Authentication successful",
              "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  \"username\": \"<string>\",\n  \"password\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/Login",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Login"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"token\": \"<string>\",\n  \"userId\": \"<integer>\",\n  \"userName\": \"<string>\",\n  \"aliasName\": \"<string>\",\n  \"loginAttempts\": \"<integer>\",\n  \"remainingLockTime\": \"<integer>\"\n}",
              "createdAt": "2026-07-28T01:25:10.000Z",
              "updatedAt": "2026-07-28T01:25:10.000Z",
              "uid": "35240-6327ee1e-3e3a-44c8-9de4-46c2c6de17c6"
            },
            {
              "id": "8489f9a5-5b0c-44cb-9985-3c160fe39986",
              "name": "Invalid credentials",
              "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  \"username\": \"<string>\",\n  \"password\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/Login",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Login"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T01:25:10.000Z",
              "updatedAt": "2026-07-28T01:25:10.000Z",
              "uid": "35240-8489f9a5-5b0c-44cb-9985-3c160fe39986"
            }
          ],
          "createdAt": "2026-07-28T01:25:10.000Z",
          "updatedAt": "2026-07-28T01:25:10.000Z",
          "uid": "35240-b06b77eb-3124-434a-9ee3-094fdd74c597"
        }
      ],
      "id": "11ebe32b-421a-4cc6-af13-99be5ff698a1",
      "createdAt": "2026-07-28T01:25:10.000Z",
      "updatedAt": "2026-07-28T01:25:10.000Z",
      "uid": "35240-11ebe32b-421a-4cc6-af13-99be5ff698a1"
    },
    {
      "name": "Logout",
      "item": [
        {
          "name": "Commvault Invalidate auth token",
          "id": "4c7ce550-38cc-4e58-93bb-e02de2522477",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/Logout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "Logout"
              ]
            },
            "description": "Logs out the current user session and invalidates the authentication token."
          },
          "response": [
            {
              "id": "24ab3a5f-3eb7-470c-8af8-2357dc72ff32",
              "name": "Logout successful",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authtoken",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/Logout",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "Logout"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T01:25:10.000Z",
              "updatedAt": "2026-07-28T01:25:10.000Z",
              "uid": "35240-24ab3a5f-3eb7-470c-8af8-2357dc72ff32"
            }
          ],
          "createdAt": "2026-07-28T01:25:10.000Z",
          "updatedAt": "2026-07-28T01:25:10.000Z",
          "uid": "35240-4c7ce550-38cc-4e58-93bb-e02de2522477"
        }
      ],
      "id": "e8dfaeef-f3bf-4304-a579-7c6a6bf24f13",
      "createdAt": "2026-07-28T01:25:10.000Z",
      "updatedAt": "2026-07-28T01:25:10.000Z",
      "uid": "35240-e8dfaeef-f3bf-4304-a579-7c6a6bf24f13"
    }
  ],
  "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"
    }
  ]
}