---
title: "Create auto reply"
method: POST
path: "/1/mail_hostings/{mail_hosting_id}/auto_replies"
tags: ["Service Mail > Auto Reply"]
---

# Create auto reply

`POST /1/mail_hostings/{mail_hosting_id}/auto_replies`

Create new auto reply for given service mail

## Path parameters

- `mail_hosting_id` integer, required

## Request body

- object
  - `dont_reply_to` unknown[] — List of emails the auto reply won't respond to
    - unknown
  - `ended_at` integer, nullable — When should end the auto reply activation
  - `is_recurrent` boolean, required — Define if the responder should be activate for some days in the week instead of a certain time
  - `is_visible` boolean — Define if the attributes is visible for all the users
  - `message` string, required
  - `name` string, required — Name of the resource `{name}`
  - `recurrent_days` object — List of the days when the auto reply is activated
    - `friday` boolean
    - `monday` boolean
    - `saturday` boolean
    - `sunday` boolean
    - `thursday` boolean
    - `tuesday` boolean
    - `wednesday` boolean
  - `started_at` integer, nullable — When the responder start to be active

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` integer

## Other responses

- `404` — Not Found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
