Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Signatures → Upload Image

AI-generated

Summary

Uploads an image to a mailbox signature in Infomaniak Mail.

Inputs

  • authentication — Authentication method: OAuth2 or API Key.
  • path_mail_hosting_id (required) — ID of the mail hosting containing the mailbox.
  • path_mailbox_name (required) — Username part of the email address (mailbox name).
  • body_image (required) — Base64-encoded image (png, jpg, jpeg, svg, gif) to upload.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator.

Output shape

JSON object representing the updated signature, or an error object on failure.

When returnFullResponse is true the complete API response is returned; otherwise the operation resolves with a success status and no body. Errors are reported as a JSON error payload.

Examples

Example 1: Upload a PNG signature for john@example.com on hosting 7 using OAuth2

{"authentication":"oauth2","path_mail_hosting_id":7,"path_mailbox_name":"john","body_image":"iVBORw0KG..."}

Example 2: Upload a JPG image via API Key for mailbox alice on hosting 12, requesting full response

{"authentication":"apiKey","path_mail_hosting_id":12,"path_mailbox_name":"alice","body_image":"...","returnFullResponse":true}

Links

Discussion