Make instance api prettier.

@nacx @danbroudy lemme know if you agree this is prettier. If so, I will help do the other apis.