Add API_KHS endpoint.

This implements #19.