# Imports

> Import from ChatGPT, Claude and Grok Bot (upload, review, import): 6 endpoints of the Teemli API.

Source: https://docs.teemli.com/developers/reference/imports/

Generated from [`api/openapi.yaml`](/developers/api/) (OpenAPI 3.1). Base URL: `https://api.teemli.com`. Auth: `Authorization: Bearer <token or tml_ API key>`. Errors are `application/problem+json`; writes accept an `Idempotency-Key` header.

Import from ChatGPT, Claude and Grok Bot (upload, review, import)

## My imports (newest first, 50)

```http
GET /v1/orgs/{org}/imports/assistant
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` Imports — object
- `401` Missing, invalid or expired token — Problem

## Upload an export (.zip) to review

```http
POST /v1/orgs/{org}/imports/assistant
```

The raw zip body is streamed to a temporary file (never held in memory; up to 2 GB) and
read in the background with streaming, memory-bounded parsers (zip bombs, oversized
items and impossible compression ratios are refused). Nothing becomes history, memory,
agents or skills until `…/import` is called. Poll `GET …/{id}` (or listen for
`import.updated`) until `status` is `review` or `failed`. One import runs at a time
per person. Not available with API keys.

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `source` (required) | query | `chatgpt`, `claude`, `grok` |  |
| `file_name` | query | string |  |

**Request body:** `application/zip`.

**Responses**

- `202` Reading — AssistantImport
- `401` Missing, invalid or expired token — Problem
- `409` Conflicting state (card already answered, duplicate in flight, name taken) — Problem
- `413` Over the upload limit — Problem
- `422` Invalid input — Problem
- `429` Rate limited (search, link previews, imports, uploads, model key checks): per person and per organisation token buckets. Retry after `Retry-After` seconds. — Problem

## Paste a memory list (Grok Bot has no export)

```http
POST /v1/orgs/{org}/imports/assistant/paste
```

One fact per line; numbering, bullets and date tags are removed. Goes straight to review.

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `source` (required) | `grok`, `chatgpt`, `claude`, `other` |  |
| `text` (required) | string |  |

**Responses**

- `201` Waiting for review (with `review`) — AssistantImport
- `401` Missing, invalid or expired token — Problem
- `422` Invalid input — Problem

## An import (with `review` while it waits for one)

```http
GET /v1/orgs/{org}/imports/assistant/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) |  |

**Responses**

- `200` The import — AssistantImport
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem

## Cancel a review, or remove the chats a finished import brought in

```http
DELETE /v1/orgs/{org}/imports/assistant/{id}
```

Memories, agents and skills it created stay; edit them on their own pages.

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) |  |

**Responses**

- `204` Removed
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem
- `409` Conflicting state (card already answered, duplicate in flight, name taken) — Problem

## Import what was picked

```http
POST /v1/orgs/{org}/imports/assistant/{id}/import
```

Chats become private, searchable history (⌘K, `/history`, and the person's own agents
through `history.search`); memories become the person's memory (shared with all their
agents; a project's memories go to the agent made from it); projects become agents or
skills; custom instructions are added to the chosen agent (or a new one). Importing an
export again skips chats already imported.

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) |  |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `conversations` | `all`, `none` \\| array of string | "all", "none", or a list of conversation ids from the review |
| `memories` | array of string | Memory ids from the review |
| `projects` | object |  |
| `instructions` | object | Instruction id → one of my agents' ids, "new" or "skip" |

**Responses**

- `202` Importing — AssistantImport
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem
- `409` Conflicting state (card already answered, duplicate in flight, name taken) — Problem
- `422` Invalid input — Problem
