terminals api