List imports
The imports of the workspace, newest first, each with its report.
opensend imports list [flags]Flags
--qstringText to search for. Only items that contain it are returned. Up to 40 characters.
--limitintegerHow many items to return, from 1 to 100. Without it you get 25.
--offsetintegerHow many items to skip. Use it with
limitto read the next page. Default:0.--afterstringThe id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
--beforestringThe id of the first item you have. The answer ends with the item just before it. Give this or
after, not both. Up to 64 characters.--statusstringOnly imports in this state.
One of
queuedrunningcompletedfailedcanceled
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"list"Always
list.dataobject[]The items on this page.
data[].object"import"Always
import.data[].idstringThe id of the import.
data[].sourcestringThe service it reads the account from:
resend.One of
resenddata[].statusstringWhere it stands:
queuedbefore it starts,runningwhile it reads, thencompleted,failedorcanceled.One of
queuedrunningcompletedfailedcanceleddata[].resourcesstring[]What was asked for, in the order it is done.
One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsdata[].stepstring | nullWhat is being read right now, or
null.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsdata[].reportobject[]One entry for each thing that was asked for, with what came over and what did not.
data[].report[].resourcestringWhat was read:
domains,suppressions,audiences,contacts,templates,broadcasts,webhooksorapi_keys.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsdata[].report[].foundintegerHow many the other account has, as far as the import has read.
data[].report[].createdintegerHow many were made here.
data[].report[].reusedintegerHow many were here already, from an earlier import or under the same name.
data[].report[].skippedintegerHow many were left out. The notes say why.
data[].report[].notesobject[]What was left out or changed on the way, each with its reason. The first 50 are kept.
data[].report[].notes[].namestringWhat the note is about: a domain, a template, an address.
data[].report[].notes[].reasonstringWhat happened to it, and what to do about it when there is something.
data[].errorstring | nullWhy it failed, or what it is waiting on before it tries again.
nullotherwise.data[].createdAtstringWhen the import was started.
data[].finishedAtstring | nullWhen it ended, or
nullwhile it runs.totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.