curl https://api2.ecomailapp.cz/lists/42/subscriber/john.doe@example.com \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"subscriber": {
"id": 12345,
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"company": "Acme Corporation",
"city": "New York",
"country": "US",
"phone": "+1 (555) 123-4567",
"gender": "male",
"tags": ["tag1", "tag2"],
"rating": 4.5,
"list_id": 42,
"status": 1,
"subscribed_at": "2022-01-01T12:00:00.000000Z",
"custom_fields": { "field1": "Value 1" },
"groups": { "grp_60ddec46df422": ["a", "b"] }
}
}
Retrieve a specific subscriber from a list by their email address.
curl https://api2.ecomailapp.cz/lists/42/subscriber/john.doe@example.com \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"subscriber": {
"id": 12345,
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"company": "Acme Corporation",
"city": "New York",
"country": "US",
"phone": "+1 (555) 123-4567",
"gender": "male",
"tags": ["tag1", "tag2"],
"rating": 4.5,
"list_id": 42,
"status": 1,
"subscribed_at": "2022-01-01T12:00:00.000000Z",
"custom_fields": { "field1": "Value 1" },
"groups": { "grp_60ddec46df422": ["a", "b"] }
}
}
1 = subscribed, 2 = unsubscribed, 4 = hard bounce, 5 = spam complaint, 6 = unconfirmed.curl https://api2.ecomailapp.cz/lists/42/subscriber/john.doe@example.com \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"subscriber": {
"id": 12345,
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"company": "Acme Corporation",
"city": "New York",
"country": "US",
"phone": "+1 (555) 123-4567",
"gender": "male",
"tags": ["tag1", "tag2"],
"rating": 4.5,
"list_id": 42,
"status": 1,
"subscribed_at": "2022-01-01T12:00:00.000000Z",
"custom_fields": { "field1": "Value 1" },
"groups": { "grp_60ddec46df422": ["a", "b"] }
}
}