Create webmail password

Create a disposable password for webmail (IMAP/POP/SMTP) authentication

  • HTTP Method: POST
  • URL: https://example.domain.tld/api/v1/webmail/password/<webmail_id>/
  • Require authentication: Yes
  • Permission level required: MailUser

Path parameters

Parameter Type Description Required
webmail_id int 1 or 2 Required

Response parameters

Parameter Type Description
webmail_password str Password for webmail access

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/webmail/password/1/"
r = requests.post(url, auth=("u1@vonmail.com","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)

Example response (JSON)

{
    'webmail_password': '3haYnlc59BWWeHChP5HFeeEL1xvPRVEra2FEUTf8tIwOxkPOPL'
}