> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/policies/tools/tools-apis/importing-tool-from-a-zip-file-asynchronously.md).

# Importing Tool from a Zip file asynchronously

<mark style="color:green;">`POST`</mark> `/api/v1/tools/push/import/file-metadata`

Imports new tool and all associated artifacts, such as schemas and VCs, from the provided zip file into the local DB. Only users with the Standard Registry role are allowed to make the request.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| file     | string | File        |
| metadata | string | Metadata    |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "taskId": "text",
  "expectation": 1
}
```

{% endtab %}

{% tab title="401 : Unauthorized" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}

{% tab title="403: Forbidden" %}

{% endtab %}

{% tab title="500" %}

```json5
content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
```

{% endtab %}
{% endtabs %}
