Accessing the Lists API

DWQA QuestionsCategory: API + IntegrationsAccessing the Lists API
Charley Support Staff asked 4 years ago
1 Answers
Best Answer
Robert Thanh Parker Staff answered 4 years ago

Email Lists API

Send a HTTPS request to

https://api.rekko.com/lists

 

Authorization: Basic

Encode the user name and password with Base 64 encyption

Request type GET

Response will be array of objects with HTTP Status 200

Example

[
{
"site_id": "XXXXXXX",
"id": "e4c3f0b4-ca97-11e5-aaaa-1111-aa111111",
"name": "sean test",
"description": "",
"admin_emails": "[email protected]",
"rekko_mail": "[email protected]",
"last_count": 2,
"double_optin": false,
"from_email": "[email protected]",
"from_name": "thummapudi",
"created_at": "Feb 3, 2016 5:02:23 PM",
"updated_at": "Mar 31, 2016 4:24:05 PM",
"subs_count": 3,
"unsubs_count": 0,
"max_count": 100000
}
]

3) Adding an email to a email to a list:

https://api.rekko.com/lists/LISTID/subscribe
Request type: POST
Data to be Passed

email: EMAIL

Optional Data:

siteId :  SITEID
firstName: FIRSTNAME
lastName: LASTNAME

 

LISTID is the ID of the email list that you want to add email

SITEID is the site id given at time of account creation

EMAIL is the email to be added to the list

 

Please use same authorization headers as previous request

 

4) Unsubscribe Email from a list

 

Send a https POST request to

https://api.rekko.com/lists/{listid}/unsusbcribe
Rest all same as subscribe