hosting
GET /v1/sites/{siteId}/mail-log
Messages the site's mail sent or received.
Autentifikacija
Pošaljite API ključ kao bearer token. Ova krajnja točka ne navodi određenu dozvolu u specifikaciji, stoga dajte svom ključu najmanje što mu je potrebno i provjerite odgovor umjesto da pretpostavljate.
Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/mail-log \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli
Pojedinosti
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
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
siteId (path) | Uuid | Da | Site ID (UUIDv7). |
period (query) | string<hourly, daily, weekly, monthly> | Ne | How far back to look, in the vendor's own four buckets. |
direction (query) | string<incoming, outgoing> | Ne | ⛔ 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 | Ne | Free-text match on sender, recipient or subject. |
page (query) | integer | Ne | — |
page_size (query) | integer | Ne | — |
Odgovor
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
data | SiteMailLogEntry[] | Da | — |
total | integer | Da | — |
page | integer | Da | — |
page_size | integer | Da | — |
has_more | boolean | Da | The vendor's own flag, not arithmetic on `total`. |
period | string | Da | — |
direction | string | Da | — |
periods | string[] | Da | — |
directions | string[] | Da | — |
Pogreške koje ova krajnja točka može vratiti
401 · 403 · 404 · 422 · 429 · 503