You have to use the Canadian passport to get out and get into Canada. Even though API is required you can use another passport to enter another country.
However, when exiting that particular country at airline check in, if returning to Canada then you have to use the Canadian passport. But at immigration at departure of that country, you use the same passport you used to enter that particular country. It's not an issue for dual passport holders.