Earlier quoted context omitted.
Plugging a competitor here, but I believe Postman has the ability to generate documentation.
And it can also generate program code for a lot of languages, curl or wget requests etc, and is has the interceptor plugin.. cant really be beaten at this time...
P.S. Insomnia also has code generation https://insomnia.rest/documentation/code-snippets/