hosting

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

Messages the site's mail sent or received.

Tous les points de terminaison hosting

Authentification

Envoyez une clé d'API en tant que jeton du porteur (bearer token). Cet endpoint n'indique pas de permission spécifique dans la spécification, attribuez donc à votre clé le minimum requis et vérifiez la réponse plutôt que de faire des suppositions.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

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.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
siteId (path)UuidOuiSite ID (UUIDv7).
period (query)string<hourly, daily, weekly, monthly>NonHow far back to look, in the vendor's own four buckets.
direction (query)string<incoming, outgoing>Non⛔ 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)stringNonFree-text match on sender, recipient or subject.
page (query)integerNon
page_size (query)integerNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
dataSiteMailLogEntry[]Oui
totalintegerOui
pageintegerOui
page_sizeintegerOui
has_morebooleanOuiThe vendor's own flag, not arithmetic on `total`.
periodstringOui
directionstringOui
periodsstring[]Oui
directionsstring[]Oui

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 404 · 422 · 429 · 503