Skip to main content

Add a conversation to an import

POST/imports/{importId}/text

Adds 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​

NameTypeRequiredNotes
importIdstring (UUID)yes

Body​

FieldTypeRequiredNotes
namestringyesThe file's name, with its extension when it has one (call-3.vtt, answers.csv). 1 to 200 characters.
textstringyes1 to 4000000 characters.
kind"text", "vtt", "srt", "csv", "json"noHow to read it when the name has no extension. Default text.

Response · 200​

FieldTypeRequiredNotes
fileobjectyes
file.idstringyes
file.namestringyes
file.status"received", "waiting", "needs_mapping", "ready", "failed", "promoted"yes
file.reasonstring or nullyes
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​

StatusMeaning
400The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing.
401No key or token, or one that is wrong, expired or revoked.
403The key or connection lacks the scope this operation needs. scope names it.
404No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way.
409The 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.
429Too 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.
503The language model is not available. Try again later.

Every error is application/problem+json, the same shape on every endpoint.

API overview · OpenAPI document