---
updatedAt: 2026-05-28T08:16:45.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# List software versions

This endpoint returns a list of software versions.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "SoftwareVersion": {
        "description": "Represents a software version.",
        "properties": {
          "attributes": {
            "properties": {
              "created-at": {
                "description": "The resource creation timestamp.",
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "default": {
                "default": false,
                "description": "Default version to use when workspace or policy-group creation request\ndoesn't specify a version.",
                "readOnly": true,
                "type": "boolean"
              },
              "deprecated": {
                "default": false,
                "description": "Indicates that this software-version is deprecated,\nand thus not available for new workspaces or policy-groups.",
                "type": "boolean"
              },
              "error": {
                "description": "This field contains the error description,\nwhen this software-version's status is `failed`.",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "hash": {
                "description": "Container image SHA256 hash.",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "image": {
                "description": "Reference to a container image in OCI registry.",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "latest": {
                "default": false,
                "description": "Indicates that this software-version is the latest one\nfor the given software-type.",
                "readOnly": true,
                "type": "boolean"
              },
              "software-type": {
                "description": "The type of the software.",
                "enum": [
                  "opa",
                  "terraform",
                  "infracost",
                  "opentofu",
                  "terragrunt",
                  "checkov",
                  "wiz"
                ],
                "type": "string"
              },
              "status": {
                "description": "The Docker image status.",
                "enum": [
                  "pending",
                  "failed",
                  "active",
                  "not-available"
                ],
                "readOnly": true,
                "type": "string"
              },
              "version": {
                "description": "Semantic Version.",
                "maxLength": 255,
                "type": "string"
              }
            },
            "required": [
              "version",
              "software-type",
              "image"
            ],
            "type": "object"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "type": {
            "enum": [
              "software-versions"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "type": "object"
      },
      "SoftwareVersionListingDocument": {
        "description": "JSON:API Document Listing\n\nsee: https://jsonapi.org/format/#document-structure",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/SoftwareVersion"
            },
            "type": "array"
          },
          "included": {
            "items": {
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "readOnly": true,
            "type": "object"
          },
          "meta": {
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "API-Key": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Scalr IACP API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "title": "Scalr IACP API",
    "version": "unversioned"
  },
  "openapi": "3.0.0",
  "paths": {
    "/software-versions": {
      "get": {
        "description": "This endpoint returns a list of software versions.\n",
        "operationId": "list_software_versions",
        "parameters": [
          {
            "description": "The search string. Supports search by version or image of software version.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page[number]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page size",
            "in": "query",
            "name": "page[size]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by id.",
            "in": "query",
            "name": "filter[software-version]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by status.",
            "in": "query",
            "name": "filter[status]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by semversion.",
            "in": "query",
            "name": "filter[version]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by deprecation flag.",
            "in": "query",
            "name": "filter[deprecated]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by latest.",
            "in": "query",
            "name": "filter[latest]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter software versions by software type.",
            "in": "query",
            "name": "filter[software-type]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The comma-separated list of attributes.",
            "explode": false,
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "status",
                  "version"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "The value of the fields[resource-type] parameter is a comma-separated list that refers to the name of the fields to be returned for the resource. An empty value indicates that no fields should be returned.",
            "explode": true,
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "properties": {
                "software-versions": {
                  "description": "The comma-separated list of fields to return in response for SoftwareVersion resource.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "style": "deepObject"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "$ref": "#/components/schemas/SoftwareVersionListingDocument"
                }
              }
            },
            "description": "Success."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "List software versions",
        "tags": [
          "software-versions"
        ],
        "x-resource": "SoftwareVersion",
        "x-service": "tf-api"
      }
    }
  },
  "security": [
    {
      "API-Key": []
    }
  ],
  "servers": [
    {
      "url": "https://{Domain}/api/iacp/v3",
      "variables": {
        "Domain": {
          "default": "example.scalr.io",
          "description": "Domain where Scalr is hosted"
        }
      }
    }
  ]
}
```

# Sibling pages

* [Get a Software Version](https://docs.scalr.io/scalr/reference/get_software_version.md)