# Finish upload

`POST https://api.tentary.com/v1/files/{file_id}/finish`

Source: https://tentary.com/de/help/api/finish-upload/
Area: Produkte und Dateien
MCP tool: `finish_upload`. Changes data at once.

---

The last step of [`POST /v1/files`](https://tentary.com/de/help/api/upload-file/) without `url`, after your PUT to the `upload_url`. Checks that the file is stored and makes it usable. Returns the `file_id`, name and size.

## Authorization

`Authorization: Bearer <API key>`

A personal API key (tnt_...). Create it in the Tentary app on the page AI & API.

## Path parameters

- `file_id` (integer, required, path): The file_id from upload_file. Limits: min 1.

## Response

- `file_id` (integer): Use it in a content block.
- `name` (string): The name.
- `file_type` (string): File extension, like pdf.
- `kind` (string): The content block type that fits the file. Allowed values: `image`, `video`, `audio`, `file`.
- `size_bytes` (integer): File size in bytes.

## Example request

```bash
curl -X POST "https://api.tentary.com/v1/files/601/finish" \
  -H "Authorization: Bearer $TENTARY_API_KEY"
```

## Example response

```json
{
  "file_id": 601,
  "name": "Workbook",
  "file_type": "pdf",
  "kind": "file",
  "size_bytes": 2483011
}
```
