---
title: "Create autoreply"
method: POST
path: "/api/mail/v1/mailboxes/{mailboxId}/autoreplies"
tags: ["Mail: Autoreplies"]
---

# Create autoreply

`POST /api/mail/v1/mailboxes/{mailboxId}/autoreplies`

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.

## Path parameters

- `mailboxId` string, required

## Request body

- MailV1SchemaUpsertAutoreplyRequestSchema
  - `subject` string, required — Subject of the automatic reply
  - `body` string, required — Body of the automatic reply
  - `display_name` string, nullable — Sender display name used for the reply
  - `starts_at` string, date-time, nullable — When the autoreply becomes active. Defaults to now.
  - `ends_at` string, date-time, nullable — When the autoreply stops. Omit for an indefinite autoreply.

## Response `201`

Created response

- MailV1AutorepliesAutoreplyResource
  - `id` string — Unique autoreply identifier
  - `mailbox` MailV1AutorepliesAutoreplyMailboxResource
    - `id` string — Mailbox resource ID
    - `address` string
  - `subject` string — Subject of the automatic reply
  - `body` string — Body of the automatic reply
  - `display_name` string, nullable — Sender display name used for the reply
  - `starts_at` string, date-time — When the autoreply becomes active
  - `ends_at` string, date-time, nullable — When the autoreply stops
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `404` — Error response
- `409` — Error response
- `422` — Error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
