Question
How can I audit events for a Studio flow?
Product
Studio
Answer
The Monitor Events API can be used to check who and when a Studio flow was modified. The audit events that are tracked are the following:
- flow.created
- flow.updated
- flow.deleted
The API request will return the following fields:
- Event Date
- Event Sid (Account Sid)
- Resource Type (Flow)
- Resource Sid (Flow Sid)
- Event Type (as mentioned above)
- Source (web vs api)
- Source IP (Source who made the changes)
- Actor (User Sid / Account Sid)
- Region
An example of a cURL request for the flow.updated events:
curl -X GET "https://monitor.twilio.com/v1/Events?EventType=flow.updated&PageSize=20" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN