Service Mail > Mailboxes > Email Snippets

Create an email snippet

Changed on

Create a new email snippet for the given mailbox and return the id of the created object.

post/1/mail_hostings/{service_mail}/mailboxes/{mailbox}/email-snippets

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/1/mail_hostings/{service_mail}/mailboxes/{mailbox}/email-snippets
  • Auth
    HTTP bearer

Path parameters

service_mailstring required
mailboxstring required

Request body

contentstring nullable

The HTML content of the email snippet

previewstring nullable

A short preview of the email snippet provided by the client

titlestring nullable

The title of the email snippet

Example request

{
  "preview": "<h3>Compagny name</h3><p>John Doe<br/>john.doe@ik.me</p>"
}

Response

Created

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

datastring

Example response

{
  "result": "success"
}

Changes