Mail Partner
Introduction to the Mail Partner API
Emails are sent from the Mail Partner platform. From the website, you have immediate access to our free API: it allows you to easily integrate our email services into your website, software, or CRM application in PHP, ASP, .NET, Java, or any other language.
Required Parameters
Each API request must include at least the following parameters:
apiKey
Your account's API key. You can obtain it from your Mail Partner dashboard.
Optional Parameters
_format
Response format: json (default) or xml.
Example call:
https://api.smspartner.fr/v1/me?apiKey=YOUR_API_KEY&_format=jsonResponse Format and Content-Type
You can format your request in either json or xml.
You must set the appropriate header (Content-Type) accordingly:
_format
Content-Type
json
application/json
xml
application/xml
Example JSON request:
POST /v1/send HTTP/1.1
Host: api.mailpartner.fr
Content-Type: application/json
{
"apiKey": "API_KEY",
"subject": "My first email",
"htmlContent": "Hello world",
"params":{
"to":[
{
"email":"my@email2.com"
}
]
}
}Requests
All API requests must be sent to:
{command} corresponds to the API call you wish to make, with the parameters included in the body (POST) or in the URL (GET).
Last updated