Adding an API