hosting

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

Messages the site's mail sent or received.

Sve hosting krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ova krajnja tačka ne navodi specifičnu dozvolu u specifikaciji, zato dodelite svom ključu minimum potrebnih ovlašćenja i proverite odgovor umesto da pretpostavljate.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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

NazivVrstaObaveznoŠta je ovo
siteId (path)UuidDaSite ID (UUIDv7).
period (query)string<hourly, daily, weekly, monthly>NeHow 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)stringNeFree-text match on sender, recipient or subject.
page (query)integerNe
page_size (query)integerNe

Odgovor

NazivVrstaObaveznoŠta je ovo
dataSiteMailLogEntry[]Da
totalintegerDa
pageintegerDa
page_sizeintegerDa
has_morebooleanDaThe vendor's own flag, not arithmetic on `total`.
periodstringDa
directionstringDa
periodsstring[]Da
directionsstring[]Da

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 422 · 429 · 503