# Retrieve import

`opensend imports get`

One import with where it stands and its report so far.

Needs the scope: `imports:read`

## Flags

- `<id>` (string, required): The id of the item. Up to 64 characters.

## 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](https://opensend.sh/docs/scripting) lists the codes.

- `object` ("import"): Always `import`.
- `id` (string): The id of the import.
- `source` (string): The service it reads the account from: `resend`. One of: `resend`.
- `status` (string): Where it stands: `queued` before it starts, `running` while it reads, then `completed`, `failed` or `canceled`. One of: `queued`, `running`, `completed`, `failed`, `canceled`.
- `resources` (string[]): What was asked for, in the order it is done. One of: `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks`, `api_keys`, `topics`, `contact_properties`, `automations`, `events`.
- `step` (string | null): What is being read right now, or `null`. One of: `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks`, `api_keys`, `topics`, `contact_properties`, `automations`, `events`.
- `report` (object[]): One entry for each thing that was asked for, with what came over and what did not.
- `report[].resource` (string): What was read: `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks` or `api_keys`. One of: `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks`, `api_keys`, `topics`, `contact_properties`, `automations`, `events`.
- `report[].found` (integer): How many the other account has, as far as the import has read.
- `report[].created` (integer): How many were made here.
- `report[].reused` (integer): How many were here already, from an earlier import or under the same name.
- `report[].skipped` (integer): How many were left out. The notes say why.
- `report[].notes` (object[]): What was left out or changed on the way, each with its reason. The first 50 are kept.
- `report[].notes[].name` (string): What the note is about: a domain, a template, an address.
- `report[].notes[].reason` (string): What happened to it, and what to do about it when there is something.
- `error` (string | null): Why it failed, or what it is waiting on before it tries again. `null` otherwise.
- `createdAt` (string): When the import was started.
- `finishedAt` (string | null): When it ended, or `null` while it runs.

## Example

CLI:

```bash
opensend imports get imp_01
```

Answer:

```json
{
  "object": "import",
  "id": "imp_01",
  "source": "resend",
  "status": "completed",
  "resources": [
    "templates"
  ],
  "step": null,
  "report": [
    {
      "resource": "templates",
      "found": 2,
      "created": 2,
      "reused": 0,
      "skipped": 0,
      "notes": [
        {
          "name": "Password reset",
          "reason": "{{{user.link}}} has no equivalent here and was left as written."
        },
        {
          "name": "Password reset",
          "reason": "The alias password-reset was taken, so it got password-reset-resend. Sends that name the old alias reach the other template."
        }
      ]
    }
  ],
  "error": null,
  "createdAt": "2026-11-27T09:30:00.000Z",
  "finishedAt": "2026-11-27T09:30:00.000Z"
}
```
