Deutsch DE
API-Referenz
API-Referenz

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

  • Authorization string Header erforderlich

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

Pfad-Parameter

  • file_id integer erforderlich

    The file_id from upload_file.

    min. 1 Beispiel: 601

Antwort

Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.

  • 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.

    Mögliche Werte: imagevideoaudiofile

  • size_bytes integer

    File size in bytes.

Tippe, um zu suchen.