Cancel import
Stops an import that is queued or running and wipes its key. What it already brought over stays.
imports_cancelArguments
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.
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.