Add API endpoint.
Merge branch 'feature/api' into develop