README.md: add the API