opening api