# Getting the schema version

> Retrieve the schema version and download the schema ZIP file in Swagger, which you need to build a TMH file for import.

The **schema version** is required to build the TMH file, and you retrieve it with API calls in Swagger.

## Steps

1. Go to Swagger, using the Test Manager endpoint that you use. To connect Swagger to your Test Manager, visit [API References](api-references.md).
2. Go to the **ProjectMigrationSchema** request.
3. Execute **GET /api/v2/migration/schema/versions**.
4. Copy the version generated in the **Response Body**.
5. Input the copied schema version as a parameter for **GET /api/v2/migration/schema/{schemaVersion}**.
6. Execute the API.
7. Select **Download file** from the **Response body** section.

## Result

A ZIP file is downloaded. It contains the schema of the different testing artifacts in the TMH file.

The ZIP file contains the following folders and files:

* An **attachments** folder - contains subfolders corresponding to the attachments associated with each object, object Id is folder name (test cases, test sets, requirements, test executions, etc.).
* An **objects** folder - contains subfolders corresponding to all types of objects available in Test Manager.
* A **JSON manifest** file - holds basic metadata about your WebExtension.
* A **readme.txt** file - contains instructions for preparing data that goes inside the folders.
