Added new API endpoints.

Sorry about the delay; I got stuck on git.