WoyraDocs
Get an API key

Set the out-of-office reply

PUT/v1/mail/autoreply

Mailboxes · Requires an API key

While on and inside its dates, mail arriving from a person is answered once per sender every four days. Automatic mail, lists, bulk senders and bounces are never answered (RFC 3834), nor is mail filed in Spam or Trash. Saving starts afresh, so everyone is answered again.

Parameters

NameInDescription
mailboxqueryThe token's own mailbox. Any other address is refused with 403.

Body

FieldTypeDescription
enabledboolean
subjectstringEmpty replies with "Re:" and the subject answered.
textstring
startsAttimestamp
endsAttimestamp
activebooleanOn

Example

curl -X PUT https://api.woyra.io/v1/mail/autoreply \
  -H "Authorization: Bearer $WOYRA_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "subject": "Your code",
    "text": "Your code is 483920"
  }'

Response

200 The reply as saved.

FieldTypeDescription
enabledboolean
subjectstringEmpty replies with "Re:" and the subject answered.
textstring
startsAttimestamp
endsAttimestamp
activebooleanOn

Errors

StatusCodes
400invalid_request, unsupported_version
401authentication_required, invalid_api_key

Also in Mailboxes