POST /v1/mail/services/{mailServiceId}/responders
Set an auto-reply on a mailbox.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea mail.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X POST https://api.zinndigital.com/v1/mail/services/{mailServiceId}/responders \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "local": <string>, "content": <string> }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
Idempotent on `local`: re-posting for the same mailbox reconciles to the existing responder rather than creating a second one, which is the backend's own natural key. Requires `mail.manage`.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
mailServiceId (path) | Uuid | Da | Email service ID (UUIDv7). |
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
local | string | Da | The mailbox to auto-reply for. |
subject | string | Nu | — |
content | string | Da | — |
start_time | string | Nu | RFC 3339. Omit or `null` for no schedule - see `MailResponder`. |
end_time | string | Nu | RFC 3339, and must be after `start_time` when both are given. |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
id | string | Da | The mail backend's identifier - the handle `DELETE` needs. |
local | string | Da | The part before the `@`. |
address | string | Da | The mailbox this replies for. |
subject | string | Da | — |
content | string | Da | The reply body. |
start_time | string | Da | When the auto-reply starts. `null` when unscheduled (it replies from now on). ⭐ This used to be declared **"Opaque - do not parse, compare or render as a date"** (#664), out of… |
end_time | string | Da | When the auto-reply stops. `null` to run until switched off. |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 422 · 429 · 503