---
title: "Upload image"
method: POST
path: "/1/mail_hostings/{service_mail}/signatures/templates/upload"
tags: ["Service Mail > Signatures templates"]
---

# Upload image

`POST /1/mail_hostings/{service_mail}/signatures/templates/upload`

## Request

- Base URL: `https://api.infomaniak.com`
- URL: `https://api.infomaniak.com/1/mail_hostings/{service_mail}/signatures/templates/upload`
- Auth: HTTP bearer

Upload an image to prepare for insertion in the template

## Path parameters

- `service_mail` string, required

## Request body

- object
  - `image` string, required: Base64 image content (png,jpg,jpeg,svg or gif MIME type)

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required: Result of the HTTP request
  - `data` 93e74a89ImageURL
    - `image` string, required: The url where you can retrieve the stored image.

## Other responses

- `500`: Internal Server Error

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) - [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) - [OpenAPI document](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/revisions/96ca7c8a0545?raw)
