Hello GinaM823,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
When using the GET Contacts Collection endpoint (GET /contacts), the "permission_to_send" parameter in the response body will indicate whether the contact is unsubscribed.
"permission_to_send"
Identifies the type of permission that the Constant Contact account has to send email to the contact. Types of permission: explicit, implicit, not_set, pending_confirmation, temp_hold, unsubscribed.
Additionally, you'll want to set the status query parameter to "ALL" in your request, as when you leave that parameter blank, the results returned only include active contacts, so you wouldn't see any that were unsubscribed, deleted, or both in the response body.
"status"
Use the status query parameter to search for contacts by status. This parameter accepts one or more comma separated values: all, active, deleted, not_set, pending_confirmation, temp_hold, and unsubscribed.
Here is an example of what your GET call might look like:
GET https://api.cc.email/v3/contacts?status=all&email=email@example.com
In the JSON response body, "permission_to_send" will indicate whether the contact is unsubscribed, regardless of whether they have been deleted from the account, and if the contact includes the header "deleted_at", this will indicate that the contact is currently deleted. If that contact is later re-added, "deleted_at" will no longer display in the results.
"deleted_at"
For deleted contacts (email_address contains opt_out_source and opt_out_date), shows the date of deletion.
GET Contacts Collection https://v3.developer.constantcontact.com/api_reference/index.html#!/Contacts/getContacts
Please have a look and let us know if you have any other questions!
... View more