hosting

POST /v1/sites/{siteId}/ide-events

Record something the customer did in the site's web editor.

Tous les points de terminaison hosting

Authentification

Cet point de terminaison est public. Il ne nécessite aucun identifiant ni aucune organisation : c'est ce que notre propre site marketing et nos moteurs de réponse IA lisent.

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 POST https://api.zinndigital.com/v1/sites/{siteId}/ide-events \
  -H "Content-Type: application/json" \
  -d '{ "event": <string<file_saved, ai_applied, file_restored, terminal_opened>> }'

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

Appends one row to the site's activity log for an action taken in the editor — a file saved, an AI suggestion applied, an earlier version restored, a terminal opened. Editing the files of a live website is a privileged action and is logged as one. The acting person is taken from the **grant**, which the engine signed when the editor was opened, and never from the request: the caller runs inside the cage being audited, so anything it claimed about identity would be a claim by its own subject. The event name is mapped to a closed set of audit actions for the same reason. **This records what the editor did.** A customer with a terminal can change their own files without it, so it is an accountability trail for actions taken through our tool rather than a filesystem-level record. The filesystem-level answer is the site backup.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
siteId (path)UuidOuiSite ID (UUIDv7).

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
eventstring<file_saved, ai_applied, file_restored, terminal_opened>OuiA closed set. The caller runs inside the cage being audited, so it names an event and the engine chooses the audit action — a log whose rows can be authored by their own subject…
pathstringNonThe file, relative to the site. Truncated to 512 characters.
bytes_beforeintegerNonSize of the file before the write, so a truncation is visible in the log.
bytes_afterintegerNon
versionstringNonWhich kept version was restored, for a `file_restored` event.

Réponse

NomTypeObligatoireQu'est-ce que c'est
recordedbooleanOui

Erreurs que cet point de terminaison peut renvoyer

404 · 422