hosting
GET /v1/sites/{siteId}/mail-log
Messages the site's mail sent or received.
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
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
siteId (path) | Uuid | Sì | Site ID (UUIDv7). |
period (query) | string<hourly, daily, weekly, monthly> | No | How 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) | string | No | Free-text match on sender, recipient or subject. |
page (query) | integer | No | — |
page_size (query) | integer | No | — |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
data | SiteMailLogEntry[] | Sì | — |
total | integer | Sì | — |
page | integer | Sì | — |
page_size | integer | Sì | — |
has_more | boolean | Sì | The vendor's own flag, not arithmetic on `total`. |
period | string | Sì | — |
direction | string | Sì | — |
periods | string[] | Sì | — |
directions | string[] | Sì | — |
Errori che questo endpoint può restituire
401 · 403 · 404 · 422 · 429 · 503