updated get token api end point