API mailing