For developers

API integration

With the MailCamp API you synchronise data between your own system and MailCamp and get a seamless integration.

Exchange data

The MailCamp API

With the extensive MailCamp API you can exchange data between your own system and MailCamp. This lets you synchronise data between both systems. Think of a CRM or ERP system or your web shop, for example.

  • Link contact details from your own database to your mailing lists
  • Add and delete data without logging in to MailCamp
  • Your own database remains the leading source
endpoint
POSThttps://www.yourdomain.com/mailcamp/xml.php
username
[XML USERNAME]
usertoken
[XML TOKEN]
requesttype
subscribers
requestmethod
AddSubscriberToList
responsetype
xml | json
status
SUCCESS

API calls

What you can do with the MailCamp API

Many API calls are possible, even more than described in the API documentation.

  • Add, edit or delete a contact
  • Change an email address
  • Retrieve contacts
  • Retrieve mailing lists
  • Create mailing lists
  • Create a newsletter
  • Retrieve newsletters
  • Schedule a newsletter
  • Retrieve newsletter statistics
  • Retrieve statistics (opens, clicks, unsubscribes)
  • Retrieve the sent newsletter archive
  • Create, edit or delete tags
  • Add to the exclusion list

Do you have specific requirements for your organisation? We are happy to think along with you.

Get in touch

Get started

How a request works

You send an XML POST request to your personal XML path. The code samples in the documentation are written in PHP and use cURL.

  1. Enable the XML API

    Go to User account ⇨ Edit user, tab 'User Permissions', tick 'Enable the XML API' and save.

  2. Find your XML path and token

    In the same section you will find the XML path, the 'XML Username' and the 'XML token'.

  3. Send your request

    Choose a requesttype and requestmethod and receive the response as XML or JSON. For a successful response the status is SUCCESS.

API calls using TLS 1.0 are not supported.

Add a contact
POST https://www.yourdomain.com/mailcamp/xml.php

<xmlrequest>
  <username>[XML USERNAME]</username>
  <usertoken>[XML TOKEN]</usertoken>
  <requesttype>subscribers</requesttype>
  <requestmethod>AddSubscriberToList</requestmethod>
  <responsetype>xml</responsetype>
  <details>
    <mailinglist>99</mailinglist>
    <contact>
      <emailaddress>email@mailcamp.nl</emailaddress>
      <confirmed>yes</confirmed>
      <add_to_autoresponders>false</add_to_autoresponders>
    </contact>
  </details>
</xmlrequest>

FAQ

Frequently asked questions

At MailCamp we answer all your questions about our API.

Is using the API free of charge?

We apply a fair use policy. If an API is used excessively or thousands of contacts have to be synchronised very regularly, we may charge for this. Get in touch with sales and tell us what you want to use the API for.

The API call I need is not in the documentation. What now?

There are more API calls than described in our API documentation. In some cases we also build custom API calls. Please do get in touch, because nothing is impossible!

Are there any throttling limits?

No, but if we see that the API is being overloaded, we may block API access. We always recommend working with the API as efficiently as possible and not blindly synchronising data that has not changed since the last sync.

Try MailCamp free for 30 days

Test the integration with your own system and experience all the features for yourself. You are not tied to anything.

Try it free now
30 days completely freeNo obligationNo credit card required