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

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Whop Trends: market data across Whop (revenue, growth, average order value, and customers by industry, product category, and country). Read it with no API key at `GET https://api.whop.com/api/v1/stats/reports/platform_trends`, or through the MCP server operation `get_platform_trends_report`. Guide and use cases: https://docs.whop.com/developer/guides/trends.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Imports API

> An Import copies data from another tool into an account. Sources are export files, a customer CSV, a store or creator page, or a connected Stripe account.

Creating an import reads the source and returns a preview. Starting it writes the data. Imports never email or charge customers.

Use the Imports API to create an import, poll it until the preview is ready, start it, and poll it again until it completes. List an account's imports to show its history. Import IDs are prefixed `imp_`.

## Endpoints

| Endpoint | Request |
| - | - |
| [List imports](https://docs.whop.com/api-reference/imports/list-imports.md) | GET `/imports` |
| [Retrieve import](https://docs.whop.com/api-reference/imports/retrieve-import.md) | GET `/imports/{id}` |
| [Create import](https://docs.whop.com/api-reference/imports/create-import.md) | POST `/imports` |
| [Confirm](https://docs.whop.com/api-reference/imports/confirm.md) | POST `/imports/{id}/confirm` |

## Attributes

**id** `string` *required*

Import ID, prefixed `imp_`.

**account\_id** `string` *required*

The account the data is imported into, prefixed `biz_`.

**completed\_at** `string | null` *required*

When the import ended, as an ISO 8601 timestamp. Null while it runs.

**created\_at** `string` *required*

When the import was created, as an ISO 8601 timestamp.

**error\_count** `integer` *required*

How many records failed in all.

**error\_message** `string | null` *required*

Why the whole import failed. Null otherwise.

**errors** `object[]` *required*

The first 100 records that failed.

> [accordion] Properties
>
> **message** `string` *required*
>
> Why the record was not imported.
>
> **source\_id** `string` *required*
>
> The record's ID in the source.
>
> **type** `string` *required*
>
> The data type of the record that failed.
>
> Available options: `customers`, `products`, `quotes`, `invoices`, `subscriptions`, `payment_methods`

**preview** `object[]` *required*

How many records the source has per data type. Empty until `status` is `ready`.

> [accordion] Properties
>
> **total** `integer` *required*
>
> Records the source has for this type.
>
> **type** `string` *required*
>
> The data type these counts are for.
>
> Available options: `customers`, `products`, `quotes`, `invoices`, `subscriptions`, `payment_methods`

**results** `object[]` *required*

Progress per data type once the import has started.

> [accordion] Properties
>
> **created** `integer` *required*
>
> Records newly added.
>
> **failed** `integer` *required*
>
> Records that could not be imported. See `errors`.
>
> **skipped** `integer` *required*
>
> Records left as they were: already imported, or without the data needed to
> import them.
>
> **total** `integer` *required*
>
> Records the source reported for this type.
>
> **type** `string` *required*
>
> The data type these counts are for.
>
> Available options: `customers`, `products`, `quotes`, `invoices`, `subscriptions`, `payment_methods`
>
> **updated** `integer` *required*
>
> Records that already existed and were updated.

**source** `string` *required*

Where the data comes from, like `jobber` or `shopify`.

Available options: `jobber`, `housecall_pro`, `servicetitan`, `csv_customers`, `stripe`, `shopify`, `woocommerce`, `gumroad`, `kajabi`, `skool`, `patreon`, `stan`, `teachable`, `squarespace`, `wix`, `magento`, `nas`, `hotmart`, `stripe_links`

**started\_at** `string | null` *required*

When the import started writing, as an ISO 8601 timestamp.

**status** `string` *required*

`previewing` reads the source. `ready` has a preview and waits for you to start it. `running` writes the data. `awaiting_transfer` is a Stripe import that wrote everything it could and waits for Stripe to send the saved cards, which subscriptions and payment methods need. `completed` and `failed` are final.

Available options: `previewing`, `ready`, `running`, `awaiting_transfer`, `completed`, `failed`

**types** `string[]` *required*

The data types this import covers.

Available options: `customers`, `products`, `quotes`, `invoices`, `subscriptions`, `payment_methods`

**updated\_at** `string` *required*

When the import last changed, as an ISO 8601 timestamp.

**url** `string | null` *required*

The store or creator page address. Null for file and Stripe sources.

```json Import theme={null}
{
	"id": "imp_xxxxxxxxxxxx",
	"account_id": "biz_xxxxxxxxxxxxxx",
	"source": "jobber",
	"status": "completed",
	"types": ["customers", "invoices"],
	"url": null,
	"preview": [
		{
			"type": "customers",
			"total": 120
		},
		{
			"type": "invoices",
			"total": 48
		}
	],
	"results": [
		{
			"type": "customers",
			"total": 120,
			"created": 118,
			"updated": 1,
			"skipped": 0,
			"failed": 1
		},
		{
			"type": "invoices",
			"total": 48,
			"created": 48,
			"updated": 0,
			"skipped": 0,
			"failed": 0
		}
	],
	"errors": [
		{
			"type": "customers",
			"source_id": "c42",
			"message": "Missing email address"
		}
	],
	"error_count": 1,
	"error_message": null,
	"created_at": "2026-01-01T12:00:00.000Z",
	"updated_at": "2026-01-01T12:05:00.000Z",
	"started_at": "2026-01-01T12:01:00.000Z",
	"completed_at": "2026-01-01T12:05:00.000Z"
}
```


## Related topics

- [Create Import](https://docs.whop.com/api-reference/imports/create-import.md)
- [Retrieve Import](https://docs.whop.com/api-reference/imports/retrieve-import.md)
- [List Imports](https://docs.whop.com/api-reference/imports/list-imports.md)
