Fetch upload status
const url = 'https://api.optizmo.com/optout-list/upload-status/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {api_key: '<api_key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.optizmo.com/optout-list/upload-status/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'api_key: <api_key>'Fetches the current status of an optout-list upload
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Reference returned from the request to /optout-list/prepare-upload
Responses
Section titled “ Responses ”Details on the progress of an optout-list upload
object
The current status of the upload
(optional) Progress or error message output related to the upload. This will only be returned if the status
is success or failed.
(optional) The number of seconds that has elapsed since the uploaded list was ready for processing. This does not include the time taken to upload the file.
(optional) The number of opt-outs that were successfully imported and added to the target list.
This will only be returned if the status is success or failed.
(optional) The number of opt-outs that were discarded due to being formatted incorrectly.
This will only be returned if the status is success or failed.
(optional) The number of opt-outs that were detected in the uploaded file.
This will only be returned if the status is success or failed.
Example
{ "status": "running"}Invalid request payload sent. Further details will be available in the response payload.
Authorization not sent or failed.
Attempted to access a resource not owned by the requesting user.