Imports
Generated from api/openapi.yaml (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)
Section titled “My imports (newest first, 50)”GET /v1/orgs/{org}/imports/assistantAPI 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
200Imports — object401Missing, invalid or expired token — Problem
Upload an export (.zip) to review
Section titled “Upload an export (.zip) to review”POST /v1/orgs/{org}/imports/assistantThe 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
202Reading — AssistantImport401Missing, invalid or expired token — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem413Over the upload limit — Problem422Invalid input — Problem429Rate limited (search, link previews, imports, uploads, model key checks): per person and per organisation token buckets. Retry afterRetry-Afterseconds. — Problem
Paste a memory list (Grok Bot has no export)
Section titled “Paste a memory list (Grok Bot has no export)”POST /v1/orgs/{org}/imports/assistant/pasteOne 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
201Waiting for review (withreview) — AssistantImport401Missing, invalid or expired token — Problem422Invalid input — Problem
An import (with review while it waits for one)
Section titled “An import (with review while it waits for one)”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
200The import — AssistantImport404Not 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
Section titled “Cancel a review, or remove the chats a finished import brought in”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
204Removed404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem
Import what was picked
Section titled “Import what was picked”POST /v1/orgs/{org}/imports/assistant/{id}/importChats 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 |
memories |
array of string | Memory ids from the review |
projects |
object | |
instructions |
object | Instruction id → one of my agents’ ids, “new” or “skip” |
Responses
202Importing — AssistantImport404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem422Invalid input — Problem