Create autoreply
Create an automatic reply for the given mailbox. A mailbox can have only one autoreply. Omit startsat to activate the autoreply immediately and omit endsat to keep it active indefinitely.
Create an automatic reply for the given mailbox. A mailbox can have
only one autoreply. Omit starts_at to activate the autoreply
immediately and omit ends_at to keep it active indefinitely.
API Token authentication
Mailbox resource ID
AC1a2b3c4d5e6f7gSubject of the automatic reply
Out of officeBody of the automatic reply
I am on vacation until August 1st.Sender display name used for the reply
John DoeWhen the autoreply becomes active. Defaults to now.
2026-08-01T00:00:00ZWhen the autoreply stops. Omit for an indefinite autoreply.
2026-09-01T00:00:00ZCreated response
Unique autoreply identifier
AR1a2b3c4d5e6f7gSubject of the automatic reply
Out of officeBody of the automatic reply
I am on vacation until August 1st.Sender display name used for the reply
John DoeWhen the autoreply becomes active
2026-08-01T00:00:00ZWhen the autoreply stops
2026-09-01T00:00:00Z2026-07-24T12:00:00Z2026-07-24T12:00:00ZUnauthenticated response
Error response
Error response
Error response
Error response
POST /api/mail/v1/mailboxes/{mailboxId}/autoreplies HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"subject": "Out of office",
"body": "I am on vacation until August 1st.",
"display_name": "John Doe",
"starts_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z"
}{
"id": "AR1a2b3c4d5e6f7g",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "user@example.com"
},
"subject": "Out of office",
"body": "I am on vacation until August 1st.",
"display_name": "John Doe",
"starts_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z",
"created_at": "2026-07-24T12:00:00Z",
"updated_at": "2026-07-24T12:00:00Z"
}Last updated
Was this helpful?