---
title: "Check a file with THOR asynchronously"
method: POST
path: "/checkAsync"
tags: ["scan"]
---

# Check a file with THOR asynchronously

`POST /checkAsync`

## Request

- Base URL: `http://localhost:8080/api/v1`
- URL: `http://localhost:8080/api/v1/checkAsync`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nextron-systems/apis/thor-thunderstorm-api/docs/checkAsync/post.ts> (a function with typed inputs; its response is checked against the schema)

Check a file with THOR asynchronously

## Query parameters

- `source` string

## Request body `multipart/form-data`

- FileObject: Wrapped file
  - `file` string, binary, required: File to be checked

## Response `200`

Returns a map containing the sample ID

- SampleIdObj: Object containing the Sample ID returned for an asynchronous scan request
  - `id` integer, required: Sample ID returned for an asynchronous scan request

## Other responses

- `400`: Invalid parameters given
- `500`: Unauthorized

---

[API](https://skmtc.dev/nextron-systems/apis/thor-thunderstorm-api.md) - [All operations](https://skmtc.dev/nextron-systems/apis/thor-thunderstorm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nextron-systems/apis/thor-thunderstorm-api/revisions/f8207ca0b201?raw)
