Aristotle Support

API:Email Subscribe & Unsubscribe

Article ID: 1242
Last updated: 31 Jul, 2019

w8jTzc3qM7BzAAAAABJRU5ErkJggg==

API: Email subscribe & Unsubscribe

August 2, 2019

Web API Subscribe and Unsubscribe Endpoints

 We can pass in a JSON array which contains up to 20 records to be updated. During the processing state, if there's no code exception, all records will be updated. If there's a record that failed (with reason other than an exception), the "ResponseStatus" will be "Failed" plus the failure reason. If the record was successfully processed, it will bear the "Success." ResponseStatus. If there's an exception, all previously processed records will be purged (rolled back) completely.

Here's the sample requests:

SUBSCRIBE:

POST /v1/subscribe HTTP/1.1

Host: staging-webapi.aristotle.com

Content-Type: application/json

Authorization: Basic 86741488-17D9-4204-8E67-2E2F9FBB553E

cache-control: no-cache

Postman-Token: 0640379e-37b8-4f04-a5ff-3fc6d87532ba

[  

   {

      "SourceId":"AI.25466",

      "Email":"terra.mckay2222@aristotle.com"

   }

]

UNSUBSCRIBE:

POST /v1/unsubscribe HTTP/1.1

Host: staging-webapi.aristotle.com

Content-Type: application/json

Authorization: Basic 86741488-17D9-4204-8E67-2E2F9FBB553E

cache-control: no-cache

Postman-Token: 0640379e-37b8-4f04-a5ff-3fc6d87532ba

[  

   {

      "SourceId":"AI.25466",

      "Email":"terra.mckay2222@aristotle.com"

   }

]

SAMPLE RESPONSE:

[

    {

        "SourceId": "AI.25466",

        "Email": "terra.mckay2222@aristotle.com",

        "ResponseStatus": "Success."

    }

]

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1242
Last updated: 31 Jul, 2019
Revision: 1
Views: 12
Tags

Attached files