Subscribe to events in Infisical for real-time updates
secret:created
: Triggered when a secret is createdsecret:updated
: Triggered when a secret is updatedsecret:deleted
: Triggered when a secret is deletedSubscribe
action permission on that resource.
Follow these steps to set up the necessary permissions:
Select a project and copy the Project ID
https://app.infisical.com/project/<your_project_id>/settings
Navigate to Access Management and open Project Roles
Select an existing role or create a new one
Assign policies to the role
Enable the Subscribe action in permissions
Full Access
Path Prefix
Environment
projectId
: Project whose events you want to subscribe toregister
: List of event filters
conditions
: Conditions to filter events on
environmentSlug
: Project environmentsecretPath
: Path of the secretstext/event-stream
content type to initiate SSE streaming.
For more specific details, please refer to our API Reference.