Need API documentation

You might want to take a look at

if you specifically want to write your own Python code. (This was originally written by Jakub Warmuz and is the implementation of the ACME protocol that Certbot uses, but it could be used by other clients too.)

But if you want the simplest possible solution, I agree that finding an appropriate Certbot plugin for your environment is a lot simpler than writing a new ACME client implementation!