set to return JSON response with api token.