API safety