Produkte und Dateien
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.
Ändert sofort MCP-Werkzeug finish_upload
Autorisierung
-
Authorizationstring Header erforderlichBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung
Pfad-Parameter
-
file_idinteger erforderlichThe file_id from upload_file.
min.
1Beispiel:601
Antwort
Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.
-
file_idintegerUse it in a content block.
-
namestringThe name.
-
file_typestringFile extension, like pdf.
-
kindstringThe content block type that fits the file.
Mögliche Werte:
imagevideoaudiofile -
size_bytesintegerFile size in bytes.