---
title: "Check the uploaded file"
method: POST
path: "/media/{id}/complete"
---

# Check the uploaded file

`POST /media/{id}/complete`

## Request

- Base URL: `https://govir.app/api/v1`
- URL: `https://govir.app/api/v1/media/{id}/complete`
- Auth: HTTP bearer

Scope: `write`.

## Path parameters

- `id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Response `200`

OK

- Media
  - `id` string, uuid
  - `kind` 'image' | 'video'
  - `status` string
  - `error_code` string, nullable
  - `url` string, nullable
  - `mime` string
  - `size` integer
  - `width` integer, nullable
  - `height` integer, nullable
  - `duration_ms` integer, nullable

## Other responses

- `400`: The request isn't valid
- `401`: No key, a wrong key, or a revoked one
- `403`: The key lacks the scope, or publishing right away isn't allowed
- `404`: Not found in your workspace
- `422`: The Idempotency-Key was used with another request
- `429`: Too many requests; see Retry-After

---

[API](https://skmtc.dev/govir/apis/govir-api.md) · [All operations](https://skmtc.dev/govir/apis/govir-api/llms.txt) · [OpenAPI document](https://skmtc.dev/govir/apis/govir-api/revisions/2806c124851e?raw)
