mail

POST /v1/mail/services/{mailServiceId}/responders

Set an auto-reply on a mailbox.

Toate punctele finale mail

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

NumeTipObligatoriuCe este
mailServiceId (path)UuidDaEmail service ID (UUIDv7).

Corp cerere

NumeTipObligatoriuCe este
localstringDaThe mailbox to auto-reply for.
subjectstringNu
contentstringDa
start_timestringNuRFC 3339. Omit or `null` for no schedule - see `MailResponder`.
end_timestringNuRFC 3339, and must be after `start_time` when both are given.

Răspuns

NumeTipObligatoriuCe este
idstringDaThe mail backend's identifier - the handle `DELETE` needs.
localstringDaThe part before the `@`.
addressstringDaThe mailbox this replies for.
subjectstringDa
contentstringDaThe reply body.
start_timestringDaWhen 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_timestringDaWhen 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