hosting

GET /v1/sites/{siteId}/mail-log

Messages the site's mail sent or received.

Tüm hosting uç noktaları

Kimlik Doğrulama

Bir API anahtarını bearer token olarak gönderin. Bu uç nokta, teknik özelliklerde belirli bir yetki belirtmemektedir; bu nedenle, varsaymak yerine anahtarınıza ihtiyaç duyduğu en az yetkiyi verin ve yanıtı kontrol edin.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/mail-log \
  -H "Authorization: Bearer zdk_live_…"

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

Paginated by the vendor, so `has_more` is its own answer rather than arithmetic on `total`. An empty page for a site with no mail is a normal state, not a failure. ⛔ Requires **`sites.panel_access`**, not `sites.view` — unlike every other read on this panel. Sender, recipient and subject lines are the customer's correspondence, the same class of data as their files and their database, and `sites.panel_access` is the key that already gates both. A principal holding only `sites.view` gets a 404.

Parametreler

AdTürZorunluNe olduğu
siteId (path)UuidEvetSite ID (UUIDv7).
period (query)string<hourly, daily, weekly, monthly>HayırHow far back to look, in the vendor's own four buckets.
direction (query)string<incoming, outgoing>Hayır⛔ One direction at a time — the vendor has no "both", so a client showing a combined view must make two calls and say which is which.
search (query)stringHayırFree-text match on sender, recipient or subject.
page (query)integerHayır
page_size (query)integerHayır

Yanıt

AdTürZorunluNe olduğu
dataSiteMailLogEntry[]Evet
totalintegerEvet
pageintegerEvet
page_sizeintegerEvet
has_morebooleanEvetThe vendor's own flag, not arithmetic on `total`.
periodstringEvet
directionstringEvet
periodsstring[]Evet
directionsstring[]Evet

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 422 · 429 · 503