Add API (auto-generated)

Fixes #1