This is an old revision of the document!


API Contact Endpoints

Add a Contact

This API Endpoint is used to add a new Contact to the Sentori Account. If no Contact Fields are included in the add you can use GET on this Endpoint, if including Contact Fields then you must use POST.

Endpoint

URI https://api.sentoriapp.com/v2.0/contact/add/email%40domain.com/
Method POST or GET

Request Body

Request body is only required if including Contact Fields. The example below would add a new Contact with the FirstName and LastName Contact Fields being set.

Example
{
    "FirstName":"Joe",
    "LastName":"Blogs"
}

Update a Contact

This API Endpoint is used to add a update an existing Contact in the Sentori Account.

Endpoint

URI https://api.sentoriapp.com/v2.0/contact/update/email%40domain.com/
Method POST

Request Body

Request body should contain the Contact Fields to update. The below example updates the email address and first/last names.

Example
{
   "EmailAddress":"newaddress@domain.com",
    "FirstName":"Joe",
    "LastName":"Blogs"
}

Subscribe a Contact

This API Endpoint is used to add a Contact to a Mailing List. You can find the Mailing List external IDs on the Mailing List page in Sentori.

Endpoint

URI https://api.sentoriapp.com/v2.0/contact/subscribe/email%40domain.com/MailingListExternalID
Method GET

Unsubscribe a Contact

This API Endpoint is used to remove a Contact from a Mailing List or to remove from all Mailing Lists and suppress the Contact. You can find the Mailing List external IDs on the Mailing List page in Sentori.

Endpoint (Unsubscribe from Mailing List)

URI https://api.sentoriapp.com/v2.0/contact/unsubscribe/email%40domain.com/MailingListExternalID/
Method GET

Endpoint (Unsubscribe from everything)

URI https://api.sentoriapp.com/v2.0/contact/unsubscribe/email%40domain.com/
Method GET