ESP-IDF Docs is a reference for Espressif's embedded development framework, not a hosted REST service requiring an API key. Start with the project's target chip and installed ESP-IDF version, then select the corresponding documentation.
Espressif distinguishes development documentation from stable releases in its version guide. An example from another release or chip can lead to misleading build errors.
When asking for help, share the target, framework version, relevant configuration, and the first meaningful compiler error. Reduce the problem to a small example before changing the whole toolchain.