@jordinho why no use the api as a data instead of an action? and see if this would solve the issue.