API reference

Images

Upload images hosted by Kula, list them and delete them, to use in email content

Kula hosts the images of your emails on https://img.kulamail.com, the same library as Settings › Media in the dashboard. Upload an image, then use its url in an image block, in Markdown or in HTML. In emails, hosted images are resized to their displayed width.

The image routes require a full access key.

The image object

{
  "id": "3f2a9c1e-7b4d-4e8a-9c0b-5d6e7f8a9b0c",
  "url": "https://img.kulamail.com/a81c5e02-4f7d-4b9e-8c3a-6d2f1e0b9c74.png",
  "contentType": "image/png",
  "width": 1200,
  "height": 630,
  "sizeBytes": 184320,
  "createdAt": "2026-11-02T09:30:00Z"
}

width and height are those of the stored image, after resizing.

Upload an image

POST /v1/images

Multipart form with a file part.

Rule
FormatsJPEG, PNG, GIF (animation kept). WebP is stored as PNG: Outlook doesn't show it
Size5 MB at most
WidthWider than 1200 px: scaled down to 1200 px
Storage1 GB per account, all spaces together
curl https://api.kulamail.com/v1/images \
  -H "Authorization: Bearer ml_your_api_key" \
  -F "file=@hero.png"

Returns 201 with the image object. Its url never changes.

StatusCodeWhen
400file_requiredNo file part
400unsupported_imageNot a JPEG, PNG, GIF or WebP image
400image_too_largeOver 5 MB
409quota_exceededThe account's images use their 1 GB: delete some first

List images

GET /v1/images

Every image of the space, newest first, with the storage used by the account.

200 OK
{
  "images": [
    {
      "id": "3f2a9c1e-7b4d-4e8a-9c0b-5d6e7f8a9b0c",
      "url": "https://img.kulamail.com/a81c5e02-4f7d-4b9e-8c3a-6d2f1e0b9c74.png",
      "contentType": "image/png",
      "width": 1200,
      "height": 630,
      "sizeBytes": 184320,
      "createdAt": "2026-11-02T09:30:00Z"
    }
  ],
  "usedBytes": 52428800,
  "quotaBytes": 1073741824
}

Delete an image

DELETE /v1/images/{id}

Answers 204. The image leaves the media library and no longer counts in the 1 GB; emails already sent keep showing it. Its file is deleted with the space.