API: Differentiate internal and client api.