> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/inbox-imports/openapi.json](/docs/api/inbox-imports/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Inbox imports

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

Connect many sending inboxes at once.

Inbox. 1 endpoint under `https://api.ken.so`. Every request sends `Authorization: Bearer <your API key>` and `Ken-Version: 2026-11-02`: see [Authentication](/docs/authentication.md), [Workspaces](/docs/workspaces.md) and [Errors](/docs/errors.md). OpenAPI for this resource only: [/docs/api/inbox-imports/openapi.json](/docs/api/inbox-imports/openapi.json).

- `POST /v1/inbox-imports` - Import SMTP inboxes (`inbox-imports.create`): [/docs/api/inbox-imports/create.md](/docs/api/inbox-imports/create.md)

## Import SMTP inboxes

`POST /v1/inbox-imports` - operationId `inbox-imports.create`

| Permission | Rate limit |
| --- | --- |
| Delivery edit | 10 requests a minute per API key |

Connects up to 500 SMTP and IMAP mailboxes in the background and returns the import job with `202`. Use it
to load many inboxes at once, for example from a CSV file.

Send `rows`: from 1 to 500 inboxes, each with the fields of `POST /v1/inboxes`. Kenso connects each
row the way `POST /v1/inboxes` does, with its field checks, the mailbox limit of a white-label workspace
and a live SMTP and IMAP login, up to four rows at a time. A row logs in before Kenso creates its inbox, so a
failed login creates nothing.

Row results:

- A row with a missing field fails on its own, and the other rows still run.
- A row that uses an earlier row's `username` on the same `smtpHost` or `imapHost` with a
different password fails.
- A row with the same `email` as an earlier row is skipped with `duplicate_in_file`.
- A row whose `email` the workspace already has is skipped with `already_exists`, unless that inbox is
a disconnected SMTP inbox. Then the row reconnects it.
- A row fails with `email_in_use` when another inbox in Kenso has the address. Kenso reports it only after
a successful login.
- A row fails with `host_failure_limit`, without a login, when its `smtpHost` or `imapHost`
refused too many logins or could not be reached several times earlier in the import.
- A row's `firstName` and `lastName` (1 to 40 characters each, blank means none) and
`dailySendLimit` (a whole number of 1 or more) are set on the mailbox once it connects, the way
`PATCH /v1/inboxes/{inboxId}` sets them. A value that is not valid fails that row, with
`details[].field` naming the column, before any login. A limit above the mailbox's provider ceiling is
stored at the ceiling (50 for Google and Microsoft, 30 for custom SMTP and Azure) and the row carries the
warning `daily_limit_clamped`. A connected row reports the `firstName`, `lastName` and
`dailySendLimit` now on the mailbox. If the mailbox connects but those cannot be saved, the row is still
connected with the warning `settings_not_applied`.

Poll `GET /v1/jobs/{jobId}?type=inbox_import` for the `inboxImport` counts and rows. A job with no
progress for 10 minutes fails with `error.code` `interrupted`. Kenso never stores or returns the
passwords.

Kenso checks the caller's access and the feature again before each row. If the feature is turned off, or the
caller is no longer a member with Delivery edit, the import stops. Every row it had not started is
`skipped` with `feature_disabled` or `forbidden`, and the job fails with that
`error.code`.

Errors:

- `400 validation_failed`: `rows` is empty or has more than 500 rows.
- `403 permission_denied`: the caller does not have Delivery edit.
- `403 forbidden`: no member of the workspace is behind the credential.
- `409 conflict`: the workspace already has 2 imports queued or running.
- `429 quota_exceeded`: the import would pass the limit of 1,000 rows per workspace per rolling day. Each
row that passes the field and duplicate checks counts. Nothing runs, and `Retry-After` says when to try
again.
- `503 service_unavailable`: imports are busy. Try again in a few minutes.

Requires Delivery edit.

Needs the `inbox_csv_import` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/inbox-imports/POST/v1/inbox-imports)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Request body

`application/json`, optional.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rows` | array of CreateInboxImportRow | no | The mailboxes to connect, from 1 to 500 rows, usually read from a CSV file. |

### Response 202

`data` is a `Job`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer (int64) | The job's id. Ids are unique only within one `type`, so send `type` with the id when you read or cancel the job. |
| `type` | string | The job type: `contact_import`, `contact_export`, `domain_health`, `lead_scoring`, `enrichment`, `crawl`, `extraction`, `batch_scrape`, `knowledge_export`, `inbox_import` or `migration`. |
| `status` | string | One of `queued`, `running`, `succeeded`, `failed` or `canceled`. Only `crawl`, `extraction`, `batch_scrape` and `migration` jobs reach `canceled`, and a `contact_export` or `knowledge_export` is `succeeded` from the start. |
| `progress` | JobProgress | How far the job has run. |
| `pollAfterSeconds` | integer (int32) | While the job is `queued` or `running`, how many seconds to wait before reading it again: 10 for a `crawl`, `extraction` or `batch_scrape` (each read asks the scraping provider), 30 for a `migration`, and 5 for the other types. Omitted once the job has finished. |
| `resource` | JobResource | The object the job belongs to, such as its campaign. Omitted when it has none. |
| `createdAt` | string (date-time) | When the job was created, in UTC. |
| `downloadUrl` | string | The path that downloads the job's file, such as `/v1/contact-exports/{exportId}/content`. Only on a `contact_export` or `knowledge_export`, and omitted for other types. |
| `error` | JobError | Why the job failed. Present only when `status` is `failed`. |
| `result` | object | The raw status and output of a `crawl`, `extraction` or `batch_scrape`, such as the scraped pages. Returned only by `GET /v1/jobs/{jobId}` for those types, and omitted for other types and in lists. |
| `domainsListed` | integer (int32) | For a finished `domain_health` job: how many of the checked domains are on a blocklist. Omitted for other types and until the job finishes. |
| `excludedLibraryContacts` | integer (int32) | For a `contact_export` of kind `contacts`, `campaign` or `advanced`: how many contacts from a Kenso library list the export left out, since Kenso never exports them. Omitted for other kinds and types, or when Kenso could not count them. |
| `inboxImport` | InboxImportJob | Counts and row results of an `inbox_import`. Omitted for other types. |
| `personImport` | PersonImportJob | Counts of a `contact_import` with target `people`. Omitted for an import into a campaign and for other types. |
| `skipped` | ContactImportSkips | Rows a `contact_import` into a campaign skipped, by reason, with 0 for a reason that skipped none. Omitted for an import with target `people` and for other types. |

### Request

```bash
curl -X POST "https://api.ken.so/v1/inbox-imports" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "rows": [
    {
      "email": "jane@example.com",
      "firstName": "Jane",
      "lastName": "Doe",
      "username": "email",
      "password": "string",
      "smtpHost": "string",
      "smtpPort": 1,
      "imapHost": "string",
      "imapPort": 1,
      "smtpStartTls": true,
      "dailySendLimit": 1
    }
  ]
}'
```

### Example response

```json
{
  "success": true,
  "data": {
    "id": 812,
    "type": "contact_import",
    "status": "queued",
    "progress": {
      "completed": 1,
      "total": 1
    },
    "pollAfterSeconds": 1,
    "resource": {
      "type": "string",
      "id": 812
    },
    "createdAt": "2026-09-23T15:02:11Z",
    "downloadUrl": "/v1/contact-exports/{exportId}/content",
    "error": {
      "code": "string",
      "message": "string"
    },
    "result": null,
    "domainsListed": 1,
    "excludedLibraryContacts": 1,
    "inboxImport": {
      "connectedCount": 1,
      "failedCount": 1,
      "skippedCount": 1,
      "startedAt": "2026-09-23T15:02:11Z",
      "updatedAt": "2026-09-23T15:02:11Z",
      "completedAt": "2026-09-23T15:02:11Z",
      "rows": [
        {
          "index": 1,
          "email": "jane@example.com",
          "status": "connected",
          "inboxId": 812,
          "errorCode": "string",
          "message": "string",
          "firstName": "Jane",
          "lastName": "Doe",
          "dailySendLimit": 1,
          "warnings": [
            "string"
          ],
          "details": [
            {}
          ]
        }
      ]
    },
    "personImport": {
      "source": "csv",
      "createdCount": 1,
      "updatedCount": 1,
      "skippedCount": 1,
      "startedAt": "2026-09-23T15:02:11Z",
      "completedAt": "2026-09-23T15:02:11Z"
    },
    "skipped": {
      "duplicateInCampaign": 1,
      "duplicateInOtherCampaign": 1,
      "duplicateInSource": 1,
      "alreadyContacted": 1,
      "blocklist": 1,
      "failedValidation": 1,
      "salesNavigatorProfileUnresolved": 1,
      "other": 1,
      "missingKey": 1,
      "invalidEmail": 1,
      "noMx": 1,
      "catchAll": 1,
      "personalEmail": 1,
      "roleAddress": 1,
      "companyContacted": 1,
      "companyCap": 1
    }
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### CreateInboxImportRow

One mailbox to import, with the same fields as `POST /v1/inboxes`. A row with a missing field fails on its own and does not fail the request.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | yes | The mailbox's email address. Required. |
| `firstName` | string | no | The mailbox's sender first name, 1 to 40 characters after trimming. Blank means none. A row whose value is longer fails on its own. |
| `lastName` | string | no | The mailbox's sender last name, 1 to 40 characters after trimming. Blank means none. A row whose value is longer fails on its own. |
| `username` | string | no | The SMTP and IMAP login username. Defaults to `email`. |
| `password` | string | yes | The login password. Required. Kenso never stores it with the import, logs it or returns it. |
| `smtpHost` | string | yes | The SMTP server's host name. Required. |
| `smtpPort` | integer (int32) | yes | The SMTP server's port, such as 587. Required. |
| `imapHost` | string | yes | The IMAP server's host name. Required. |
| `imapPort` | integer (int32) | yes | The IMAP server's port, such as 993. Required. |
| `smtpStartTls` | boolean | no | Whether to send over STARTTLS. Defaults to `true`. |
| `dailySendLimit` | integer (int32) | no | The mailbox's daily send limit, a whole number of 1 or more, also as a digit string such as `"20"`. Kenso stores it as `PATCH /v1/inboxes/{inboxId}` does, at most the mailbox's provider ceiling (50 for Google and Microsoft, 30 for custom SMTP and Azure); above it the row carries the warning `daily_limit_clamped`. Omit it, or leave it blank, to keep the default. A value that is not a whole number of 1 or more fails the row. |

### JobProgress

How far a job has run.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `completed` | integer (int32) | no | How many items the job has finished. The item depends on `type`: for example imported contacts for a campaign `contact_import`, checked domains for `domain_health` and processed rows for `inbox_import`. |
| `total` | integer (int32) | no | How many items the job handles in all. Omitted when Kenso does not know the total, as for `domain_health`. |

### JobResource

The object a job belongs to.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | string | no | The kind of object: `campaign` for a campaign `contact_import`, a `contact_export` of a campaign, `lead_scoring` and `enrichment`, or `migration_run` for a `migration`. |
| `id` | integer (int64) | no | The object's id. |

### JobError

Why a job failed.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | no | The reason code. It is `failed` for every job type except `inbox_import`, which uses `interrupted`, `feature_disabled` or `forbidden`. |
| `message` | string | no | A readable description of what went wrong. |

### InboxImportJob

Counts and row results of an inbox import, without any passwords.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connectedCount` | integer (int32) | no | Rows that connected an inbox. |
| `failedCount` | integer (int32) | no | Rows that failed to connect. |
| `skippedCount` | integer (int32) | no | Rows Kenso skipped, such as an inbox the workspace already has. |
| `startedAt` | string (date-time) | no | When the import started on its first row, in UTC. Omitted while it waits in the queue. |
| `updatedAt` | string (date-time) | no | When the import last made progress, in UTC. An import with no progress for 10 minutes reads `failed` with `error.code` `interrupted`. |
| `completedAt` | string (date-time) | no | When the import finished, in UTC. Omitted until it finishes. |
| `rows` | array of InboxImportRow | no | Processed rows in `index` order, empty until the first row has a result. Returned when you create or get the import, and omitted in lists and for a member without Delivery view. |

### PersonImportJob

Counts of a contact import with target `people`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | string | no | Where the rows came from, the import's `source`, such as `csv`, `search` or `google_sheets`. |
| `createdCount` | integer (int32) | no | Rows that created a new person. |
| `updatedCount` | integer (int32) | no | Rows that matched a person already in the workspace and updated it. Kenso matches by email, LinkedIn URL, or name and company domain. |
| `skippedCount` | integer (int32) | no | Rows Kenso skipped: a row with no email, no LinkedIn URL and no name with a business company domain, or a row Kenso could not take in. |
| `startedAt` | string (date-time) | no | When the import started, in UTC. Omitted while it waits in the queue. |
| `completedAt` | string (date-time) | no | When the import finished or failed, in UTC. Omitted until then. |

### ContactImportSkips

Rows a campaign contact import skipped, with each row counted under one reason.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `duplicateInCampaign` | integer (int32) | no | Rows that match a contact already in this campaign. |
| `duplicateInOtherCampaign` | integer (int32) | no | Rows that match a contact in another campaign of the workspace, skipped because this campaign removes duplicates across campaigns. |
| `duplicateInSource` | integer (int32) | no | Rows that repeat an earlier row of the same import. |
| `alreadyContacted` | integer (int32) | no | Rows that match a contact emailed within the campaign's recently emailed window. |
| `blocklist` | integer (int32) | no | Rows that match the workspace's blocklist. |
| `failedValidation` | integer (int32) | no | Rows that failed row checks, such as a row with no first and last name or no company name or domain. |
| `salesNavigatorProfileUnresolved` | integer (int32) | no | Sales Navigator people Kenso could not turn into a LinkedIn profile URL, so no LinkedIn step could reach them. |
| `other` | integer (int32) | no | Rows skipped for any other reason, such as a row Kenso could not process. |
| `missingKey` | integer (int32) | no | Rows with no email and no LinkedIn URL, dropped by the `missingKey` List check fix. |
| `invalidEmail` | integer (int32) | no | Rows whose email Kenso knows is invalid, dropped by the `invalidEmail` List check fix. |
| `noMx` | integer (int32) | no | Rows whose email domain takes no mail (no MX record), dropped by the `noMx` List check fix. |
| `catchAll` | integer (int32) | no | Rows whose email domain accepts every address, dropped by the `catchAll` List check fix. |
| `personalEmail` | integer (int32) | no | Rows with a personal email address, such as Gmail or Outlook.com, dropped by the `personalEmail` List check fix. |
| `roleAddress` | integer (int32) | no | Rows with a role address such as info@ or sales@, dropped by the `roleAddress` List check fix. |
| `companyContacted` | integer (int32) | no | Rows at a company where someone else recently got a Kenso email, dropped by the `companyContacted` List check fix. |
| `companyCap` | integer (int32) | no | Rows past the first 5 people at one company, dropped by the `companyCap` List check fix. |

### InboxImportRow

One processed row of an inbox import.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `index` | integer (int32) | no | Zero-based position of the row in the request's `rows` array. |
| `email` | string | no | The row's email address. |
| `status` | string | no | The row's result: `connected`, `failed` or `skipped`. |
| `inboxId` | integer (int64) | no | The connected inbox, the existing inbox a skipped row matched, or the disconnected inbox a failed connect left in the workspace. Omitted when there is none. |
| `errorCode` | string | no | Why the row did not connect, omitted for a connected row. A skipped row has `already_exists`, `duplicate_in_file`, or `feature_disabled` or `forbidden` when the import stopped before the row because inbox import was turned off for the workspace or the member who started it lost Delivery edit. A failed row has `email_in_use` (another Kenso inbox has the email), `host_failure_limit` (not tried, because its host refused several logins or could not be reached earlier in the import) or an API error code such as `validation_failed` or `service_unavailable`. |
| `message` | string | no | A readable message about the row's result, when Kenso has one. |
| `firstName` | string | no | On a connected row that set one in the file, the sender first name now on the mailbox. Omitted otherwise. |
| `lastName` | string | no | On a connected row that set one in the file, the sender last name now on the mailbox. Omitted otherwise. |
| `dailySendLimit` | integer (int32) | no | On a connected row that set one in the file, the daily limit now stored on the mailbox, after the provider ceiling. Omitted otherwise. |
| `warnings` | array of string | no | Warning codes of a row that connected, omitted when there are none: `daily_limit_clamped` (the row's `dailySendLimit` was above the mailbox's provider ceiling and was stored at the ceiling) or `settings_not_applied` (the mailbox connected, but its names or limit could not be saved). |
| `details` | array of InboxImportRowDetail | no | On a row that failed a column check, one entry per refused column, with `field` naming the column. Omitted otherwise. |

### InboxImportRowDetail

One refused column of an inbox import row.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `field` | string | no | The row column, such as `firstName` or `dailySendLimit`. |
| `code` | string | no | Stable code for the problem, such as `invalid`. |
| `message` | string | no | A sentence for people that says what is wrong with the column. |

All resources: [/docs.md](/docs.md).
