What is the time validity of the token?

Standard token validity is 30 minutes. You can receive 30 days valid token if you specify parameter ”permanent”: true during login.

In the future version the token time validity will be specified in user settings and parameter permanent will be ommited.