Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents:

Table of Contents
minLevel2


(info) Note: Notice that in each API call you must provide the List ID that you are working on, otherwise the default List ID will be used. 

Methods Summary

GET /api/import/<Import ID>

Description 

This method returns detailed info for a provided Import ID.

...

"40001": "Queued"
"40010": "Validating"
"40002": "Processing"
"40003": "Completed"
"40004": "Updating list stats"
"90001": "Error"
"90008": "Invalid"
(info)  Any status >= 90000 are final statuses of errors.

GET /api/import

Description 

This method returns a collection of all import details for a given list in the response.

Code Block
{
   "metadata":{
      "error":false
   },
   "payload":{
      "id":"1541564936",
      "action":"remove",
      "name":"td_inactive_removal_export_4.csv",
      "file":"62b63a53c20cc",
      "file_url":null,
      "imported_by":"17377",
      "is_override":"0",
      "send_welcome_message":"0",
      "send_email_notification":"0",
      "csv_delimiter":",",
      "encoding":"UTF-8",
      "ignore_empty":"0",
      "overwrite_only_nulls":"0",
      "fields":"{\"email\":{\"name\":\"email\",\"type\":\"email\"}}",
      "progress":"46",
      "file_size_bytes":"0",
      "total":"10000000",
      "success":"4097000",
      "failed":"0",
      "duplicate":"0",
      "existing":"0",
      "not_existing":"0",
      "incomplete":"0",
      "invalid":"0",
      "status":"40002",
      "status_info":"",
      "remaining":"",
      "import_process_start_time":"1656110930",
      "import_process_end_time":"0",
      "account_id":"7994",
      "list_id":"50423",
      "created":"1656109652",
      "modified":"1656504791",
      "deleted":"0",
      "can_be_aborted":"1",
      "type":"sending",
      "status_desc":"Processing (46%)"
   }
}

POST /api/import

Description 

This method is used to create an import.

...

sending (Default)

suppression

send_email_notification

Optional string - In order to receive email notification for an import, set the value to true

Request Example - Sending List Import

...

  • 403 - Permission error
  • 500 - Validation error

Password Protect Import File Feature

  • You can password protect the the file you want to import, by zipping it up into a zip file, and setting a password on that zip file.
  • In order for Ongage to then be able to open that file, go to the Account General Settings Page, and enter there the password needed to open the zip file.

Additional Security Measures Beyond Password Protection

The API import call requires indicating a URL to the import file. You can secure that URL in the following manner:

  • Place the file just prior to the import and delete the file right after the import.
  • On the client's web servers (regardless of which web server) there is always an accesslog. If the file is deleted from the server after Ongage downloaded it + if the access log doesn't show any other download other than Ongage, it means the data is safe.
  • Disabling directory indexing.
  • Renaming the import files to a random and long string will also help protecting against people finding the URL as long as directory indexing is disabled.
  • You can make the directory accessible only to your IPs and Ongage's IPs. Ask Ongage support for how to obtain a list of Ongage IPs.
  • Finally, as an additional security measure you can use https instead of http.

How to Import a file from an S3 bucket

Prerequisites

  • You have AWS account.
  • You have an S3 bucket (With the name ‘my_company_name_ongage_imports’ for example).

...