> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resend: Contacts Create Import

> Create a contact import. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Create a contact import.

> [!NOTE]
>
> Tool ID: `resend_contacts_create_import`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'resend_contacts_create_import',
  {
    "file": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_contacts_create_import --input '{
  "file": "example"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "object": "example",
    "id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

Use `deepline describe resend_contacts_create_import --json` for the latest machine-readable contract.

## Input reference

Create a contact import

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.file` | `string` | Yes | — | Literal UTF-8 CSV contents, not a path or URL. Uploaded as multipart contacts.csv. Resend has a 50 MB file ceiling. Deepline deployment request limits can be lower. Use small imports through this JSON tool. Minimum length: 1. |
| `payload.column_map` | `string` | No | — | JSON-encoded object mapping contact fields and custom property keys to CSV column names. Supports `email`, `first_name`, `last_name`, `unsubscribed`, and `properties`. Custom property mappings can include `type` as `string`, `number`, or `boolean`. Defaults to `string`. |
| `payload.on_conflict` | `"upsert" \| "skip"` | No | `"skip"` | Strategy to use when an imported contact already exists. Allowed: `upsert`, `skip`. |
| `payload.segments` | `string` | No | — | JSON-encoded array of segments to add imported contacts to. |
| `payload.topics` | `string` | No | — | JSON-encoded array of topic subscriptions to apply to imported contacts. Each `subscription` must be `opt_in` or `opt_out`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Create a contact import",
    "properties": {
      "file": {
        "type": "string",
        "description": "Literal UTF-8 CSV contents, not a path or URL. Uploaded as multipart contacts.csv. Resend has a 50 MB file ceiling; Deepline deployment request limits can be lower. Use small imports through this JSON tool.",
        "minLength": 1
      },
      "column_map": {
        "type": "string",
        "description": "JSON-encoded object mapping contact fields and custom property keys to CSV column names. Supports `email`, `first_name`, `last_name`, `unsubscribed`, and `properties`. Custom property mappings can include `type` as `string`, `number`, or `boolean`; defaults to `string`."
      },
      "on_conflict": {
        "type": "string",
        "description": "Strategy to use when an imported contact already exists.",
        "default": "skip",
        "enum": [
          "upsert",
          "skip"
        ]
      },
      "segments": {
        "type": "string",
        "description": "JSON-encoded array of segments to add imported contacts to."
      },
      "topics": {
        "type": "string",
        "description": "JSON-encoded array of topic subscriptions to apply to imported contacts. Each `subscription` must be `opt_in` or `opt_out`."
      }
    },
    "required": [
      "file"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | No | — | Type of the response object. |
| `result.data.id` | `string` | No | — | Unique identifier for the created contact import. Format: `uuid`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "description": "Type of the response object."
          },
          "id": {
            "type": "string",
            "description": "Unique identifier for the created contact import.",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.