# Importing calls

Source: https://developers.krans.ai/docs/importing

Bring calls you already have into Krans: recordings and transcripts from Circleback, Fireflies, Otter, Granola, Fathom, Teams, Zoom, Meet or anywhere else. Every route needs `conversations:write`, and every imported call is processed like one recorded in Krans.

| You have | Send it with | How |
| --- | --- | --- |

| One recording file | `POST /uploads`, then `POST /conversations` | Upload, then create the call. Answers at once with the call. |

| Recordings at https URLs | `POST /conversations/import-url``import_conversations_from_urls` | 1 to 50 per request, downloaded in the background. |

| Transcript files | `POST /conversations/transcripts``import_transcripts` | 1 to 50 per request, as upload keys or https URLs, in the background. No recording needed. |

### Upload a recording

-

**Ask for an upload URL.**

`POST /uploads` with `filename`, `content_type` and `file_size`, or up to 50 files in `files` (the answer is `{ files: [...] }` in the same order). Each file gets an `upload_url` and a `key`.

-

**PUT the bytes** to `upload_url` with the same `Content-Type`, before `expires_at`.

-

**Create the call.**

`POST /conversations` with the `key`, `title`, `filename` and `file_size`. It answers with the call, `status` `submitted`: processing has started. A `503` means processing could not start and nothing was kept: send the same request again.

```
curl -X POST https://api.krans.ai/v1/uploads \
  -H "Authorization: Bearer $KRANS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename": "acme-demo.m4a", "content_type": "audio/mp4", "file_size": 18234567}'

curl -X PUT "<upload_url>" -H "Content-Type: audio/mp4" --data-binary @acme-demo.m4a

curl -X POST https://api.krans.ai/v1/conversations \
  -H "Authorization: Bearer $KRANS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "<key>", "title": "Acme demo", "filename": "acme-demo.m4a", "file_size": 18234567,
       "recorded_at": "2026-10-28T14:00:00+01:00", "external_id": "rec-4711"}'
```

### Import in bulk

-

**Send the items.**

`POST /conversations/import-url` takes items with a `url` that serves the audio or video file itself (not a share page), up to 5 GB from a public host, plus `title` and `recorded_at`. `POST /conversations/transcripts` takes items with a `title` and a `transcript`: a `key` from `POST /uploads` with `kind: "transcript"`, or a `url`. Formats are Circleback .md, TXT, SRT, VTT, DOCX and Fireflies CSV or JSON, at most 10 MB; `format` is detected unless you set it.

-

**Read the answer.**

Each item is checked on its own and comes back `accepted`, `skipped` (already in the venture; `conversation_id` is that call) or `refused` (see `error_code`). One bad item does not stop the rest. The answer carries a `job_id`, null when nothing was accepted.

-

**Follow the job.**

`GET /imports/{job_id}` (`get_import`) lists every item as `queued`, `imported`, `duplicate` or `failed`, with the call's `conversation_state`: `processing`, `ready` or `failed`. `done` turns true once every item has an outcome. `GET /imports` (`list_imports`) lists your jobs still running; `status=all` shows finished ones too.

```
curl -X POST https://api.krans.ai/v1/conversations/transcripts \
  -H "Authorization: Bearer $KRANS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: import-2026-11-04-1" \
  -d '{"items": [{
        "title": "Acme discovery call",
        "transcript": {"url": "https://example.com/acme-discovery.vtt"},
        "recorded_at": "2026-10-28T14:00:00+01:00",
        "source": {"tool": "fireflies", "meeting_id": "01JB7Q4", "url": "https://app.fireflies.ai/view/01JB7Q4"},
        "account": {"domain": "acme.com"},
        "participants": [{"name": "Jane Doe", "email": "jane@acme.com", "side": "external"}]
      }]}'
```

### Tell Krans what you know

Every route takes the same optional fields. Each one saves Krans a guess.

- **`external_id`**: your own id for the recording. A second import with the same id is skipped (`POST /conversations` answers `409`).

- **`source`**: the `tool` it came from, the `meeting_id` there and a `url` back to it. A call with the same `meeting_id` already in the venture makes it a duplicate, so send the id of this one occurrence, not a recurring meeting's shared id. The link comes back as `source_url` on `GET /conversations/{id}`.

- **`participants`**: up to 30 people with `name`, `email`, `company` and `side` (`internal` or `external`), or a known `contact_id`. This names the speakers on calls that are on no connected calendar.

- **`account`**: the company the meeting was with, by `id`, `domain` (links or creates it) or `name` (links an existing one only).

- **`call_type`**: set it to skip Krans classifying the call.

- **`recorded_at`**: when the meeting started, ISO 8601 with a time zone, at most 24 hours ahead. A transcript may leave it out only when the file holds a full timestamp; a Circleback .md has a date but no time, so it needs one.

- **Transcript limits.** A transcript with more than 20 speakers or 20,000 segments is refused with `transcript_too_long`.

- **A recording with its transcript.** An `import-url` item may carry a `transcript` too: the recording is kept and the text comes from the transcript, so it is not transcribed again.

### Retries and limits

- **Retry safely.** Send an `Idempotency-Key` header on the bulk routes. The same key with the same body within 24 hours returns the first answer and imports nothing again; the same key with a different body is `409 conflict` (`idempotency_key_reused`), and so is a retry while the first request is still being answered. Without a key, a repeated item is still skipped when it has an `external_id` or `source.meeting_id`; a URL recording whose file is already in the venture is skipped after download.

- **Failed items** are final. Fix what `error_code` and `message` say and send just those items again: a failed call never blocks a new import with the same `external_id` or `meeting_id`.

- **Venture.** `venture_id` may be left out when you reach exactly one venture; with several it is required (`422 venture_required`). This holds for MCP too: the import tools do not fall back to your default venture.

- **From MCP.** There is no upload tool and no `Idempotency-Key`, so give a transcript as a `url` and set `external_id` or `source.meeting_id` to make a repeat safe.

- **Who sees a job.** Members see their own imports; venture admins see everyone's (`user_id` says whose).

- **Never held.** Calls you import yourself start processing straight away, whatever a connection's import mode is. Only calls a connection brings in on its own can wait in the [review queue](https://developers.krans.ai/docs/review-queue).
