Free API for temp-mail.org.
Official docs: https://temp-mail.org/en/api/
Response can be in XML or JSON
On their site it says you have to pay for an API via rapidapi.com, but you can just use the same API used by their website.
You can specify an existing mailbox and check/delete emails, or create a new address, by choosing from the available domains.