The column to predict. Rows where it is empty are left out of the context.
Example:
"churned"
task
enum<string>
required
'classification' to predict a category (yes/no, a grade, a segment); 'regression' to predict a number.
Available options:
classification,
regression
rows
Rows · object[]
required
The context rows, one object per row.
column_types
Column Types · object
Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.
A column that names each row. It is never read as a feature; predictions are keyed by it.
max_context
integer
default:0
Use at most this many rows as the context; the same rows always give the same choice. 0 = all rows.
Required range: x >= 0
embed_dims
integer
default:8
Numeric columns made from each text, image, audio, document or embedding column.
Required range: 1 <= x <= 64
target_range
Target Range · object | null
Regression: outputs are clipped to [low, high] (a share between 0 and 1, a price that cannot be negative: [0, null]). null = no bound on that side.
Show child attributes
time_column
string | null
When each row happened (a date, or a number of days). A row is then predicted from what was known before it: the answers known before its time, and the earlier rows of its group. The column is also read as a feature, and every other date column is read as its age at the row's time.
Example:
"month"
group_column
string | null
Which rows belong together: the months of one account, the stops of one delivery route. A row reads the other rows of its group. Send every row of a group that has no known answer yet in the same call.
Example:
"account_id"
known_column
string | null
When the row's values were known, if before its time (a stop planned when the route set off). Default: the row's time.
target_delay_days
number
default:0
How long after the row's time its target is known. A target about the month after the row: 30. Default 0.
Required range: x >= 0
group_target
string | null
A column with the group's own answer (an account's total recovery, a route's total hours), on any of the group's rows and empty while the group is open. It counts as known target_delay_days after the group's last row. Every prediction then also carries the group answer, as of that row.
Example:
"total_recovered"
group_task
enum<string> | null
'classification' or 'regression' for the group answer. Default: the task.
Available options:
classification,
regression
group_target_range
Group Target Range · object | null
Regression group answer: clipped to [low, high].
Show child attributes
as_of
numberstring
Stand at this date (or number, as the time column): use only what was known then. Rows known later and answers known later are left out.
Example:
"2026-10-31"
Response
Successful Response
context_id
string
required
Pass it to /v1/predict. The same rows and settings always give the same id.
report
Report · object
required
Column types and why, rows used and left out, text columns, timings.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"tabSutra","colors":{"primary":"#11615F","light":"#8FD5CC","dark":"#0A2E31"},"logo":{"light":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/light.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=0168ecb1ceb2f25773800b4258520303","dark":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/dark.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=e6c470a4b5a63b1edb278d5dde37b824","href":"https://tabsutra.com"},"favicon":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/favicon.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=29a31a211c5bf9948007403a96dd6e56","navbar":{"links":[{"href":"https://tabsutra.com","label":"Website"},{"href":"https://tabsutra.com/case-studies/","label":"Case studies"}],"primary":{"type":"button","label":"Request access","href":"https://tabsutra.com/deployment/#access"}},"footer":{"socials":{"website":"https://tabsutra.com","github":"https://github.com/tabsutra"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tab-sutra","hasAudioNarration":false,"actualSubdomain":"tab-sutra","customDomains":["docs.tabsutra.com"],"gitSource":{"type":"github","owner":"tabsutra","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b0845b73e1a783e5c7aeb16"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0849553e1a783e5c7b0dbb","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API reference","count":29},{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Tables and sequences","count":10},{"language":"default","tag":"Databases","count":9},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Use cases","count":6},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Forecasting","count":3},{"language":"default","tag":"Reference","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/read-the-context-rows-once","slug":"/api-reference/read-the-context-rows-once","pageMetadata":{"title":"Read the context rows once","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit","href":"/api-reference/read-the-context-rows-once","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Read the context rows once","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit","href":"/api-reference/read-the-context-rows-once","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Read the context rows once","operationId":"fit_v1_fit_post","requestBody":"7a173e01-0fad-4ffe-aa1b-3385cdf9f365","responses":{"200":"69f7950b-4583-4089-8f66-ebf8223c6fbb","422":"c6e11946-bed6-470b-8c92-2d37a31421e5"},"method":"post","type":"path","servers":["9f1b2a16-53da-4013-83a5-2ce32755ba43"],"security":["bedd65e8-6b1d-46aa-bad6-445a7f7bd9e3"],"path":"/v1/fit","baseUrlOptions":["https://api.tabsutra.com"],"title":"Read the context rows once","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"target":{"type":"string","title":"Target","description":"The column to predict. Rows where it is empty are left out of the context.","examples":["churned"],"isRequired":true,"uniqueKey":"target","typeLabel":"string"},"task":{"type":"string","enum":["classification","regression"],"title":"Task","description":"'classification' to predict a category (yes/no, a grade, a segment); 'regression' to predict a number.","isRequired":true,"uniqueKey":"task","typeLabel":"enum\u003cstring>"},"rows":{"items":{"additionalProperties":true,"type":"object","uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Rows","description":"The context rows, one object per row.","isRequired":true,"uniqueKey":"rows","typeLabel":"Rows · object[]"},"column_types":{"additionalProperties":{"type":"string","enum":["number","category","date","text","image","audio","document","embedding","id","ignore"],"uniqueKey":"column_types.additionalProperties","typeLabel":"enum\u003cstring>"},"type":"object","title":"Column Types","description":"Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.","examples":[{"postcode":"category","remarks":"text","photo_url":"image"}],"uniqueKey":"column_types","typeLabel":"Column Types · object"},"id_column":{"oneOf":[{"type":"string","title":"Id Column","description":"A column that names each row. It is never read as a feature; predictions are keyed by it.","uniqueKey":"id_column.oneOf.0","typeLabel":"string"},{"type":"null","title":"Id Column","description":"A column that names each row. It is never read as a feature; predictions are keyed by it.","uniqueKey":"id_column.oneOf.1","typeLabel":"null"}],"uniqueKey":"id_column","typeLabel":"string | null"},"max_context":{"type":"integer","minimum":0,"title":"Max Context","description":"Use at most this many rows as the context; the same rows always give the same choice. 0 = all rows.","default":0,"uniqueKey":"max_context","typeLabel":"integer"},"embed_dims":{"type":"integer","maximum":64,"minimum":1,"title":"Embed Dims","description":"Numeric columns made from each text, image, audio, document or embedding column.","default":8,"uniqueKey":"embed_dims","typeLabel":"integer"},"target_range":{"oneOf":[{"type":"object","title":"Target Range","description":"Regression: outputs are clipped to [low, high] (a share between 0 and 1, a price that cannot be negative: [0, null]). null = no bound on that side.","properties":{"[0]":{"oneOf":[{"type":"number","uniqueKey":"target_range.oneOf.0.[0].oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"target_range.oneOf.0.[0].oneOf.1","typeLabel":"null"}],"uniqueKey":"target_range.oneOf.0.[0]","typeLabel":"number | null"},"[1]":{"oneOf":[{"type":"number","uniqueKey":"target_range.oneOf.0.[1].oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"target_range.oneOf.0.[1].oneOf.1","typeLabel":"null"}],"uniqueKey":"target_range.oneOf.0.[1]","typeLabel":"number | null"}},"uniqueKey":"target_range.oneOf.0","typeLabel":"Target Range · object"},{"type":"null","title":"Target Range","description":"Regression: outputs are clipped to [low, high] (a share between 0 and 1, a price that cannot be negative: [0, null]). null = no bound on that side.","uniqueKey":"target_range.oneOf.1","typeLabel":"null"}],"uniqueKey":"target_range","typeLabel":"Target Range · object | null"},"time_column":{"oneOf":[{"type":"string","title":"Time Column","description":"When each row happened (a date, or a number of days). A row is then predicted from what was known before it: the answers known before its time, and the earlier rows of its group. The column is also read as a feature, and every other date column is read as its age at the row's time.","example":"month","uniqueKey":"time_column.oneOf.0","typeLabel":"string"},{"type":"null","title":"Time Column","description":"When each row happened (a date, or a number of days). A row is then predicted from what was known before it: the answers known before its time, and the earlier rows of its group. The column is also read as a feature, and every other date column is read as its age at the row's time.","example":"month","uniqueKey":"time_column.oneOf.1","typeLabel":"null"}],"uniqueKey":"time_column","typeLabel":"string | null"},"group_column":{"oneOf":[{"type":"string","title":"Group Column","description":"Which rows belong together: the months of one account, the stops of one delivery route. A row reads the other rows of its group. Send every row of a group that has no known answer yet in the same call.","example":"account_id","uniqueKey":"group_column.oneOf.0","typeLabel":"string"},{"type":"null","title":"Group Column","description":"Which rows belong together: the months of one account, the stops of one delivery route. A row reads the other rows of its group. Send every row of a group that has no known answer yet in the same call.","example":"account_id","uniqueKey":"group_column.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_column","typeLabel":"string | null"},"known_column":{"oneOf":[{"type":"string","title":"Known Column","description":"When the row's values were known, if before its time (a stop planned when the route set off). Default: the row's time.","uniqueKey":"known_column.oneOf.0","typeLabel":"string"},{"type":"null","title":"Known Column","description":"When the row's values were known, if before its time (a stop planned when the route set off). Default: the row's time.","uniqueKey":"known_column.oneOf.1","typeLabel":"null"}],"uniqueKey":"known_column","typeLabel":"string | null"},"target_delay_days":{"type":"number","minimum":0,"title":"Target Delay Days","description":"How long after the row's time its target is known. A target about the month after the row: 30. Default 0.","default":0,"uniqueKey":"target_delay_days","typeLabel":"number"},"group_target":{"oneOf":[{"type":"string","title":"Group Target","description":"A column with the group's own answer (an account's total recovery, a route's total hours), on any of the group's rows and empty while the group is open. It counts as known target_delay_days after the group's last row. Every prediction then also carries the group answer, as of that row.","example":"total_recovered","uniqueKey":"group_target.oneOf.0","typeLabel":"string"},{"type":"null","title":"Group Target","description":"A column with the group's own answer (an account's total recovery, a route's total hours), on any of the group's rows and empty while the group is open. It counts as known target_delay_days after the group's last row. Every prediction then also carries the group answer, as of that row.","example":"total_recovered","uniqueKey":"group_target.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_target","typeLabel":"string | null"},"group_task":{"oneOf":[{"type":"string","title":"Group Task","description":"'classification' or 'regression' for the group answer. Default: the task.","enum":["classification","regression"],"uniqueKey":"group_task.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Group Task","description":"'classification' or 'regression' for the group answer. Default: the task.","uniqueKey":"group_task.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_task","typeLabel":"enum\u003cstring> | null"},"group_target_range":{"oneOf":[{"type":"object","title":"Group Target Range","description":"Regression group answer: clipped to [low, high].","properties":{"[0]":{"oneOf":[{"type":"number","uniqueKey":"group_target_range.oneOf.0.[0].oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"group_target_range.oneOf.0.[0].oneOf.1","typeLabel":"null"}],"uniqueKey":"group_target_range.oneOf.0.[0]","typeLabel":"number | null"},"[1]":{"oneOf":[{"type":"number","uniqueKey":"group_target_range.oneOf.0.[1].oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"group_target_range.oneOf.0.[1].oneOf.1","typeLabel":"null"}],"uniqueKey":"group_target_range.oneOf.0.[1]","typeLabel":"number | null"}},"uniqueKey":"group_target_range.oneOf.0","typeLabel":"Group Target Range · object"},{"type":"null","title":"Group Target Range","description":"Regression group answer: clipped to [low, high].","uniqueKey":"group_target_range.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_target_range","typeLabel":"Group Target Range · object | null"},"as_of":{"oneOf":[{"type":"number","title":"As Of","description":"Stand at this date (or number, as the time column): use only what was known then. Rows known later and answers known later are left out.","example":"2026-10-31","uniqueKey":"as_of.oneOf.0","typeLabel":"number"},{"type":"string","title":"As Of","description":"Stand at this date (or number, as the time column): use only what was known then. Rows known later and answers known later are left out.","example":"2026-10-31","uniqueKey":"as_of.oneOf.1","typeLabel":"string"},{"type":"null","title":"As Of","description":"Stand at this date (or number, as the time column): use only what was known then. Rows known later and answers known later are left out.","example":"2026-10-31","uniqueKey":"as_of.oneOf.2","typeLabel":"null"}],"uniqueKey":"as_of","typeLabel":"number | string | null"}},"type":"object","required":["target","task","rows"],"title":"FitRequest","uniqueKey":"","typeLabel":"FitRequest · object"},"examples":{"Example":{"title":"Example","value":{"target":"churned","rows":[{}],"column_types":{"postcode":"category","remarks":"text","photo_url":"image"},"id_column":"\u003cstring>","max_context":0,"embed_dims":8,"target_range":{"[0]":123,"[1]":123},"time_column":"month","group_column":"account_id","known_column":"\u003cstring>","target_delay_days":0,"group_target":"total_recovered","group_target_range":{"[0]":123,"[1]":123},"as_of":"2026-10-31"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"69f7950b-4583-4089-8f66-ebf8223c6fbb":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"context_id":{"type":"string","title":"Context Id","description":"Pass it to /v1/predict. The same rows and settings always give the same id.","isRequired":true,"uniqueKey":"context_id","typeLabel":"string"},"report":{"additionalProperties":true,"type":"object","title":"Report","description":"Column types and why, rows used and left out, text columns, timings.","isRequired":true,"uniqueKey":"report","typeLabel":"Report · object"}},"type":"object","required":["context_id","report"],"title":"FitResponse","uniqueKey":"","typeLabel":"FitResponse · object"},"examples":{"Example":{"title":"Example","value":{"context_id":"\u003cstring>","report":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"c6e11946-bed6-470b-8c92-2d37a31421e5":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bedd65e8-6b1d-46aa-bad6-445a7f7bd9e3":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"9f1b2a16-53da-4013-83a5-2ce32755ba43":{"url":"https://api.tabsutra.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"tab-sutra","siteName":"tabSutra","title":"Read the context rows once - tabSutra","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T14:59:36.856Z","originalFileLocation":"api-reference/read-the-context-rows-once.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"tabSutra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Read the context rows once - tabSutra\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"tabSutra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tab-sutra.mintlify.site/_mintlify/api/og/v2?division=Tables+and+sequences\u0026amp;title=Read+the+context+rows+once\u0026amp;theme=3fb2931f97df6c86807c5ccc\u0026amp;signature=21bc04f441f3298c27eba711f4a308f54fca072901bafe82d2615076805adf24\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Read the context rows once - tabSutra\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tab-sutra.mintlify.site/_mintlify/api/og/v2?division=Tables+and+sequences\u0026amp;title=Read+the+context+rows+once\u0026amp;theme=3fb2931f97df6c86807c5ccc\u0026amp;signature=21bc04f441f3298c27eba711f4a308f54fca072901bafe82d2615076805adf24\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"tabSutra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#11615F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/read-the-context-rows-once.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tabsutra.com/#organization\",\"name\":\"tabSutra\",\"url\":\"https://docs.tabsutra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/light.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=0168ecb1ceb2f25773800b4258520303\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tabsutra.com#website\",\"name\":\"tabSutra\",\"url\":\"https://docs.tabsutra.com\",\"publisher\":{\"@id\":\"https://docs.tabsutra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once#webpage\",\"url\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once\",\"name\":\"Read the context rows once\",\"dateModified\":\"2026-11-26T14:59:36.856Z\",\"isPartOf\":{\"@id\":\"https://docs.tabsutra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"tabSutra\",\"item\":\"https://docs.tabsutra.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read the context rows once\",\"item\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once#apireference\",\"headline\":\"Read the context rows once\",\"name\":\"Read the context rows once\",\"url\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tabsutra.com/api-reference/read-the-context-rows-once#webpage\"},\"dateModified\":\"2026-11-26T14:59:36.856Z\",\"publisher\":{\"@id\":\"https://docs.tabsutra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tabsutra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"tabSutra\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"tabSutra\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/read-the-context-rows-once.md","siteName":"tabSutra","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/introduction"}]},{"group":"Service","pages":[{"title":"Is the server up, and is a model loaded","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /health","href":"/api-reference/is-the-server-up-and-is-a-model-loaded"},{"title":"The model, the device and the limits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/capabilities","href":"/api-reference/the-model-the-device-and-the-limits"}]},{"group":"Forecasting","pages":[{"title":"Forecast one or many series","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/forecast","href":"/api-reference/forecast-one-or-many-series"},{"title":"Forecast, with the history and the future inputs as files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/forecast-file","href":"/api-reference/forecast-with-the-history-and-the-future-inputs-as-files"},{"title":"How good the forecasts are: hold out the last steps and score them","description":"Holds out the last `horizon` steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-forecast","href":"/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them"}]},{"group":"Tables and sequences","pages":[{"title":"Read the context rows once","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit","href":"/api-reference/read-the-context-rows-once"},{"title":"Read the context rows once, from a CSV or Parquet file","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit-file","href":"/api-reference/read-the-context-rows-once-from-a-csv-or-parquet-file"},{"title":"Predict rows against a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/predict","href":"/api-reference/predict-rows-against-a-context"},{"title":"Predict the rows of a CSV or Parquet file against a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/predict-file","href":"/api-reference/predict-the-rows-of-a-csv-or-parquet-file-against-a-context"},{"title":"Predict the rows whose target is empty, from the rows whose target is known","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fill","href":"/api-reference/predict-the-rows-whose-target-is-empty-from-the-rows-whose-target-is-known"},{"title":"Fill the empty targets of a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fill-file","href":"/api-reference/fill-the-empty-targets-of-a-csv-or-parquet-file"},{"title":"How good are the predictions: hold out a share of the rows and score them against a simple baseline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate","href":"/api-reference/how-good-are-the-predictions:-hold-out-a-share-of-the-rows-and-score-them-against-a-simple-baseline"},{"title":"Evaluate on a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-file","href":"/api-reference/evaluate-on-a-csv-or-parquet-file"},{"title":"The contexts held in memory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contexts","href":"/api-reference/the-contexts-held-in-memory"},{"title":"Free a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contexts/{context_id}","href":"/api-reference/free-a-context"}]},{"group":"Databases","pages":[{"title":"Send the tables of a database once","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases","href":"/api-reference/send-the-tables-of-a-database-once"},{"title":"Send the tables of a database once, as CSV or Parquet files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases-files","href":"/api-reference/send-the-tables-of-a-database-once-as-csv-or-parquet-files"},{"title":"The databases held in memory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases","href":"/api-reference/the-databases-held-in-memory"},{"title":"A database's tables, keys, and which tables of events reach each table of things","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases/{database_id}","href":"/api-reference/a-databases-tables-keys-and-which-tables-of-events-reach-each-table-of-things"},{"title":"Free a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/databases/{database_id}","href":"/api-reference/free-a-database"},{"title":"Predict an answer per entity and date, from labelled examples","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/predict","href":"/api-reference/predict-an-answer-per-entity-and-date-from-labelled-examples"},{"title":"The same, with the examples and the rows to predict as CSV or Parquet files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/predict-files","href":"/api-reference/the-same-with-the-examples-and-the-rows-to-predict-as-csv-or-parquet-files"},{"title":"How good are the predictions: hold out the latest examples and score them","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate","href":"/api-reference/how-good-are-the-predictions:-hold-out-the-latest-examples-and-score-them"},{"title":"The same, with the examples as a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate-file","href":"/api-reference/the-same-with-the-examples-as-a-csv-or-parquet-file"}]},{"group":"Recommendation","pages":[{"title":"For each source at a date, the k items it will most likely link to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/recommend","href":"/api-reference/for-each-source-at-a-date-the-k-items-it-will-most-likely-link-to"},{"title":"MAP@k of the lists of one date, against rankings that need no training","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate-recommend","href":"/api-reference/map@k-of-the-lists-of-one-date-against-rankings-that-need-no-training"}]},{"group":"Tasks described in words","pages":[{"title":"Predict a task described in words","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/tasks/predict","href":"/api-reference/predict-a-task-described-in-words"},{"title":"How good the predictions of a task described in words are","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/tasks/evaluate","href":"/api-reference/how-good-the-predictions-of-a-task-described-in-words-are"}]}]}]},"basePath":"","title":"Read the context rows once - tabSutra","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}