--- title: "system.twilio.getAccounts" description: "Returns a list of Twilio accounts that have been configured in the Gateway." --- # system.twilio.getAccounts > Returns a list of Twilio accounts 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](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.twilio.getAccounts()` ### Parameters None ### Returns **List** - A list of configured Twilio accounts ### Scope All ## Code Examples ```python title="Example #1" # 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, but could do something more useful with each account print account ```