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

# List Module Versions

This endpoint lists versions of a particular module.
The query parameter `filter[module]` with Module ID is required.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "ModuleVersion": {
        "description": "A terraform module's version in the [Private Module Registry](../../module.html).",
        "properties": {
          "attributes": {
            "properties": {
              "created-at": {
                "description": "The resource creation timestamp.",
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "dependencies": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object"
                    },
                    {
                      "items": {},
                      "type": "array"
                    }
                  ]
                },
                "description": "The list of modules this version depends on.",
                "nullable": true,
                "readOnly": true,
                "type": "object"
              },
              "details": {
                "description": "README contents.\n\nThis file should be named README or README.md. The latter will be processed as\n[CommonMark](https://commonmark.org/).",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "error-message": {
                "description": "This field contains the error description, when this module version's status is\n`errored`.",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "inputs": {
                "description": "Input Variables.",
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/RegistryInputOptional"
                    },
                    {
                      "$ref": "#/components/schemas/RegistryInputRequired"
                    }
                  ]
                },
                "nullable": true,
                "readOnly": true,
                "type": "array"
              },
              "is-forbidden-by": {
                "description": "Indicates the source of the restriction.",
                "enum": [
                  "tofu_test"
                ],
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "is-root-module": {
                "description": "Module version marked as root will allow the\n[creation of workspaces](../../module.html#deployable-modules) directly from the\nregistry, as well as standard module usage.",
                "readOnly": true,
                "type": "boolean"
              },
              "outputs": {
                "description": "Output Values.",
                "items": {
                  "properties": {
                    "description": {
                      "default": "",
                      "type": "string"
                    },
                    "name": {
                      "default": "",
                      "type": "string"
                    },
                    "sensitive": {
                      "default": false,
                      "type": "boolean"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "items": {},
                          "type": "array"
                        }
                      ],
                      "default": "",
                      "nullable": true
                    }
                  },
                  "type": "object"
                },
                "nullable": true,
                "readOnly": true,
                "type": "array"
              },
              "resources": {
                "description": "Declared resources.",
                "items": {
                  "properties": {
                    "address": {
                      "default": "",
                      "type": "string"
                    },
                    "type": {
                      "default": "",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "nullable": true,
                "readOnly": true,
                "type": "array"
              },
              "size": {
                "description": "A blob size in bytes.",
                "nullable": true,
                "readOnly": true,
                "type": "integer"
              },
              "status": {
                "description": "The module version's current status.\n\nInitial status:\n* `not_uploaded` - Module version has been created, however the code has not been\nuploaded.\n\nTransitional statuses:\n* `pending` - Module version has been created and is currently synchronizing.\n* `pending_delete` - Module version has been deleted from the repository and pending\ndeletion from the registry.\n\nEnding statuses:\n* `ok` - Module version has been created and the code has been uploaded.\n* `errored` - Module version has been created, however its synchronization has failed.\nAttribute `error-message` contains the details.",
                "enum": [
                  "not_uploaded",
                  "pending",
                  "ok",
                  "errored",
                  "pending_delete"
                ],
                "readOnly": true,
                "type": "string"
              },
              "version": {
                "description": "Semantic Version.",
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "version"
            ],
            "type": "object"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "links": {
            "properties": {
              "download": {
                "description": "The URL to download the tar.gz archive with module version source code.",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "self": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "relationships": {
            "properties": {
              "module": {
                "description": "The module this version belongs to.",
                "properties": {
                  "data": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "modules",
                          ""
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "data"
                ],
                "type": "object"
              },
              "vcs-revision": {
                "description": "The Git commit information when the module version was uploaded from a VCS.",
                "properties": {
                  "data": {
                    "nullable": true,
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "vcs-revisions",
                          ""
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "id"
                    ],
                    "type": "object"
                  }
                },
                "readOnly": true,
                "required": [
                  "data"
                ],
                "type": "object"
              }
            },
            "required": [
              "module"
            ],
            "type": "object"
          },
          "type": {
            "enum": [
              "module-versions"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes",
          "relationships"
        ],
        "type": "object"
      },
      "ModuleVersionListingDocument": {
        "description": "JSON:API Document Listing\n\nsee: https://jsonapi.org/format/#document-structure",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ModuleVersion"
            },
            "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"
      },
      "RegistryInputOptional": {
        "properties": {
          "default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sensitive": {
            "default": false,
            "type": "boolean"
          },
          "type": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "default",
          "name"
        ],
        "type": "object"
      },
      "RegistryInputRequired": {
        "properties": {
          "description": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sensitive": {
            "default": false,
            "type": "boolean"
          },
          "type": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "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": {
    "/module-versions": {
      "get": {
        "description": "This endpoint lists versions of a particular module.\nThe query parameter `filter[module]` with Module ID is required.\n",
        "operationId": "list_module_versions",
        "parameters": [
          {
            "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 module versions by module",
            "in": "query",
            "name": "filter[module]",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter module versions by status",
            "in": "query",
            "name": "filter[status]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter module versions by semantic version",
            "in": "query",
            "name": "filter[version]",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The comma-separated list of attributes.",
            "explode": false,
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "version"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "The comma-separated list of relationship paths.",
            "explode": false,
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "module",
                  "vcs-revision"
                ],
                "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": {
                "module-versions": {
                  "description": "The comma-separated list of fields to return in response for ModuleVersion resource.",
                  "type": "string"
                },
                "modules": {
                  "description": "The comma-separated list of fields to return in response for Module resource.",
                  "type": "string"
                },
                "vcs-revisions": {
                  "description": "The comma-separated list of fields to return in response for VcsRevision resource.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "style": "deepObject"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.api+json": {
                "examples": {
                  "default": {
                    "value": "{\n    \"data\": [\n        {\n            \"attributes\": {\n                \"created-at\": \"2021-03-08T17:17:33Z\",\n                \"dependencies\": null,\n                \"details\": \"Readme\",\n                \"error-message\": null,\n                \"inputs\": [\n                    {\n                        \"default\": \"64512\",\n                        \"description\": \"Description\",\n                        \"name\": \"input\",\n                        \"type\": \"\"\n                    },\n                    {\n                        \"default\": false,\n                        \"description\": \"Description\",\n                        \"name\": \"input_bool\",\n                        \"type\": \"bool\"\n                    },\n                ],\n                \"outputs\": [\n                    {\n                        \"name\": \"output\",\n                        \"sensitive\": false,\n                        \"description\": \"description\",\n                        \"value\": \"value\"\n                    },\n                    {\n                        \"name\": \"output_hash\",\n                        \"sensitive\": false,\n                        \"description\": \"\",\n                        \"value\": \"value\"\n                    }\n                ],\n                \"resources\": [\n                    {\n                        \"address\": \"this\",\n                        \"type\": \"resource\"\n                    }\n                ],\n                \"source\": \"vcs\",\n                \"status\": \"ok\",\n                \"updated-at\": \"2021-03-08T17:17:34Z\",\n                \"version\": \"2.33.0\"\n            },\n            \"id\": \"modver-tc5se25e31ope30\",\n            \"links\": {\n                \"download\": \"https://my.scalr.io/api/tfe/v1/blobs/eyJhbGciOiJQQkVTMi1IUzUxMitBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwicDJjIjo4MTkyLCJwMnMiOiJBVEU5cmdvYnZhOE1fY3BURGh1V05BIn0.rD4n_R9uD6Ft6I744CpsR6wryQfE87I6ZhjzJYulPiVCZ6fvg5w-ZkpsxT2UAEtH-d-IkwpZ7dpDwakt1tR83FPo3XgCvXd0.3npxoRR9AtHnkN9r9alqfA.x9IfrsqIVgLeggswY1NsWIX6JtuvZNAmHHsBwfWbKVyL2T015z4ov9Xwr-cJjSQ3Wm86ptKuuyA9AAe0OpmndRmN1cs1NjySB3LCtX2pxdquL6AsoRS-QL9NiVQ-P0rV.7kOsXKrbKCI8LQQX7KVGKPc4xWo1XrYeljXwVisrRgU\",\n                \"self\": \"https://my.scalr.io/api/iacp/v3/module-versions/modver-tc5se25e31ope30\",\n                \"upload\": \"https://my.scalr.io/api/tfe/v1/blobs/eyJhbGciOiJQQkVTMi1IUzUxMitBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwicDJjIjo4MTkyLCJwMnMiOiIxdHVNVmEzbGo2RjMyNGE4UnhQdlpBIn0.7k5G1a9x8dWfmjsbUZ6okpwaX84Pp_GwR_orrLsENBw8IMTAwhqX0hgLKTWRDNcuYLX9I8gLt6fvO1EX1ctyaeRQg-l4fwCS.qBHmtESZD3lw7oPwmcFEgQ.uMaq6n4HQ7XbX3swiHzAmqhPGutn0HoTxkO-AOOXwHdKwulr5yht9XdG-weHQmP0OzaKSW9QCH__4maIuEmPt0cHxZKbm7lGdeOfB5NxS8lZpPJ_1wZDF9PwjdMtz_Ct.AJeQzbFdN0dYKZg1gWejyakKCdqhhN2_mV10AWpTwU4\"\n            },\n            \"relationships\": {\n                \"registry-module\": {\n                    \"data\": {\n                        \"id\": \"mod-tc5se0n0dirb90o\",\n                        \"type\": \"modules\"\n                    }\n                },\n                \"submodules\": null,\n                \"vcs-revision\": {\n                    \"data\": {\n                        \"id\": \"vrb-tc5se25juq2h92o\",\n                        \"type\": \"vcs-revisions\"\n                    }\n                }\n            },\n            \"type\": \"module-versions\"\n        },\n        {\n            \"attributes\": {\n                \"created-at\": \"2021-03-08T17:17:33Z\",\n                \"dependencies\": null,\n                \"details\": \"Readme\",\n                \"error-message\": null,\n                \"inputs\": [\n                    {\n                        \"default\": \"64512\",\n                        \"description\": \"Description\",\n                        \"name\": \"input\",\n                        \"type\": \"\"\n                    },\n                    {\n                        \"default\": false,\n                        \"description\": \"Description\",\n                        \"name\": \"input_bool\",\n                        \"type\": \"bool\"\n                    },\n                ],\n                \"outputs\": [\n                    {\n                        \"name\": \"output\",\n                        \"sensitive\": false,\n                        \"description\": \"description\",\n                        \"value\": \"value\"\n                    },\n                    {\n                        \"name\": \"output_hash\",\n                        \"sensitive\": false,\n                        \"description\": \"\",\n                        \"value\": \"value\"\n                    }\n                ],\n                \"resources\": [\n                    {\n                        \"address\": \"this\",\n                        \"type\": \"resource\"\n                    }\n                ],\n                \"source\": \"vcs\",\n                \"status\": \"ok\",\n                \"updated-at\": \"2021-03-08T17:17:34Z\",\n                \"version\": \"2.32.0\"\n            },\n            \"id\": \"modver-tc5se2g5a5kno2o\",\n            \"links\": {\n                \"download\": \"https://my.scalr.io/api/tfe/v1/blobs/eyJhbGciOiJQQkVTMi1IUzUxMitBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwicDJjIjo4MTkyLCJwMnMiOiJtM2s4bC1YQW4yYmJVZVhkN3dQeTNRIn0.oFjsZVp2LfT-qY-C7pNGRLYJlBJXADFeJQQdTBmYiFhO1CFpM_lVrN5ZUpxFBYlnmIX7tQquo4PWS_GcN0Pf3B37560Mf11K.BGkWFwUmrHiKn0OCFLJyNQ.ln7PLZsRXSYy9M0ZciJnTdOOfRWi-Ngtlrwyf5lesgj9mTmKnmVCxfUx4D4H5zRU7cYzSxnY3NpglB9xXScXiJfp1uYWLqkP4u8b3rMRiMeOkZliI83Ht-w0VowrIdr-.HsK9BmK8XgE8SCiGQhTlJHnSe_zJGMULiBfXnyORLoE\",\n                \"self\": \"https://my.scalr.io/api/iacp/v3/module-versions/modver-tc5se2g5a5kno2o\",\n                \"upload\": \"https://my.scalr.io/api/tfe/v1/blobs/eyJhbGciOiJQQkVTMi1IUzUxMitBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwicDJjIjo4MTkyLCJwMnMiOiJnUkFiNm94RTh2dVhYSVZCaDRKYlRRIn0.ZhZJzNENRdYHbPg3Omf8gam2C739LimHO1HUWWvEgz1plI0vtrdEEb43CArkxRFIhObukU708DF8yjjVcWA1IzFhDfVj7dcZ.d1kePjxrwP_sqnhHOhTVAg.pROMF18dUKxui5T0AE4b3TcK9_85Ij0FbyPQDRNxSrCMvx2c4JqRp0rMxD4qRh3_lNTqNkP8Dd0CGqdhSeGDs1b6YS1a9FOU3qLf8jcNhyHn5oRxllPA2hPVyN3F4dA3.VgZHkqsc6L6gfNK3I_9vyW6ZnddulbeI8SXi2jN-Mvc\"\n            },\n            \"relationships\": {\n                \"registry-module\": {\n                    \"data\": {\n                        \"id\": \"mod-tc5se0n0dirb90o\",\n                        \"type\": \"modules\"\n                    }\n                },\n                \"submodules\": null,\n                \"vcs-revision\": {\n                    \"data\": {\n                        \"id\": \"vrb-tc5se2gg1jf9fd0\",\n                        \"type\": \"vcs-revisions\"\n                    }\n                }\n            },\n            \"type\": \"module-versions\"\n        }\n    ],\n    \"included\": null,\n    \"links\": {\n        \"first\": \"https://my.scalr.io/api/iacp/v3/module-versions?filter%5Bmodule%5D=mod-tc5se0n0dirb90o&page%5Bnumber%5D=1&page%5Bsize%5D=20\",\n        \"last\": \"https://my.scalr.io/api/iacp/v3/module-versions?filter%5Bmodule%5D=mod-tc5se0n0dirb90o&page%5Bnumber%5D=1&page%5Bsize%5D=20\",\n        \"next\": null,\n        \"prev\": null,\n        \"self\": \"https://my.scalr.io/api/iacp/v3/module-versions?filter%5Bmodule%5D=mod-tc5se0n0dirb90o&page%5Bnumber%5D=1&page%5Bsize%5D=20\"\n    },\n    \"meta\": {\n        \"pagination\": {\n            \"current-page\": 1,\n            \"next-page\": null,\n            \"prev-page\": null,\n            \"total-count\": 2,\n            \"total-pages\": 1\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ModuleVersionListingDocument"
                }
              }
            },
            "description": "Success."
          },
          "404": {
            "description": "Module versions not found, or user unauthorized to perform action."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "List Module Versions",
        "tags": [
          "modules"
        ],
        "x-resource": "ModuleVersion",
        "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 Module Version](https://docs.scalr.io/scalr/reference/get_module_version.md)
* [Resync a Module Version](https://docs.scalr.io/scalr/reference/resync_module_version.md)
* [List Modules](https://docs.scalr.io/scalr/reference/list_modules.md)
* [Publish a Module](https://docs.scalr.io/scalr/reference/create_module.md)
* [Unpublish a Module](https://docs.scalr.io/scalr/reference/delete_module.md)
* [Get a Module](https://docs.scalr.io/scalr/reference/get_module.md)
* [Resync a Module](https://docs.scalr.io/scalr/reference/resync_module.md)
* [Module Changelog](https://docs.scalr.io/scalr/reference/get_module_changelog.md)