Skip to main content
GET
https://api2.ecomailapp.cz
/
lists
/
{list_id}
/
subscriber-by-phone
/
{phone}
curl https://api2.ecomailapp.cz/lists/789/subscriber-by-phone/+420777888999 \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "subscriber": {
    "id": 123456,
    "list_id": 789,
    "email": "foo@bar.cz",
    "status": 1,
    "subscribed_at": "2023-01-01T00:00:00.000000Z",
    "custom_fields": { "ID": "123" },
    "source": "API"
  }
}
list_id
integer
required
ID of the list.
phone
string
required
Phone number of the subscriber. Must be a valid international phone number.
curl https://api2.ecomailapp.cz/lists/789/subscriber-by-phone/+420777888999 \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "subscriber": {
    "id": 123456,
    "list_id": 789,
    "email": "foo@bar.cz",
    "status": 1,
    "subscribed_at": "2023-01-01T00:00:00.000000Z",
    "custom_fields": { "ID": "123" },
    "source": "API"
  }
}