--- title: "system.twilio.getAccounts" description: "Returns a list of Twilio account names that have been configured in the Gateway." --- # system.twilio.getAccounts > Returns a list of Twilio account names that have been configured in the Gateway. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.twilio.getAccounts()` ### Parameters Nothing ### Returns **List[String]** - A list of configured Twilio account names. ### Scope Gateway, Vision Client, Perspective Session ## Code Examples ```python title="Code Snippet" # Retrieves a list of Twilio accounts and then iterates through the resulting list. # Call system.twilio.getAccounts() and store the returned list into a variable. twilioAccounts = system.twilio.getAccounts() # Iterate through the list of accounts. for account in twilioAccounts: # Prints the account name to the console. print account ```