hosting

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

Messages the site's mail sent or received.

Toate punctele finale hosting

Autentificare

Trimiteți o cheie API ca token de tip bearer. Acest punct final nu specifică o permisiune anume în specificație, așa că acordați cheii cele mai puține drepturi necesare și verificați răspunsul în loc să faceți presupuneri.

Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

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

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

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

NumeTipObligatoriuCe este
siteId (path)UuidDaSite ID (UUIDv7).
period (query)string<hourly, daily, weekly, monthly>NuHow far back to look, in the vendor's own four buckets.
direction (query)string<incoming, outgoing>Nu⛔ 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)stringNuFree-text match on sender, recipient or subject.
page (query)integerNu
page_size (query)integerNu

Răspuns

NumeTipObligatoriuCe este
dataSiteMailLogEntry[]Da
totalintegerDa
pageintegerDa
page_sizeintegerDa
has_morebooleanDaThe vendor's own flag, not arithmetic on `total`.
periodstringDa
directionstringDa
periodsstring[]Da
directionsstring[]Da

Erori pe care le poate returna acest punct final

401 · 403 · 404 · 422 · 429 · 503