"Every perception is to some degree an act of creation, and every act of memory is to some degree an act of imagination."
-- Gerald Edelman, Second Nature: Brain Science and Human Knowledge
5 Appendix 2: Using Anki to learn APIs7 Appendix 2: Using Anki to learn APIsAppendix 2: Using Anki to learn APIsAugmenting Long-term Memory2020-09-24Journal
I've tried this a couple of times, and my advice is: don't do it.
It's a form of a problem I described in the main body of the essay: the temptation to stockpile knowledge against some day when you'll use it. You will learn far more quickly if you're simultaneously using the API seriously in a project. Using the API to create something new helps you identify what is important to remember from the API. And it also – this is speculation – sends a signal to your brain saying “this really matters”, and that helps your memory quite a bit. So if you're tempted to do speculative Ankification, please don't. And if you find yourself starting, stop.