mail

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

Set an auto-reply on a mailbox.

Të gjitha pikat e skajshme mail

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen mail.manage; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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> }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
mailServiceId (path)UuidPoEmail service ID (UUIDv7).

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
localstringPoThe mailbox to auto-reply for.
subjectstringJo
contentstringPo
start_timestringJoRFC 3339. Omit or `null` for no schedule - see `MailResponder`.
end_timestringJoRFC 3339, and must be after `start_time` when both are given.

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idstringPoThe mail backend's identifier - the handle `DELETE` needs.
localstringPoThe part before the `@`.
addressstringPoThe mailbox this replies for.
subjectstringPo
contentstringPoThe reply body.
start_timestringPoWhen 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_timestringPoWhen the auto-reply stops. `null` to run until switched off.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422 · 429 · 503