Email marketing APIs work by providing endpoints that developers can use to send and retrieve data. For instance, if you want to send an email through an API, you would make a request to a specific endpoint with the required parameters such as the recipient's email address, subject line, and email body. The API then processes this request and sends the email on your behalf.