How to store the variables like name, address, email etc which is collected from the user?

We want to collect some details from the user and store it and pass it to an api call in the tool. How to store the variables and how to access it?