API

API documentation

What is the MailCamp XML API?

With the MailCamp XML API you can connect your own website, webshop or business software to MailCamp. This lets different systems exchange data automatically, without you having to transfer it by hand.

An API (Application Programming Interface) is a technical connection that lets software programs communicate with each other. The API determines which data and functions are available and how other systems can use them.

With the MailCamp XML API you can, for example, synchronise contact data from your own database with your mailing lists in MailCamp. Among other things, you can:

  • Add new contacts to a mailing list.
  • Change existing contact data.
  • Unsubscribe or delete contacts.
  • Retrieve mailing lists and contact data.
  • Create and schedule newsletters.
  • Retrieve sending statistics, such as opens and clicks.

How does that work in practice?

Say visitors sign up for a newsletter on your own website. These sign-ups are stored in your own database. With the MailCamp XML API you can automatically pass the new sign-ups on to the right mailing list in MailCamp. This can happen right after a sign-up, but also at a fixed time or on your own schedule.

Your own database remains the central place where you manage contact data. MailCamp receives the data it needs to send your newsletters.

Secure connection

The connection to MailCamp runs over a secure HTTPS connection. To access the API you need a personal XML username and an XML token. These credentials are used to check every API request.

The XML API must first be enabled for the user in question in MailCamp. Requests can only be processed with the correct API credentials. So you don't have to log in to MailCamp manually for every data exchange: access is handled through the secure API credentials.