API / Import

Method Endpoint Description
GET api/import/subscribers Gets a import statistics.
GET api/import/subscribers/logs Get a import statistics .
POST api/import/subscribers Upload a ZIP file or CSV files to bulk import subscribers.
DELETE api/import/subscribers Stops and deletes a import.

GET api/import/subscribers

Gets a import statistics.

Example Request
curl -u "username:username" -X GET 'http://localhost:9000/api/import/subscribers'
Example Response
{
    "data": {
        "name": "",
        "total": 0,
        "imported": 0,
        "status": "none"
    }
}

GET api/import/subscribers/logs

Gets a import statistics.

Example Request
curl -u "username:username" -X GET 'http://localhost:9000/api/import/subscribers/logs'
Example Response
{
    "data": "2020/04/08 21:55:20 processing 'import.csv'\n2020/04/08 21:55:21 imported finished\n"
}

DELETE api/import/subscribers

Stops and deletes a import.

Example Request
curl -u "username:username" -X DELETE 'http://localhost:9000/api/import/subscribers' 
Example Response
{
    "data": {
        "name": "",
        "total": 0,
        "imported": 0,
        "status": "none"
    }
}