Flow API