AppAutoGtm

Moderate Preview Endpoint

Moderate a rendered preview's subject + body separately from generation.

Splits moderation off the /preview-emails response so the email body renders fast and the moderation indicator runs on its own request — the frontend can show a delayed "Checking content…" indicator and the user sees the email immediately instead of waiting for moderation after generation. The verdict surfaces in a banner on the preview card (and a top-level alert near the Save button) when blocked.

Auth: org-scoped via the segment so a malicious caller can't moderate arbitrary text against another tenant's quota.

post/api/app-auto-gtm/segments/{segment_id}/moderate-preview

Path parameters

segment_idinteger required

Cookies

ex_accessstring nullable
ex_orgstring nullable

Request body

subjectstring required
body_textstring required

Response

Successful Response

moderation_status'ok' | 'blocked'
moderation_categorystring

Changes

No recorded changes to this endpoint across all 1 revision of this API.