Mailboxes > Signatures

Create signature

Create a new signatures for the given MailHosting product

post/1/mail_hostings/{service_mail}/mailboxes/{mailbox}/signatures

Request

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

Path parameters

service_mailinteger required

The unique identifier (ID) of the mail hosting to request.

mailboxstring required

The username (that is the part before the @) of the email address you want to request.

Request body

contentstring nullable
fullnamestring
has_infomaniak_footerboolean
is_available_for_allboolean
is_defaultboolean
namestring required

Name of the resource {name}

position'bottom' | 'top'

Specifies the position of the signature in an email. The signature can be placed either at the top or at the bottom of the email content.<note><strong>bottom</strong>: The signature is placed at the bottom of the email.</note><note><strong>top</strong>: The signature is placed at the top of the email.</note>

reply_emailstring nullable
sending_emailstring nullable
template_idstring nullable

Example request

{
  "form_data": {
    "layout": {
      "layout": "2-columns"
    },
    "media": {
      "accountLogoUrlMode": "auto",
      "userAvatarUrlMode": "auto"
    },
    "personal": {
      "departmentMode": "static",
      "jobMode": "static",
      "mailMode": "auto",
      "nameFormatMode": "static",
      "phones": [
        {
          "type": "mobile_icon",
          "value": "+33600000000"
        }
      ]
    },
    "professional": {
      "accountNameMode": "auto",
      "addressMode": "auto",
      "urlMode": "auto"
    }
  },
  "position": "bottom"
}

Response

OK

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

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "id": 123456,
    "position": "bottom",
    "template": {
      "id": "123456",
      "position": "top",
      "status": "draft",
      "creator": {
        "id": 123456
      }
    },
    "user_access": {
      "id": 123456
    }
  }
}

Changes

No recorded changes to this operation across all 40 revisions of this API.