# Importing a Swagger file

Import a Swagger 2.0 API contract.

## Procedure

1. In REQUESTS &gt; REPOSITORY or in the SCENARIOS view, click Import at the bottom of the left panel.
2. Click Import Swagger 2.0.
3. Enter a project name and select a source.

   You can choose to upload a file, enter a URL, or directly copy your code. ![Swagger Import dialog box.](https://help.qlik.com/talend/en-US/api-tester-user-guide/Resources/images/import_swagger_2.png)
4. Import your Swagger file:
   * If you chose File as a source, click Choose a file and upload it.
   * If you chose URL, enter your URL and click Load.
   * If you chose Copy, enter your code.

   Only JSON is supported.
5. Click Import.