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

# Contact exports: Create a contact export

> **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.

One endpoint of [Contact exports](/docs/api/contact-exports.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Create a contact export

`POST /v1/contact-exports` - operationId `contact-exports.create`

| Permission | Rate limit |
| --- | --- |
| Campaigns view and the `export` permission | 10 requests a minute per API key |

Saves what the export should hold and returns its job. The job is already `succeeded` and its
`downloadUrl` points at `GET /v1/contact-exports/{exportId}/content`, so you can download the file right
away. The export id is the job id. You can read the job again with `GET /v1/jobs/{jobId}?type=contact_export`.

The `kind` field picks what the file holds:

- `contacts` (the default): contacts across the workspace that match the filters in the body.
- `campaign`: the contacts of one campaign. Without `fields`, the file adds a column for each of the campaign's personalization prompts.
- `clicked`: the contacts of one campaign who clicked a tracking link, with their click data.
- `advanced`: the contacts of one campaign, with their click events and total click count.
- `events`: the events of one campaign's contacts between `occurredAfter` and `occurredBefore`.

Every kind except `contacts` needs `campaignId`. Kind `contacts` needs it only with `readyOnly`.
Only kind `contacts` takes `segmentId`, `readyOnly`, `campaignIds`, `listId`,
`createdAfter`, `createdBefore`, `maxRows` and `skipRows`. Other kinds refuse them.

Creating an export does not use your export row limit. Each download does.
Kenso never exports contacts from a Kenso library list. For kinds `contacts`, `campaign` and
`advanced`, the job's `excludedLibraryContacts` says how many it left out.

Errors:

- `400 validation_failed`: the body is not a JSON object, or a field breaks the rule in its description.
- `400 validation_failed`: kind `contacts` matches more than 50,000 contacts. Narrow the filters or set `maxRows`.
- `404 not_found`: `campaignId`, an id in `campaignIds`, `listId` or `segmentId` is not in the workspace, or the list or segment is not in the campaigns you sent.
- `429 quota_exceeded`: another kind would hold more than 50,000 rows.

Requires Campaigns view and the `export` permission.

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

### 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`, required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | no | What the export holds: `contacts` (contacts across the workspace, the default), `campaign`, `clicked`, `advanced` or `events`. |
| `campaignId` | integer (int64) | no | The campaign to export. Required for every kind except `contacts`, and for `contacts` with `readyOnly`. With kind `contacts`, it limits the export to this campaign. |
| `segmentId` | integer (int64) | no | Kind `contacts` only: export only this segment's contacts. When you send `campaignId` or `campaignIds`, the segment must belong to one of those campaigns. |
| `isQualified` | boolean | no | Kinds `contacts` and `campaign`: `true` exports only qualified contacts, `false` only unqualified ones. Omitted exports both. |
| `hasValidEmail` | boolean | no | Kind `contacts` only: `true` exports only contacts with a valid email, `false` only contacts without one. Omitted exports both. |
| `doNotContact` | boolean | no | Kind `contacts` only: `true` exports only do-not-contact contacts, `false` only contactable ones. Omitted exports both. |
| `q` | string | no | Kind `contacts` only: search text the contacts must match, at most 200 characters. |
| `contactIds` | array of integer (int64) | no | Kind `contacts` only: export only these contacts, at most 1,000 ids. |
| `excludedContactIds` | array of integer (int64) | no | Kind `contacts` only: leave these contacts out, at most 1,000 ids. |
| `fields` | array of string | no | The columns to write, at most 80 snake_case names such as `first_name`, `email` or `company_domain`. Omitted writes the kind's default columns, and kind `events` ignores it. |
| `readyOnly` | boolean | no | Kind `contacts` only: `true` exports only contacts that are ready to send. Needs `campaignId`. Defaults to `false`. |
| `includeEmails` | boolean | no | Kinds `campaign`, `clicked` and `advanced`: include the email columns. Defaults to `true`. |
| `includeCompany` | boolean | no | Kinds `campaign`, `clicked` and `advanced`: include the company columns. Defaults to `true`. |
| `includeClickEvents` | boolean | no | Kind `advanced` only: include each contact's click events. Defaults to `true`. |
| `includeTotalClicks` | boolean | no | Kind `advanced` only: include each contact's total click count. Defaults to `true`. |
| `occurredAfter` | string (date-time) | no | Kind `events`, required: the start of the time range, as an ISO 8601 timestamp. The range can span at most 366 days. |
| `occurredBefore` | string (date-time) | no | Kind `events`, required: the end of the time range, as an ISO 8601 timestamp. It must not be before `occurredAfter`. |
| `campaignIds` | array of integer (int64) | no | Kind `contacts` only: export the contacts of these campaigns, from 1 to 50 campaign ids of the workspace. Send either this or `campaignId`, not both. |
| `listId` | integer (int64) | no | Kind `contacts` only: export only the contacts of this import list, the `listId` on a contact. When you send `campaignId` or `campaignIds`, the list must belong to one of those campaigns. |
| `createdAfter` | string (date-time) | no | Kind `contacts` only: export only contacts created at or after this time. |
| `createdBefore` | string (date-time) | no | Kind `contacts` only: export only contacts created before this time. It must be later than `createdAfter`. |
| `maxRows` | integer (int32) | no | Kind `contacts` only: write at most this many rows, from 1 to 50,000. |
| `skipRows` | integer (int32) | no | Kind `contacts` only: skip this many matching contacts first, in contact id order. Use it with `maxRows` to export in parts. 0 or more. |

### 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/contact-exports" \
  -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 '{
  "kind": "string",
  "campaignId": 812,
  "segmentId": 812,
  "isQualified": true,
  "hasValidEmail": true,
  "doNotContact": true,
  "q": "string",
  "contactIds": [
    812
  ],
  "excludedContactIds": [
    812
  ],
  "fields": [
    "first_name"
  ],
  "readyOnly": true,
  "includeEmails": true,
  "includeCompany": true,
  "includeClickEvents": true,
  "includeTotalClicks": true,
  "occurredAfter": "2026-09-23T15:02:11Z",
  "occurredBefore": "2026-09-23T15:02:11Z",
  "campaignIds": [
    812
  ],
  "listId": 812,
  "createdAfter": "2026-09-23T15:02:11Z",
  "createdBefore": "2026-09-23T15:02:11Z",
  "maxRows": 1,
  "skipRows": 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.

### 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. |
