# Start import

`POST /v1/imports`

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.

Needs the scope: `imports:write`

## Body parameters

- `source` (string): The service to read the account from. Without it, `resend`. One of: `resend`.
- `apiKey` (string, required): A 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.
- `resources` (string[]): What to bring over: any of `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks` and `api_keys`. Without it, all of them. One of: `domains`, `suppressions`, `audiences`, `contacts`, `templates`, `broadcasts`, `webhooks`, `api_keys`, `topics`, `contact_properties`, `automations`, `events`.

## Returns

- `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

cURL:

```bash
curl -X POST "$OPENSEND_API_URL/v1/imports" \
  -H "Authorization: Bearer $OPENSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "apiKey": "re_full_access_sample_key",
  "resources": [
    "templates"
  ]
}'
```

TypeScript:

```ts
await opensend.imports.create({
  apiKey: 're_full_access_sample_key',
  resources: ['templates'],
})
```

CLI:

```bash
opensend imports create \
  --api-key re_full_access_sample_key \
  --resources templates
```

MCP:

```json
{
  "name": "imports_create",
  "arguments": {
    "apiKey": "re_full_access_sample_key",
    "resources": [
      "templates"
    ]
  }
}
```

Answer:

```json
{
  "object": "import",
  "id": "imp_01",
  "source": "resend",
  "status": "queued",
  "resources": [
    "templates"
  ],
  "step": null,
  "report": [
    {
      "resource": "templates",
      "found": 0,
      "created": 0,
      "reused": 0,
      "skipped": 0,
      "notes": []
    }
  ],
  "error": null,
  "createdAt": "2026-11-27T09:30:00.000Z",
  "finishedAt": null
}
```
