# List imports

`opensend imports list`

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

Needs the scope: `imports:read`

## Flags

- `--q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `--limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `--offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `--after` (string): 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.
- `--before` (string): 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.
- `--status` (string): Only imports in this state. One of: `queued`, `running`, `completed`, `failed`, `canceled`.

## 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` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("import"): Always `import`.
- `data[].id` (string): The id of the import.
- `data[].source` (string): The service it reads the account from: `resend`. One of: `resend`.
- `data[].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`.
- `data[].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`.
- `data[].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`.
- `data[].report` (object[]): One entry for each thing that was asked for, with what came over and what did not.
- `data[].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`.
- `data[].report[].found` (integer): How many the other account has, as far as the import has read.
- `data[].report[].created` (integer): How many were made here.
- `data[].report[].reused` (integer): How many were here already, from an earlier import or under the same name.
- `data[].report[].skipped` (integer): How many were left out. The notes say why.
- `data[].report[].notes` (object[]): What was left out or changed on the way, each with its reason. The first 50 are kept.
- `data[].report[].notes[].name` (string): What the note is about: a domain, a template, an address.
- `data[].report[].notes[].reason` (string): What happened to it, and what to do about it when there is something.
- `data[].error` (string | null): Why it failed, or what it is waiting on before it tries again. `null` otherwise.
- `data[].createdAt` (string): When the import was started.
- `data[].finishedAt` (string | null): When it ended, or `null` while it runs.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

CLI:

```bash
opensend imports list --limit 10
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "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"
    }
  ],
  "total": 1,
  "hasMore": false
}
```
