Skip to the page

List imports

The imports of the workspace, newest first, each with its report.

GET/v1/imports
Needs the scopeimports:read

Query parameters

  • qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • afterstring

    The 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.

  • beforestring

    The 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.

  • statusstring

    Only imports in this state.

    One ofqueuedrunningcompletedfailedcanceled

Returns

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"import"

    Always import.

  • data[].idstring

    The id of the import.

  • data[].sourcestring

    The service it reads the account from: resend.

    One ofresend

  • data[].statusstring

    Where it stands: queued before it starts, running while it reads, then completed, failed or canceled.

    One ofqueuedrunningcompletedfailedcanceled

  • data[].resourcesstring[]

    What was asked for, in the order it is done.

    One ofdomainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationsevents

  • data[].stepstring | null

    What is being read right now, or null.

    One ofdomainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationsevents

  • data[].reportobject[]

    One entry for each thing that was asked for, with what came over and what did not.

  • data[].report[].resourcestring

    What was read: domains, suppressions, audiences, contacts, templates, broadcasts, webhooks or api_keys.

    One ofdomainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationsevents

  • data[].report[].foundinteger

    How many the other account has, as far as the import has read.

  • data[].report[].createdinteger

    How many were made here.

  • data[].report[].reusedinteger

    How many were here already, from an earlier import or under the same name.

  • data[].report[].skippedinteger

    How 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[].namestring

    What the note is about: a domain, a template, an address.

  • data[].report[].notes[].reasonstring

    What happened to it, and what to do about it when there is something.

  • data[].errorstring | null

    Why it failed, or what it is waiting on before it tries again. null otherwise.

  • data[].createdAtstring

    When the import was started.

  • data[].finishedAtstring | null

    When it ended, or null while it runs.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.