Accept Header

The Maileon API returns the results as XML except for the cases where files are requested (html, pdf, image etc …). Each request expecting an XML result must include the following header:

Requests expecting a file as result must specify the mime type of the file as value of the Accept header. Examples:

Content-Type Header

POST and PUT requests submitted to the Maileon API must contain a Content-Type header with the following value for XML requests:

or with the mime type of the file to be uploaded: