Skip to content

Manage the subscription status of an existing contact

To manage a Contact subscription for one or multiple Lists, do a POST on /contact/{contact_ID}/managecontactslists.

Example

curl -s \
	-X POST \
	--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
	https://api.mailjet.com/v3/REST/contact/$contact_ID/managecontactslists \
	-H 'Content-Type: application/json' \
	-d '{
      "ContactsLists":[
        {
          "Action":"addforce",
          "ListID":"987654321"
        },
        {
          "Action":"addnoforce",
          "ListID":"987654321"
        },
        {
          "Action":"remove",
          "ListID":"987654321"
        },
        {
          "Action":"unsub",
          "ListID":"987654321"
        }
      ]
	}'

API Response

{
	"Count": 1,
	"Data": [
		{
			"ContactsLists": [
				{
					"ListID": 987654321,
					"Action": "addnoforce"
				}
			]
		}
	],
	"Total": 1
}