Update api.js

add pass