Deutsch DE
API-Referenz
API-Referenz

Produkte und Dateien

Upload image

POST / v1 / images

Uploads an image from your disk for a sales page, course, module, email or landing page: PNG, JPG, GIF or WebP, at most 10 MB.

  1. Send file_name and size_bytes. The answer has an upload_url.
  2. Send the bytes there with HTTP PUT.
  3. Call POST /v1/images/{upload_id}/finish with the upload_id.

An image that is already at a public URL needs no upload: put the URL into images directly. For files that buyers get, use POST /v1/files.

Ändert sofort MCP-Werkzeug upload_image

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

Body application/json

  • file_name string erforderlich

    Name with extension, like "cover.png".

    max. Länge 250

  • size_bytes integer erforderlich

    The exact file size.

    min. 1 max. 10485760

Antwort

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

  • upload_id string

    Call finish_image with it after the PUT.

  • upload_url string<uri>

    Send the bytes here with HTTP PUT, without extra headers.

  • method string

    The HTTP method for the upload.

    Mögliche Werte: PUT

  • expires_in_seconds integer

    The upload_url works this long.

  • next_step string

    What to do next (PUT, then finish_image).

Tippe, um zu suchen.