Get Contact List Details

Retrieve a contact list details.

Method: GET
Endpoint: /api/getList


Parameter Type Required


list_id int Yes

Required to retrieve the specific list from the system, $id is the value here which refers to the ID of that list you want to retrieve. 

Response Parameters

Parameter Type Response
status string Success or Error
response string Result of the operation

Example Request (CURL)

$api_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$id = 2;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"$id");
curl_setopt($ch, CURLOPT_HTTPHEADER,
    array('Content-Type: application/json', 'Authorization: Bearer ' . $api_token));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
curl_close ($ch);

Success Response

{"status":"success","response":"Success: [{\"id\":21,\"name\":\"Through API\",\"group_id\":37,\"owner_name\":\"Adnan Testing API\",\"owner_email\":\"[email protected]\",\"reply_email
\":\"[email protected]\",\"bounce_email_id\":10,\"is_deleted\":0,\"validate\":0,\"user_id\":2,\"total_subscribers\":0,\
"export_status\":0,\"download_status\":0,\"import_status\":0,\"created_at\":\"2019-03-14 06:48:41\",\"updated_at\":\"2019-03-14 06:51:03\"}]""}
A Valid API call will return success response along with the available data system has about the specific list, like List Name, List Owner, List Owner Email, Reply to Email and such.

Error Response

{"status":"error","response":"Error message goes here"}
Status value of the response will be "Error" alongwith reason of the error occurred.
Try it out