# Retrieve prompt text for compliance workflows

By Steven Van · 2026-09-11

Enterprise admins can now pull full prompt text for message-sent audit events via a new compliance:messages:read API scope.

[Replit](<https://creatorstoolbox.com/tools/replit>) now lets enterprise account admins retrieve the full prompt text behind project.message\_sent audit events through its Compliance API. Admins create an API key with the **compliance:messages:read** scope and call GET /v1/compliance/messages to pull the text for security investigations, compliance monitoring, data loss prevention, SIEM, retention, and eDiscovery workflows.

Because prompt text can contain secrets and personal data, Replit says the scope should be granted only to authorized systems and administrators. More detail is in the [announcement](<https://docs.replit.com/teams/identity-and-access-management/audit-logs#retrieve-prompt-text-with-the-compliance-api>).

[![](<https://replit.mintlify.app/mintlify-assets/_next/image?url=%2F_mintlify%2Fapi%2Fog%3Fdivision%3DIdentity%2Band%2BAccess%2BManagement%26title%3DAudit%2BLogs%26description%3DTrack%2Band%2Bmonitor%2Bsecurity-relevant%2Bactions%2Bin%2Byour%2BReplit%2BEnterprise%2Borganization%2Bwith%2Bcomprehensive%2Baudit%2Blogs%2Band%2BSIEM%2Bintegration.%26theme%3D833ed72264dffc86d5d242e0&w=1200&q=100>)](<https://docs.replit.com/teams/identity-and-access-management/audit-logs#retrieve-prompt-text-with-the-compliance-api>)

![Replit](<https://creatorstoolbox.com/images/replit-icon.png>)

Replit

Browser-based IDE for 50+ languages with AI coding assistance, multiplayer editing, and instant deployments — zero setup, integrated hosting.

[View Replit →](<https://creatorstoolbox.com/tools/replit>)

Sources

[Original source](<https://docs.replit.com/teams/identity-and-access-management/audit-logs#retrieve-prompt-text-with-the-compliance-api>)

[Read Retrieve prompt text for compliance workflows on Creators Toolbox](<https://creatorstoolbox.com/blog/replit-retrieve-prompt-text-for-compliance-workflows>)

---
Canonical source: https://creatorstoolbox.com/blog/replit-retrieve-prompt-text-for-compliance-workflows
