hosting

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

Messages the site's mail sent or received.

Tutti gli endpoint hosting

Autenticazione

Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

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

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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.

Parametri

NomeTipoObbligatorioChe cos'è
siteId (path)UuidSite ID (UUIDv7).
period (query)string<hourly, daily, weekly, monthly>NoHow far back to look, in the vendor's own four buckets.
direction (query)string<incoming, outgoing>No⛔ 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)stringNoFree-text match on sender, recipient or subject.
page (query)integerNo
page_size (query)integerNo

Risposta

NomeTipoObbligatorioChe cos'è
dataSiteMailLogEntry[]
totalinteger
pageinteger
page_sizeinteger
has_morebooleanThe vendor's own flag, not arithmetic on `total`.
periodstring
directionstring
periodsstring[]
directionsstring[]

Errori che questo endpoint può restituire

401 · 403 · 404 · 422 · 429 · 503