Contacts can be imported in Mailmodo from your software stack via API. Following is the API request structure to do the same:

API Gateway URL:

The Mailmodo API Gateway URL is https://api.mailmodo.com/ You need to include this before each API endpoint to make API calls.

API End point:

https://api.mailmodo.com/api/v1/addToList

API Authorization:

Mailmodo APIs are completely RESTful. All Mailmodo APIs are authorized via an API key.

Generate API Key:

  1. Login to your Mailmodo account with appropriate credentials.

  2. Navigate to SettingsAPI KeysShow API Key to view the default API key. (You may also create a new API Key by clicking on the 'Add new API Key' button)

Request:

- Header:

'mmApiKey': '<api key value>'

'Content-Type': 'application/json'

- Body:

Parameters:

email

  • Required field

  • Email address of the contact to be added

data

  • Optional personalization fields in key-value pairs. ex-
    "First Name": "Daniel"

listName

  • Name of the list to which the contact to be added. If the list does not exist, it will be created

Response:

Parameters:

success

true/false

message

"The contact is successfully added/updated"

Did this answer your question?