Theia encode apis for baboon