https://tools.ietf.org/html/rfc8555 describes the entire ACME protocol if you want to program your own integration.
Certbot is only one of many client options - https://letsencrypt.org/docs/client-options/ . A sample of options more suitable for IoT devices: