English EN
API Reference
API Reference

Products and files

Finish upload

POST / v1 / files / {file_id} / finish

The last step of POST /v1/files 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.

Changes at once MCP tool finish_upload

Authorization

  • Authorization string header required

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

Path parameters

  • file_id integer required

    The file_id from upload_file.

    min 1 Example: 601

Response

Fields of the answer with status 200. Errors always have the same format, see Errors.

  • 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: imagevideoaudiofile

  • size_bytes integer

    File size in bytes.

Start typing to search.