curl https://api2.ecomailapp.cz/lists/1 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"list": {
"id": "1",
"name": "List Name",
"from_name": "Sender Name",
"from_email": "sender@example.com",
"reply_to": "reply@example.com",
"sub_success_page": null,
"sub_confirmed_page": "https://www.example.com/confirm?email=*|EMAIL|*",
"unsub_page": null,
"double_optin": true,
"conf_subject": "Confirmation Subject",
"conf_message": "Please confirm your subscription: *|SUBCONFIRM|*",
"custom_fields": {
"date1": { "type": "string", "name": "Date Field" },
"size": { "type": "int", "name": "Size Field" }
},
"groups": {
"grp_5e83080ebb988": {
"name": "Group 1",
"category": [{ "name": "Category A", "id": "plnQNPzCz" }],
"id": "grp_1",
"type": "select"
}
},
"segments": {
"5c36008811e45": {
"name": "Segment 1",
"id": "5c36008811e45"
}
},
"active_subscribers": 100,
"created": "26.6.2018"
},
"subscribers": {
"unknown": 0,
"subscribed": 375,
"unsubscribed": 143,
"soft_bounced": 9,
"hard_bounced": 11,
"complained": 1,
"unconfirmed": 25
}
}
Retrieve detailed information about a specific list, including custom fields, groups, segments, and subscriber counts.
curl https://api2.ecomailapp.cz/lists/1 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"list": {
"id": "1",
"name": "List Name",
"from_name": "Sender Name",
"from_email": "sender@example.com",
"reply_to": "reply@example.com",
"sub_success_page": null,
"sub_confirmed_page": "https://www.example.com/confirm?email=*|EMAIL|*",
"unsub_page": null,
"double_optin": true,
"conf_subject": "Confirmation Subject",
"conf_message": "Please confirm your subscription: *|SUBCONFIRM|*",
"custom_fields": {
"date1": { "type": "string", "name": "Date Field" },
"size": { "type": "int", "name": "Size Field" }
},
"groups": {
"grp_5e83080ebb988": {
"name": "Group 1",
"category": [{ "name": "Category A", "id": "plnQNPzCz" }],
"id": "grp_1",
"type": "select"
}
},
"segments": {
"5c36008811e45": {
"name": "Segment 1",
"id": "5c36008811e45"
}
},
"active_subscribers": 100,
"created": "26.6.2018"
},
"subscribers": {
"unknown": 0,
"subscribed": 375,
"unsubscribed": 143,
"soft_bounced": 9,
"hard_bounced": 11,
"complained": 1,
"unconfirmed": 25
}
}
curl https://api2.ecomailapp.cz/lists/1 \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"list": {
"id": "1",
"name": "List Name",
"from_name": "Sender Name",
"from_email": "sender@example.com",
"reply_to": "reply@example.com",
"sub_success_page": null,
"sub_confirmed_page": "https://www.example.com/confirm?email=*|EMAIL|*",
"unsub_page": null,
"double_optin": true,
"conf_subject": "Confirmation Subject",
"conf_message": "Please confirm your subscription: *|SUBCONFIRM|*",
"custom_fields": {
"date1": { "type": "string", "name": "Date Field" },
"size": { "type": "int", "name": "Size Field" }
},
"groups": {
"grp_5e83080ebb988": {
"name": "Group 1",
"category": [{ "name": "Category A", "id": "plnQNPzCz" }],
"id": "grp_1",
"type": "select"
}
},
"segments": {
"5c36008811e45": {
"name": "Segment 1",
"id": "5c36008811e45"
}
},
"active_subscribers": 100,
"created": "26.6.2018"
},
"subscribers": {
"unknown": 0,
"subscribed": 375,
"unsubscribed": 143,
"soft_bounced": 9,
"hard_bounced": 11,
"complained": 1,
"unconfirmed": 25
}
}