---
title: "Check the progress of uploading compliance related unique file by using the token returned."
method: GET
path: "/api/v2/companies/{id}/compliance/upload"
tags: ["Compliance"]
---

# Check the progress of uploading compliance related unique file by using the token returned.

`GET /api/v2/companies/{id}/compliance/upload`

The upload process is a heavy and complicated one, so, it's hard to predict the time it takes to process a compliance related file, however, 10 minutes to 1 hour is a meaningful period to wait under normal loads.

## Path parameters

- `id` integer, required

## Query parameters

- `token` string, required

## Response `200`

Success

- object
  - `Token` string — The token identifying the upload process.
  - `CompanyId` integer — The ID of the company associated with the upload.
  - `Status` 'Successfully processed' | 'Uploading the file' | 'Reading the content' | 'Running semantic analysis' | 'Gathering the current compliance data' | 'Failed to process the file' — The string representation of the upload process's status. Any value other than 'Successfully processed' means the process is still ongoing or failed. 'Failed to process the file' means the process has failed.
  - `ErrorMessage` string — Error message if the upload process failed.

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `default` — Failure

---

[API](https://skmtc.net/blackkitetech/apis/black-kite-api.md) · [All operations](https://skmtc.net/blackkitetech/apis/black-kite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blackkitetech/black-kite-api/versions/7dadaba760fb/schema)
