Start import
Brings a Resend account over: its domains, suppression list, segments as audiences, contacts, templates, draft broadcasts and webhooks, and the names of its API keys. It runs in the background and can be run again: what is already here is left alone. Nothing arrives in a state that sends, and the key is kept sealed only while the import runs.
opensend imports create [flags]Flags
--sourcestringThe service to read the account from. Without it,
resend.One of
resend--api-keystringRequiredA key of the other account with full access. At Resend it starts with
re_. It is used to read, never to send or to change anything there.--resourcesstring[]What to bring over: any of
domains,suppressions,audiences,contacts,templates,broadcasts,webhooksandapi_keys. Without it, all of them.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationsevents
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"import"Always
import.idstringThe id of the import.
sourcestringThe service it reads the account from:
resend.One of
resendstatusstringWhere it stands:
queuedbefore it starts,runningwhile it reads, thencompleted,failedorcanceled.One of
queuedrunningcompletedfailedcanceledresourcesstring[]What was asked for, in the order it is done.
One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsstepstring | nullWhat is being read right now, or
null.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsreportobject[]One entry for each thing that was asked for, with what came over and what did not.
report[].resourcestringWhat was read:
domains,suppressions,audiences,contacts,templates,broadcasts,webhooksorapi_keys.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsreport[].foundintegerHow many the other account has, as far as the import has read.
report[].createdintegerHow many were made here.
report[].reusedintegerHow many were here already, from an earlier import or under the same name.
report[].skippedintegerHow many were left out. The notes say why.
report[].notesobject[]What was left out or changed on the way, each with its reason. The first 50 are kept.
report[].notes[].namestringWhat the note is about: a domain, a template, an address.
report[].notes[].reasonstringWhat happened to it, and what to do about it when there is something.
errorstring | nullWhy it failed, or what it is waiting on before it tries again.
nullotherwise.createdAtstringWhen the import was started.
finishedAtstring | nullWhen it ended, or
nullwhile it runs.