This API fetches the status at an import level. It can fetch the status of multiple imports but not the status of the files within the import.
This authentication parameter, used for access control, must be passed along with the request. The API request will be authenticated through Basic Authentication. Basic Authentication sends a Base64-encoded string containing your username and password with every API request. It encodes a 'username:password' string in Base64 and appends the encoded string with 'Basic '. This string is included in the authorization header as shown below:
{"Authorization: Basic Base64_ENCODED_WORKSPACEID_APIKEY=="}
The username and password details can be obtained from the MoEngage Dashboard. If you're using the API for the first time, follow these steps:
Use these details to authenticate the API requests.
This is your MoEngage account's WORKSPACE ID that has to be passed along with the request.You can find your MoEngage Workspace ID at Settings -> Account -> APIs -> Workspace ID (earlier app id).
This field denotes the type of data to be imported.
USERS, EVENTS, AUX_DATA This field denotes the file processing date. Supported values are:
start_dateend_dateformatIf this field is not passed, the API will respond with details of all the files corresponding to the import_id / import_name passed and in accordance to the offset and limit values.
Supported date time formats are:
"datetime_format": "YYYY-MM-DD" (2022-01-22)"datetime_format": "YYYY/MM/DD" (2022/01/22)"datetime_format": "DD/MM/YYYY" (22/01/2022)"datetime_format": "DD-MM-YYYY" (22-01-2022)"datetime_format": "DD-MM-YYYY hh:mm:ss" (31-12-2022 12:10:33)"datetime_format": "DD/MM/YYYY hh:mm:ss" (31/12/2022 12:10:33)"datetime_format": "YYYY-MM-DD hh:mm:ss" (2019-02-22 17:54:14)"datetime_format": "YYYY/MM/DD hh:mm:ss" (2019/02/22 17:54:14)This field denotes the type of import schedule.
PERIODIC, ONETIME This field denotes the file source of the import.
SFTP, S3, CSV This field denotes the import schedule status.
SUCCESSFUL, FAILED, PARTIAL_SUCCESS, SCHEDULED, PROCESSING, QUEUED, ARCHIVED This field denotes the name of the import.
'API responds with a maximum of 50 file details in a single response. For example, if there are a total of 150 files that are part of the API response, then:
You can refer to the total_count parameter in the response to understand how many total files are part of the response.
OR
If the API responds with more_files = true, it indicates that there are more files that are not part of the current response for which another API request must be made with offset +1.'
Success.
This field denotes the status of the API response.
"success"
This field denotes the total count of the imports in the response.
1
This field contains the import data details.
This field denotes the pagination value of the imports. For example, if there are 100 imports to be fetched in the response:
This field indicates if there are more files. For example, if there are 100 imports and offset = 1, 50 imports will be returned with more_file = true to indicate that offset = 2 must be passed to get the next 50 imports.