Create autoreply

Create vacation autoreply (auto-responder)

  • HTTP Method: POST
  • URL: https://example.domain.tld/api/v1/vacation_autoreply/
  • Require authentication: Yes
  • Permission level required: MailUser

Request parameters

Parameter Type Description Required
subject str Subject of autoreply email Required
body str Body of autoreply email Required
start_time int Start of autoreply as UNIX timestamp (seconds) Optional
end_time int End of autoreply as UNIX timestamp (seconds) Optional

Response parameters

Parameter Type Description
subject str Subject of autoreply email
body str Body of autoreply email
start_time int Start of autoreply as UNIX timestamp (seconds)
end_time int End of autoreply as UNIX timestamp (seconds)
status str Status

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/vacation_autoreply/"
data = {
"subject" : "Out of office",
"body" : "I will be out of office until the 15th, please contact John instead.",
"start_time" : 1630671300,
"end_time" : 1630672200
}
r = requests.post(url, json=data, auth=("u1@vonmail.com","long-auth_token-here"))
try:
    pprint(r.json())
except: 
    print(r.text)

Example response (JSON)

{'body': 'I will be out of office until the 15th, please contact John instead.',
 'subject': 'Out of office',
 'start_time': 1630671300,
 'end_time': 1630672200,
 'status': 'generating'
}