Add a conversation to an import
/imports/{importId}/textAdds one file's text to an open import: a transcript with speaker labels ("Name: words", Zoom or Otter text exports), WebVTT or SRT captions, a CSV of survey answers (one row per person, a header row), or JSON. Up to 4,000,000 characters; send one conversation or one table per call, word for word as the source has it, never summarised. Binary files (Word, Excel, recordings, PDFs, slides) are uploaded to /api/imports/upload instead; any kind is taken there, and one Jean does not read is prepared by a person at Jean, which takes longer. The same text twice is recognized and not read again. It is read in the background: get_import shows when it is ready, or what it needs. (The MCP tool add_import_text.)
Scope studies:write · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.
curl --fail-with-body -X POST "https://app.jeantechnologies.com/api/v1/imports/IMPORT_ID/text" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Churn interviews",
"text": "Why do people cancel a meal-kit subscription in the first month?"
}'
An Idempotency-Key header is optional here and makes a retry safe. See idempotency.
Path
| Name | Type | Required | Notes |
|---|---|---|---|
importId | string (UUID) | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | The file's name, with its extension when it has one (call-3.vtt, answers.csv). 1 to 200 characters. |
text | string | yes | 1 to 4000000 characters. |
kind | "text", "vtt", "srt", "csv", "json" | no | How to read it when the name has no extension. Default text. |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
file | object | yes | |
file.id | string | yes | |
file.name | string | yes | |
file.status | "received", "waiting", "needs_mapping", "ready", "failed", "promoted" | yes | |
file.reason | string or null | yes |
The full response schema
{
"type": "object",
"properties": {
"file": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"received",
"waiting",
"needs_mapping",
"ready",
"failed",
"promoted"
]
},
"reason": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name",
"status",
"reason"
],
"additionalProperties": false
}
},
"required": [
"file"
],
"additionalProperties": false
}
Errors
| Status | Meaning |
|---|---|
400 | The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing. |
401 | No key or token, or one that is wrong, expired or revoked. |
403 | The key or connection lacks the scope this operation needs. scope names it. |
404 | No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way. |
409 | The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request. |
429 | Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again. |
503 | The language model is not available. Try again later. |
Every error is application/problem+json, the same shape on every endpoint.