Skip to main content
Skip table of contents

List Import API - Importing Subscriber

The List Import API allows you to easily add or update new or existing distribution lists. Check out the detailed API specification.

Examples

Using cURL Bash

BASH
curl -X 'POST' \
  'https://webexpress.retarus.com/PicoPortal/autoLogin/listImport/' \
  -H 'accept: text/plain' \
  -H 'Content-Type: multipart/form-data' \
  -F 'j_username=user' \
  -F 'j_password=password' \
  -F 'dlu_type=distributionlist' \
  -F 'dlu_listname=Name distribution list'  \
  -F 'dlu_listcomment=Comment for the distribution list' \
  -F 'dlu_defaultcountrycode=+49' \
  -F 'dlu_firstrowcolumnnames=on' \
  -F 'dlu_charset=UTF-8' \
  -F 'dlu_file=@Test-Upload.csv;type=text/csv'

Using Powershell

POWERSHELL
$Uri = 'https://webexpress.retarus.com/PicoPortal/autoLogin/listImport/'

$Form = [ordered]@{j_username = "user";
    j_password                = "password";
    dlu_listname              = 'Test-Upload.csv';
    dlu_charset               = 'UTF-8';
    dlu_defaultcountrycode    = '+49';
    dlu_firstrowcolumnnames   = 'on';
    dlu_type                  = "distributionlist";
    dlu_listcomment           = "the distribution list";
    dlu_file                  = Get-Item -Path  "./testdistributionlist.csv"
}
$Result = Invoke-WebRequest -Uri $Uri -Method Post -Form $Form

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.