Making your first API call
The quickest way to check whether everything works is to retrieve your lists. This call does not change anything in your account and gives an immediate response. You can make this call right here on the site or from your own computer.
Making a call via this site
Create an API key
Create a key in your account under ‘Connect’. A new key is only visible once, so save it straight away. See: Create an API key.
Enter your key and send
Click ‘Try it’ on the right of the code example and enter your key under ‘api_key’. Then click send. You can read more about this field and button at Trying out the API with Try it.
This makes a real API call. To find out how to test safely, see Trying out the API with Try it.
Making a call from your own system
You can read how to send your key along at Authentication with your API key.
With the PHP library, this is:
A response looks like this, shortened to one list:
Adding a subscriber
The next call you will probably need is adding a subscriber. In addition to the email address, the IP address is required, as this records where the registration came from.
The keys within custom_fields are the custom_name of your own fields. You can retrieve these once with Retrieve all fields and store them in your own code.