Hostname CSR and Certificate automation

I would like to automate certificate signing request (CSR) and certificate uploads for my hostnames (i.e. https://myisp.sonar.software/system/hostnames). I don’t see any v1 APIs for that. Is there a way to automate this?