English EN
API Reference
API Reference

Products and files

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.

Changes at once MCP tool upload_image

Authorization

  • Authorization string header required

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

Body application/json

  • file_name string required

    Name with extension, like "cover.png".

    max length 250

  • size_bytes integer required

    The exact file size.

    min 1 max 10485760

Response

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

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

    Allowed values: PUT

  • expires_in_seconds integer

    The upload_url works this long.

  • next_step string

    What to do next (PUT, then finish_image).

Start typing to search.