{"uid":"cap_tv_B82ENDhKbBhycrzhum","slug":"tako-answer-c4c8bfbd","name":"Tako Answer","description":"Answer a question with cited synthesis","url":"https://tako.com/api/mpp/v1/answer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","title":"AnswerRequest","required":["query"],"properties":{"zdr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Zdr","default":null,"description":"Request zero data retention. Set it to true and Tako keeps no copy of the query in its logs or saved cards, and limits web retrieval to its zero-data-retention provider. Available only to accounts that Tako has enabled; any other account gets a 403. To turn it on, contact support@tako.com. Omit it for standard retention."},"query":{"type":"string","title":"Query","pattern":"\\S","examples":["Intel vs Nvidia headcount since 2013"],"minLength":1,"description":"Natural language search query."},"effort":{"enum":["fast","instant","deep"],"type":"string","title":"SearchEffortLevel","description":"Effort for search and answer. `fast` is the default. `instant` serves\ncached cards without a new data retrieval. On /v1/answer, `instant` also\nwrites the answer with the fastest model, trading answer quality for\nspeed, while `fast` and `deep` use a stronger model. `deep` also searches\nmore of Tako's data and reranks the results a second time. It's slower,\nand it bills at a premium rate."},"locale":{"type":"string","title":"Locale","default":"en-US","description":"BCP-47 locale tag for language and formatting.","x-tako-published-default":"en-US on every endpoint. Converts when any endpoint infers locale from Accept-Language."},"sources":{"type":"object","title":"Sources","properties":{"web":{"type":"object","title":"WebSourceSettings","properties":{"count":{"anyOf":[{"type":"integer","maximum":20,"minimum":1},{"type":"null"}],"title":"Count","default":null,"description":"Maximum number of web results to return, 1 to 20. Omit it and Tako uses 5 on search and 3 on answer, unless a result cap set elsewhere in the request sizes retrieval instead."},"category":{"anyOf":[{"enum":["news","sports","finance"],"type":"string","title":"WebCategory","description":"Web search category filter. Only 'news' maps to a provider category\ntoday; 'sports' and 'finance' are accepted but have no effect yet."},{"type":"null"}],"default":null,"description":"Restrict web results to a category. 'news' filters to news sources. 'sports' and 'finance' are accepted but have no effect yet. Omit for a general web search."},"highlights":{"type":"boolean","title":"Highlights","default":false,"description":"Return query-relevant highlight passages as each web result's snippet, instead of the page's opening text. Highlights stay within snippet_max_chars. Unless you also set include_contents, Tako fetches no page text, so a page with no highlight returns snippet: null. A snippet can join passages from different parts of the page with ' … ', so it isn't one continuous quote.","x-tako-published-default":"False is off on every endpoint. Converts the day highlights become the default snippet on any endpoint."},"exclude_domains":{"type":"array","items":{"type":"string"},"title":"Exclude Domains","maxItems":20,"description":"Drop results from these domains. Max 20. Send a bare host that includes a top-level domain: 'cnn.com', not 'cnn'."},"include_domains":{"type":"array","items":{"type":"string"},"title":"Include Domains","maxItems":20,"description":"Return only results from these domains. Max 20. Send a bare host that includes a top-level domain: 'cnn.com', not 'cnn'."},"published_after":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Published After","default":null,"description":"Keep only web results published on or after this date (ISO 'YYYY-MM-DD'). Tako applies the date on the provider where possible, and always filters the returned results. Results with no known publication date are kept. Omit for no lower bound."},"include_contents":{"type":"boolean","title":"Include Contents","default":false,"description":"Inline the page text of each web result in the response. Tako returns it free of charge, on a best-effort basis: if a page's text isn't available at search time, content.data is null. To fetch a page directly, use POST /api/v1/contents.","x-tako-published-default":"False is off on every endpoint. Converts when any endpoint or plan inlines page text without being asked."},"published_before":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Published Before","default":null,"description":"Keep only web results published on or before this date (ISO 'YYYY-MM-DD'). Results with no known publication date are kept. Omit for no upper bound."},"snippet_max_chars":{"anyOf":[{"type":"integer","maximum":20000,"minimum":1},{"type":"null"}],"title":"Snippet Max Chars","default":null,"description":"Character cap on the text excerpt returned per web result, up to 20000. Omit it and Tako uses 4000 on search and 1000 on answer, unless Tako has agreed a different cap for your account. Send a value and Tako uses it exactly."},"article_content_max_chars":{"type":"integer","title":"Article Content Max Chars","default":30000,"maximum":1000000,"minimum":1,"description":"Character cap on the full article text when include_contents is true.","x-tako-published-default":"30000 on every endpoint; include_contents requires a web source, so no other fallback is reachable. Converts if the cap becomes per-endpoint or per-plan."}},"description":"Web source settings. Adds category, domain filters, and character caps\non top of the base count and include_contents.","additionalProperties":false},"data":{"type":"object","title":"DataSourceSettings","properties":{"mode":{"enum":["url","inline"],"type":"string","title":"ContentsDeliveryMode","description":"How contents reach the caller. `url` returns a short-lived presigned file\ndownload; `inline` returns the content in the response body."},"count":{"anyOf":[{"type":"integer","maximum":20,"minimum":1},{"type":"null"}],"title":"Count","default":null,"description":"Maximum number of data cards to return, 1 to 20. Omit it and Tako uses 5, unless a result cap set elsewhere in the request sizes retrieval instead. Fast and instant return at most 4 cards and deep at most 8, whatever count you send."},"strict":{"type":"boolean","title":"Strict","default":false,"description":"When true, return only data cards that match at least one node in node_ids (which must then be non-empty). When false, pinned nodes rank first but organic results still return. Web results do not change either way.","x-tako-published-default":"False is off everywhere; strict has no server-side default to fill."},"max_rows":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Max Rows","default":null,"examples":[100],"description":"Maximum rows to inline per card when include_contents is true. Omit it to use your account's inline row cap, which is smaller than a /contents export's default because each card bills separately. Tako clamps it to the card's export_pricing.max_rows_ceiling (at most 100,000). Inlined rows bill at the POST /api/v1/contents rate: a per-card baseline plus the per-1,000-row rate. All cards in a response share a 2,000-billable-row budget and a 20,000-row budget, so a later card can return fewer rows or none. Check truncated, and fetch the rest with POST /api/v1/contents. See https://docs.tako.com/documentation/integrating-tako/contents/pricing#search-inline-contents-vs-the-contents-api. A card export can hold up to 100,000 rows. Don't read a large export directly into a model's context: at about 15 tokens per row, 10,000 rows cost about 150,000 tokens. Write the export to a file, on disk or in memory, and have the agent parse it with code. Give the model only the rows or results it needs."},"node_ids":{"type":"array","items":{"type":"string"},"title":"Node Ids","maxItems":20,"description":"Graph node ids to pin into the search, from /v1/graph/search or /v1/graph/related. For example, pin a company, one of its segments, and a metric to get that segment's figures without wording the query exactly. Pinned nodes always become retrieval candidates and get a strong boost; organic results do not change. Ids are not durable across knowledge-graph rebuilds: the search skips an id that no longer resolves (in strict mode it simply cannot match). Malformed ids fail the request with a 400. Max 20."},"variable_cost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Variable Cost","default":null,"description":"Return data from sources priced per unit, such as web traffic and SEO data. Defaults to true. Each such card served with its data has a minimum charge, whether or not its rows are inlined, and the card's `content.export_pricing.variable_cost_max_usd` bounds it. The request's `usage.compute` price counts toward those minimums, but inline data charges don't. The response's `usage` object reports any amount above it as `variable_cost`. Set it to false and each such card is a placeholder with its title, a description and no data points. An account that isn't served variable-cost data always gets placeholders, whatever it sends. To get a placeholder's data, request the card's URL from POST /api/v1/contents."},"content_format":{"enum":["csv","json_records","json_compact","card_json"],"type":"string","title":"ContentsFormat","description":"Serialization of tabular (Tako card) data. Web content is always raw text\nand carries no content format (content_format is null)."},"include_contents":{"type":"boolean","title":"Include Contents","default":false,"description":"Inline this source's underlying data directly in the response. For the Tako data source, that is serialized card data (see content_format). For web results, that is the page text.","x-tako-published-default":"False is off on every endpoint. Converts when any endpoint or plan inlines contents without being asked."},"max_variable_cost_usd":{"anyOf":[{"type":"number","maximum":1000000,"minimum":0},{"type":"null"}],"title":"Max Variable Cost Usd","default":null,"examples":[0.5],"description":"The most this response pays as `usage.variable_cost`, in USD. Before Tako fetches a card priced per unit, it checks the card's `variable_cost_max_usd` against what's left of this cap, in rank order. A card that doesn't fit is a placeholder whose `placeholder.reason` is `over_cap`, and Tako fetches none of its data. Because the check uses each card's maximum, a card can be withheld when its actual charge would have fit. Send 0 to pay no variable cost with this response: Tako then serves data only for the cards whose minimum the request's `usage.compute` price covers. The cap doesn't cover a later variable-cost charge for high monthly volume from a source. Omit it for no cap. You can't send it with `variable_cost` set to false."}},"description":"Tako data (card) source settings. It adds the two contents-export\nfields on top of the base count and include_contents. Web sources use the\nbase SourceSettings: Tako always inlines web content as raw text, so web\ncarries neither field.","additionalProperties":false}},"description":"Per-source settings. The search includes an index only if its field is\npresent.\n\nThe Tako data source is named `data`. Tako still accepts the legacy key\n`tako` as a synonym and maps it to `data` before validation.","minProperties":1,"additionalProperties":false},"location":{"anyOf":[{"type":"object","title":"GeoLocation","required":["latitude","longitude"],"properties":{"latitude":{"type":"number","title":"Latitude","maximum":90,"minimum":-90,"description":"Latitude of the end user (degrees, -90 to 90)."},"longitude":{"type":"number","title":"Longitude","maximum":180,"minimum":-180,"description":"Longitude of the end user (degrees, -180 to 180)."}},"additionalProperties":false},{"type":"null"}],"default":null,"description":"Optional coordinates of the end user. Resolves the location for implicit-location queries (for example, weather) and, when `timezone` is absent, the timezone Tako renders preview images in. An explicit location in the query overrides these coordinates."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","default":null,"description":"IANA timezone (for example, 'America/New_York') Tako renders preview images in. Defaults to the zone at `location` when you send coordinates. Card text keeps each surface's own timezone."},"country_code":{"type":"string","title":"Country Code","default":"US","description":"ISO 3166-1 alpha-2 country code for localization.","x-tako-published-default":"US on every endpoint. Converts when any endpoint infers country from location or a header."},"output_schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Output Schema","default":null,"description":"JSON Schema for structured output. Tako fills it from the same evidence it uses to write `answer`, and returns it in `structured_output`. Requires effort 'fast' or 'deep'; on 'instant' the request returns 400. Supported subset: the object, array, string, number, integer, and boolean types, plus `items`, `enum`, `required`, `description`, and `additionalProperties: false`. A type may be nullable as `[\"number\", \"null\"]`, which is how you let Tako signal 'no evidence' rather than filling a zero. `title`, `examples`, `format`, and `default` are accepted and ignored — they constrain nothing. Caps: 16KB total, depth 5, 64 properties, 512 characters per description. Violations return 400. If Tako can't fill the schema, `structured_output` is absent and `structured_output_error` says why — the answer and the cards still return."},"variable_cost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Variable Cost","default":null,"deprecated":true,"description":"Deprecated: send `sources.data.variable_cost` instead. Tako reads this field only when `sources.data.variable_cost` is absent, and answers 400 when the two disagree."},"include_related":{"anyOf":[{"type":"integer","maximum":20,"minimum":1},{"type":"null"}],"title":"Include Related","default":null,"description":"Applies to POST /v3/search only. Return follow-up query suggestions in `related`. Omit this field to disable them. The value sets the maximum number of suggestions, from 1 to 20. POST /v1/answer accepts this field but ignores it: the answer response has no `related` field."},"output_settings":{"anyOf":[{"type":"object","title":"AnswerOutputSettings","properties":{"force_refresh":{"type":"boolean","title":"Force Refresh","default":false,"description":"Instant mode only, and currently informational: on these endpoints, instant (effort='instant') always operates in build-and-refresh mode regardless of this flag. Instant retrieves data for embeds that are missing or stale, then creates or refreshes their static embeds. Embeds that are already fresh (within the refresh cadence) return as-is; Tako does not re-retrieve them. Identical queries therefore reuse the same content-addressed embed and return a stable embed URL.","x-tako-published-default":"Informational on every endpoint that accepts it, and False everywhere. Converts the day an endpoint acts on it and picks its own baseline."},"image_dark_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Image Dark Mode","default":null,"description":"Whether to render card preview images in dark mode. Omit it and Tako renders dark."}},"description":"Settings that control the response shape.","additionalProperties":false},{"type":"null"}],"default":null,"description":"Settings that control the response shape."}},"description":"Request for POST /api/v1/answer.","additionalProperties":false},"responseSchema":{"type":"object","title":"AnswerResponse","required":["answer","request_id"],"properties":{"cards":{"type":"array","items":{"type":"object","title":"TakoCard","properties":{"nodes":{"anyOf":[{"type":"array","items":{"type":"object","title":"TakoCardNode","required":["id","type","name"],"properties":{"id":{"type":"string","title":"Id","description":"Opaque, human-friendly public id (<prefix>::<name>::<hash>, where prefix is ent for an entity or mt for a metric). Ids are not durable across knowledge-graph rebuilds — resolve them at request time rather than storing them."},"name":{"type":"string","title":"Name","description":"Display name. Several metrics can share a name when publishers report different series, such as two GDP metrics; read `description` to tell them apart."},"type":{"$ref":"#/components/schemas/GraphNodeType","description":"Whether the node is a metric or an entity."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":null,"description":"What the node is. For a metric, what it measures, often with its unit and basis. For an entity, a short identification. Absent when Tako has none."}},"description":"Slim graph node for the search and answer card surface\n(TakoCard.nodes). It is deliberately narrower than GraphNode: it carries\nno `aliases` and no `subtype`. For a node's aliases, resolve the id via\n/v1/graph/node/{id}; for an entity's subtype, use /v1/graph/related."}},{"type":"null"}],"title":"Nodes","default":null,"description":"Graph nodes (entities and metrics) behind this card. The response includes them by default. Absent for web-only cards or when node resolution was not available. Use each id with /v1/graph/node/{id} for full detail (aliases, subtype), or pass ids in sources.data.node_ids to pin these nodes in future searches."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","default":null},"card_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Id","default":null},"content":{"anyOf":[{"type":"object","title":"ResultContent","properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","default":null,"description":"Presigned download URL for the content, returned in 'url' delivery mode. Null for inline delivery and for quotes; pair with expires_at."},"cost":{"type":"number","title":"Cost","default":0,"description":"Price of this item in USD. On a quote_only response, it's the most a POST /v1/contents export with the same max_rows can charge. On a search or answer web result, it's the price of fetching the page, because inlined web text is free. On a search, answer, or agent run card without inlined rows, it's export_pricing.baseline_usd, or the most the card's variable-cost minimum can be when that's higher. On any other item, it's what this response billed for it, and those items sum to usage.data.cost_usd. Price an export with export_pricing alone, and don't add this value to that price: they're two prices, not two charges. See https://docs.tako.com/documentation/integrating-tako/contents/pricing."},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data","default":null,"description":"Inline payload as text: card data serialized to CSV, or a web page's extracted text. Set only for the 'csv' card format and for web text; null otherwise."},"dataset":{"anyOf":[{"$ref":"#/components/schemas/TakoDataset"},{"type":"null"}],"default":null,"description":"Inline card data as a compact TakoDataset (typed column headers plus positional row arrays). Set only when content_format is 'json_compact'."},"premium":{"type":"boolean","title":"Premium","default":false,"description":"True when this item's premium cells are revealed: a /contents response to premium=true. False on every search and answer card and on a /contents response without the flag. There, a withheld premium cell reads [premium: withheld] in CSV and is null in JSON formats, and redacted_cells says which rows held a value."},"records":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"array","items":{"type":"object","additionalProperties":true}},{"type":"null"}]}}},{"type":"null"}],"title":"Records","default":null,"description":"Inline card data as verbose JSON: a list of row objects keyed by column name. Set only when content_format is 'json_records'."},"delivery":{"enum":["quote","inline","url"],"type":"string","title":"Delivery","readOnly":true,"description":"How Tako delivered the content. 'quote' means Tako delivered nothing, and cost is a price, not a charge. 'inline' means the content is in data, records, dataset, or card_data. 'url' means you download it from url before expires_at."},"manifest":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ColumnDescriptor"}},{"type":"null"}],"title":"Manifest","default":null,"description":"Per-column metadata, one entry per exported column, in column order: entry i describes column i (CSV header i, json_records key i, or dataset.columns[i]). Each entry carries name (the column header), dtype, unit, metric, entity, and premium_class. On an agent run card, it's set wherever total_rows is. Null for web text and for other quotes that carry no tabular columns."},"card_data":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Card Data","default":null,"description":"Inline card data as a card-type-specific JSON object, set only when content_format is 'card_json'. Its 'card_type' field names the shape, and card_data_schema describes it. Tako cuts its record rows to max_rows, like every other format, and bills the rows it returns. A card type without a card_json shape returns 422 on /contents and falls back to 'json_compact' on search and answer include_contents."},"truncated":{"type":"boolean","title":"Truncated","default":false,"description":"True when the card holds more rows than Tako returned: max_rows or the card's max_rows_ceiling (at most 100,000) cut the rows, the card lists a capped slice of a larger set (see total_matching), or, on a search or answer response, a /contents export of a list card returns more rows than the card shows. All cards in a search or answer response share a 2,000-billable-row budget and a 20,000-row budget, spent in card order, so a later card can return a short preview or no rows. Its export_pricing still prices a /contents export. See https://docs.tako.com/documentation/integrating-tako/contents/pricing#search-inline-contents-vs-the-contents-api."},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At","default":null,"description":"ISO-8601 timestamp after which the presigned url stops working. Null whenever url is null."},"total_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rows","default":null,"description":"Rows in the card's data, however many this response returned. Compare it with the rows returned to tell whether a larger max_rows returns more. On a card that lists a capped slice of a larger set, it counts the slice, and total_matching counts the set. On a search or answer list of companies or people, it's the most rows a /contents export returns, and truncated is true. On another search or answer card without inlined rows, it's set only when the card can hold premium values. On an agent run card, it's set only when the card stores its rows, as a people list does. Null for web text."},"premium_rows":{"anyOf":[{"type":"object","additionalProperties":{"type":"integer"}},{"type":"null"}],"title":"Premium Rows","default":null,"description":"Per premium class ('company_record', 'person_contact'), the number of distinct companies or people that the delivered rows hold a value for in a column of that class, revealed or withheld. Multiply by export_pricing.premium_row_cpm_usd[class] / 1000 to price the premium part of an export. Empty for a card without premium columns, and null for web text. On an agent run card, it counts every row of the card. On a search or answer card that inlines no rows, it counts the rows the card shows, and it's null when the card can't hold a premium value. When truncated is true there, ask /contents with quote_only for the premium price. See https://docs.tako.com/documentation/integrating-tako/contents/pricing#premium-columns."},"content_format":{"anyOf":[{"$ref":"#/components/schemas/ContentsFormat"},{"type":"null"}],"default":null,"description":"Serialization of the returned card data: 'csv', 'json_records', 'json_compact', or 'card_json'. Null for web text (always returned as raw text) and for a quote-only response (nothing was serialized)."},"export_pricing":{"anyOf":[{"$ref":"#/components/schemas/ExportPricing"},{"type":"null"}],"default":null,"description":"Your rate for a POST /v1/contents export of this card, in any format, so you can price the export before you fetch it. Null for web text and other content you can't export."},"redacted_cells":{"anyOf":[{"type":"object","additionalProperties":{"type":"array","items":{"type":"integer"}}},{"type":"null"}],"title":"Redacted Cells","default":null,"description":"Column header to the 0-based positions, among the delivered rows, whose premium value was withheld. Present only when a premium cell was withheld; null when premium=true, when nothing was withheld, and for web text. Positions index the delivered rows: CSV data rows in order, json_records entries, or dataset.rows. In CSV, the same cells read [premium: withheld]; a premium cell with no value is blank."},"total_matching":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Matching","default":null,"description":"Size of the whole set behind a card that lists a capped slice of it, such as 330 for a card listing the 30 soonest-closing of 330 open solicitations. On a card with several row arrays, it counts the set behind the one capped array, such as a grant year's patents beside the per-year counts. A larger max_rows doesn't return more of that set. Null when the card's rows are the whole set, when Tako doesn't count the set (truncated is still true), and for web text."},"card_data_schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Card Data Schema","default":null,"description":"JSON Schema for card_data, so you can learn its shape without reading the payload. Set for every card_json export: inline, by URL, and as a /contents quote. The last two leave card_data null. A search or answer card that you didn't ask to inline has no schema. card_data can omit a field the schema declares when the provider didn't supply it. Null for other formats and for web text."}},"description":"The downloadable content behind a result: its price, and its payload once\nTako delivers it.\n\n`delivery` says how Tako delivered the content. A delivered item sets one\npayload group: `data` (CSV or web text), `records` (json_records),\n`dataset` (json_compact), `card_data` (card_json), or `url` with\n`expires_at`. To get a quoted item's content, call POST /v1/contents."},{"type":"null"}],"default":null},"sources":{"anyOf":[{"type":"array","items":{"type":"object","title":"TakoCardSource","required":["source_index"],"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","default":null,"examples":["https://xignite.com"],"description":"The URL of the source"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","default":null,"examples":["S&P Global","The World Bank"],"description":"The name of the source"},"source_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Text","default":null,"description":"Raw excerpts retrieved from the source page — the unmodified web content that grounded the answer. Set for `web` sources; null for `data` sources."},"source_index":{"$ref":"#/components/schemas/TakoSourceIndex","examples":["data","web"],"description":"The index of the source"},"source_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Description","default":null,"description":"The description of the source"}},"description":"A source that backs a TakoCard on the SDK surfaces. It uses the\n{data, web} TakoSourceIndex taxonomy."}},{"type":"null"}],"title":"Sources","default":null},"card_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Type","default":null},"embed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embed Url","default":null},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","default":null},"relevance":{"anyOf":[{"enum":["High","Medium","Low"],"type":"string","title":"KnowledgeCardRelevance"},{"type":"null"}],"default":null,"description":"Tako's relevance label for this card, from the same ladder the flat `results` relevance uses. On `effort: deep` an LLM scores cards as integers 1 to 5, so a 5 is High and a 4 is Medium. A card the LLM leaves unscored keeps its continuous retrieval score and can be High below 5. Other efforts score continuously and can label the same card higher."},"exportable":{"type":"boolean","title":"Exportable","default":false,"description":"Whether the /contents endpoint can download this card's data. false means the export is not available; use the card's chart and inline preview instead. true means the export is eligible but not guaranteed; the /contents endpoint can still return 403, so fall back to the preview on error."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":null},"placeholder":{"anyOf":[{"type":"object","title":"PlaceholderInfo","required":["withheld_source"],"properties":{"reason":{"$ref":"#/components/schemas/PlaceholderReason","default":"not_served","description":"Why the card withholds its data. `not_served`: the request set `variable_cost` to false, or the account isn't served variable-cost data. `over_cap`: the card's `variable_cost_max_usd` doesn't fit in what's left of the request's `max_variable_cost_usd`."},"withheld_source":{"type":"string","title":"Withheld Source","description":"The name of the source whose data the card withholds."}},"description":"Why a card carries no data points."},{"type":"null"}],"default":null,"description":"Set when the card is a placeholder: it carries its title and no data points, because its source charges for each request and this response didn't include that source's data. A search returns a placeholder when the request sets variable_cost to false, for every request paid through the Machine Payments Protocol (MPP), and for an account that isn't served variable-cost data. Null on every card that carries its data."},"webpage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webpage Url","default":null},"methodologies":{"anyOf":[{"type":"array","items":{"type":"object","title":"KnowledgeCardMethodology","required":["methodology_name","methodology_description"],"properties":{"methodology_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Methodology Name","examples":["Where the Data Comes From - S&P Global"],"description":"The name of the methodology"},"methodology_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Methodology Description","examples":["Financial metrics standardized by S&P Global from company regulatory filings, press releases, and restatements."],"description":"A concise, one-sentence summary of the methodology: the source and what it measures. When no concise summary is available, this carries the full methodology text."}}}},{"type":"null"}],"title":"Methodologies","default":null},"data_freshness":{"anyOf":[{"type":"object","title":"DataFreshness","properties":{"data_as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data As Of","default":null,"examples":["2026-10-01"],"deprecated":true,"description":"Deprecated: use coverage_end. The same point, always as a full ISO date (YYYY-MM-DD). For a series whose points are periods, this date is the period boundary. It is not a day on which Tako observed a value."},"coverage_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage End","default":null,"examples":["2026","2026-06","2026-06-30"],"description":"The last data point in the card's data, in ISO 8601 reduced precision at the series' granularity: a year (2026) for an annual series, a month (2026-06) for a monthly or quarterly one, and a date (2026-06-30) for a daily or intraday one. Check the length before you parse it: a date parser reads 2026 as 2026-01-01, the start of the period. It can be in the future when the card includes projections. On a card with tabs, it describes the tab this response built, so cache it against the response, not the card id. Null for card types without a coverage date."},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated","default":null,"examples":["2026-07-14"],"description":"Date Tako last refreshed the underlying data, as an ISO date (YYYY-MM-DD). On a card with tabs this is the ACTIVE tab's refresh date, for the same reason coverage_end is tab-scoped: only the tab this response built is rendered."}},"description":"When the card's data ends and when Tako last refreshed it. Either field\nmay be null when that date is not available for the card type."},{"type":"null"}],"default":null,"description":"Freshness dates for the card's data: where the data ends (coverage_end), the same point as a full date (data_as_of, deprecated), and the last refresh date (last_updated). Null when no date is available."},"source_indexes":{"anyOf":[{"type":"array","items":{"enum":["data","web"],"type":"string","title":"TakoSourceIndex","description":"Public source taxonomy for the SDK card surfaces (v3 search, v1 answer,\nagent). It is symmetric with the request taxonomy {data, web}."}},{"type":"null"}],"title":"Source Indexes","default":null},"relevance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Relevance Score","default":null,"description":"Numeric relevance of this card to the query on a 1.0-5.0 scale (5.0 = exact match; higher is more relevant). Only populated for entitled accounts; null otherwise."},"metric_definitions":{"anyOf":[{"type":"array","items":{"type":"object","title":"MetricDefinition","required":["name","definition"],"properties":{"name":{"type":"string","title":"Name","examples":["Gross Domestic Product (current US$)"],"description":"The metric's display name"},"definition":{"type":"string","title":"Definition","description":"Human-readable definition of the metric"}},"description":"Definition of a metric shown on a card. Sourced from the metric's\nValueType definition — the same text as the in-app methodology 'Metrics'\ntab."}},{"type":"null"}],"title":"Metric Definitions","default":null,"description":"Definitions of the metrics this card displays (name + definition). Null when no displayed metric has a definition available."},"semantic_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Semantic Description","default":null}},"description":"A Tako knowledge card on the search and answer surfaces. It carries a\n`content` download descriptor."},"title":"Cards","description":"Tako cards backing the answer; cards[0] is the lead card — the best one to show alongside the answer."},"usage":{"anyOf":[{"type":"object","title":"Usage","required":["total_cost_usd"],"properties":{"data":{"anyOf":[{"type":"object","title":"UsageData","required":["cost_usd","datasets"],"properties":{"cost_usd":{"type":"number","title":"Cost Usd","description":"USD cost of the inline data delivered in the response."},"datasets":{"type":"integer","title":"Datasets","description":"Number of billed datasets or content items included in the response."},"data_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Points","default":null,"description":"Number of billed quantitative data points included in the response."}},"description":"The cost and quantity of data delivered in the response.\n\n`datasets` counts billed datasets or content items. `data_points` counts\nbilled quantitative values in generated answer output."},{"type":"null"}],"default":null,"description":"Inline-data cost breakdown. Present only when the surface emitted billable inline data."},"compute":{"anyOf":[{"type":"object","title":"UsageCompute","required":["cost_usd"],"properties":{"cost_usd":{"type":"number","title":"Cost Usd","description":"USD cost of running the operation."}},"description":"The cost of running the operation. Absent on surfaces with no compute\nstep (contents)."},{"type":"null"}],"default":null,"description":"Compute cost breakdown. Present only on surfaces with a compute step (absent for contents)."},"variable_cost":{"anyOf":[{"type":"object","title":"UsageVariableCost","required":["cost_usd"],"properties":{"cost_usd":{"type":"number","title":"Cost Usd","description":"USD cost of the variable-cost charge."}},"description":"The variable-cost charge: the per-unit minimum of a variable-cost source\nthe response served, above the response's base price."},{"type":"null"}],"default":null,"description":"Variable-cost charge. Present only when data from a source priced per unit had a minimum charge above the request's base price: on a search or answer request that served such a card with its data, where the base price is `usage.compute` and inline data charges don't count toward the minimum; on a contents export of such a card, where it's the export's price; and on an agent run once it completes, where it's the run's price."},"total_cost_usd":{"type":"number","title":"Total Cost Usd","description":"Total quoted USD cost of this request: the sum of the components present."}},"description":"Usage for one metered request. `total_cost_usd` is always present (the\ntotal quoted charge). `compute`, `data`, and `variable_cost` are the\nadditive breakdown; each appears only where it applies. total_cost_usd always equals the sum\nof the components that appear."},{"type":"null"}],"default":null},"answer":{"type":"string","title":"Answer","description":"Synthesized text answer."},"request_id":{"type":"string","title":"Request Id"},"web_results":{"type":"array","items":{"type":"object","title":"WebResult","required":["title","url"],"properties":{"url":{"type":"string","title":"Url","description":"URL of the web page."},"title":{"type":"string","title":"Title","description":"Title of the web page."},"content":{"anyOf":[{"type":"object","title":"ResultContent","properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","default":null,"description":"Presigned download URL for the content, returned in 'url' delivery mode. Null for inline delivery and for quotes; pair with expires_at."},"cost":{"type":"number","title":"Cost","default":0,"description":"Price of this item in USD. On a quote_only response, it's the most a POST /v1/contents export with the same max_rows can charge. On a search or answer web result, it's the price of fetching the page, because inlined web text is free. On a search, answer, or agent run card without inlined rows, it's export_pricing.baseline_usd, or the most the card's variable-cost minimum can be when that's higher. On any other item, it's what this response billed for it, and those items sum to usage.data.cost_usd. Price an export with export_pricing alone, and don't add this value to that price: they're two prices, not two charges. See https://docs.tako.com/documentation/integrating-tako/contents/pricing."},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data","default":null,"description":"Inline payload as text: card data serialized to CSV, or a web page's extracted text. Set only for the 'csv' card format and for web text; null otherwise."},"dataset":{"anyOf":[{"$ref":"#/components/schemas/TakoDataset"},{"type":"null"}],"default":null,"description":"Inline card data as a compact TakoDataset (typed column headers plus positional row arrays). Set only when content_format is 'json_compact'."},"premium":{"type":"boolean","title":"Premium","default":false,"description":"True when this item's premium cells are revealed: a /contents response to premium=true. False on every search and answer card and on a /contents response without the flag. There, a withheld premium cell reads [premium: withheld] in CSV and is null in JSON formats, and redacted_cells says which rows held a value."},"records":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"array","items":{"type":"object","additionalProperties":true}},{"type":"null"}]}}},{"type":"null"}],"title":"Records","default":null,"description":"Inline card data as verbose JSON: a list of row objects keyed by column name. Set only when content_format is 'json_records'."},"delivery":{"enum":["quote","inline","url"],"type":"string","title":"Delivery","readOnly":true,"description":"How Tako delivered the content. 'quote' means Tako delivered nothing, and cost is a price, not a charge. 'inline' means the content is in data, records, dataset, or card_data. 'url' means you download it from url before expires_at."},"manifest":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ColumnDescriptor"}},{"type":"null"}],"title":"Manifest","default":null,"description":"Per-column metadata, one entry per exported column, in column order: entry i describes column i (CSV header i, json_records key i, or dataset.columns[i]). Each entry carries name (the column header), dtype, unit, metric, entity, and premium_class. On an agent run card, it's set wherever total_rows is. Null for web text and for other quotes that carry no tabular columns."},"card_data":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Card Data","default":null,"description":"Inline card data as a card-type-specific JSON object, set only when content_format is 'card_json'. Its 'card_type' field names the shape, and card_data_schema describes it. Tako cuts its record rows to max_rows, like every other format, and bills the rows it returns. A card type without a card_json shape returns 422 on /contents and falls back to 'json_compact' on search and answer include_contents."},"truncated":{"type":"boolean","title":"Truncated","default":false,"description":"True when the card holds more rows than Tako returned: max_rows or the card's max_rows_ceiling (at most 100,000) cut the rows, the card lists a capped slice of a larger set (see total_matching), or, on a search or answer response, a /contents export of a list card returns more rows than the card shows. All cards in a search or answer response share a 2,000-billable-row budget and a 20,000-row budget, spent in card order, so a later card can return a short preview or no rows. Its export_pricing still prices a /contents export. See https://docs.tako.com/documentation/integrating-tako/contents/pricing#search-inline-contents-vs-the-contents-api."},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At","default":null,"description":"ISO-8601 timestamp after which the presigned url stops working. Null whenever url is null."},"total_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rows","default":null,"description":"Rows in the card's data, however many this response returned. Compare it with the rows returned to tell whether a larger max_rows returns more. On a card that lists a capped slice of a larger set, it counts the slice, and total_matching counts the set. On a search or answer list of companies or people, it's the most rows a /contents export returns, and truncated is true. On another search or answer card without inlined rows, it's set only when the card can hold premium values. On an agent run card, it's set only when the card stores its rows, as a people list does. Null for web text."},"premium_rows":{"anyOf":[{"type":"object","additionalProperties":{"type":"integer"}},{"type":"null"}],"title":"Premium Rows","default":null,"description":"Per premium class ('company_record', 'person_contact'), the number of distinct companies or people that the delivered rows hold a value for in a column of that class, revealed or withheld. Multiply by export_pricing.premium_row_cpm_usd[class] / 1000 to price the premium part of an export. Empty for a card without premium columns, and null for web text. On an agent run card, it counts every row of the card. On a search or answer card that inlines no rows, it counts the rows the card shows, and it's null when the card can't hold a premium value. When truncated is true there, ask /contents with quote_only for the premium price. See https://docs.tako.com/documentation/integrating-tako/contents/pricing#premium-columns."},"content_format":{"anyOf":[{"$ref":"#/components/schemas/ContentsFormat"},{"type":"null"}],"default":null,"description":"Serialization of the returned card data: 'csv', 'json_records', 'json_compact', or 'card_json'. Null for web text (always returned as raw text) and for a quote-only response (nothing was serialized)."},"export_pricing":{"anyOf":[{"$ref":"#/components/schemas/ExportPricing"},{"type":"null"}],"default":null,"description":"Your rate for a POST /v1/contents export of this card, in any format, so you can price the export before you fetch it. Null for web text and other content you can't export."},"redacted_cells":{"anyOf":[{"type":"object","additionalProperties":{"type":"array","items":{"type":"integer"}}},{"type":"null"}],"title":"Redacted Cells","default":null,"description":"Column header to the 0-based positions, among the delivered rows, whose premium value was withheld. Present only when a premium cell was withheld; null when premium=true, when nothing was withheld, and for web text. Positions index the delivered rows: CSV data rows in order, json_records entries, or dataset.rows. In CSV, the same cells read [premium: withheld]; a premium cell with no value is blank."},"total_matching":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Matching","default":null,"description":"Size of the whole set behind a card that lists a capped slice of it, such as 330 for a card listing the 30 soonest-closing of 330 open solicitations. On a card with several row arrays, it counts the set behind the one capped array, such as a grant year's patents beside the per-year counts. A larger max_rows doesn't return more of that set. Null when the card's rows are the whole set, when Tako doesn't count the set (truncated is still true), and for web text."},"card_data_schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Card Data Schema","default":null,"description":"JSON Schema for card_data, so you can learn its shape without reading the payload. Set for every card_json export: inline, by URL, and as a /contents quote. The last two leave card_data null. A search or answer card that you didn't ask to inline has no schema. card_data can omit a field the schema declares when the provider didn't supply it. Null for other formats and for web text."}},"description":"The downloadable content behind a result: its price, and its payload once\nTako delivers it.\n\n`delivery` says how Tako delivered the content. A delivered item sets one\npayload group: `data` (CSV or web text), `records` (json_records),\n`dataset` (json_compact), `card_data` (card_json), or `url` with\n`expires_at`. To get a quoted item's content, call POST /v1/contents."},{"type":"null"}],"default":null,"description":"Downloadable content descriptor for this result, fetched via the Contents endpoint. Web results are always downloadable as text. None for callers that do not populate it."},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet","default":null,"description":"Excerpt(s) from the page that matched the query."},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","default":null,"description":"Publisher or domain name, when Tako can extract it from the URL."},"publish_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Date","default":null,"description":"Publication date of the page, when available."}},"description":"A single raw web search result from the `web` source index.\n\nDistinct from `KnowledgeCardSource` (a citation inside a synthesized\nanswer) and `KnowledgeCard` (a Tako visualization). Web results are\nraw retrieval output — title, URL, optional snippet. They do not depend\non any LLM synthesis that may also happen over them."},"title":"Web Results"},"structured_output":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Structured Output","default":null,"description":"Your output_schema, filled. Absent when the request carried no output_schema, or when Tako couldn't fill it — check structured_output_error."},"structured_output_error":{"anyOf":[{"type":"object","title":"AnswerStructuredOutputError","required":["code","message"],"properties":{"code":{"enum":["arbiter_failed","validation_failed","internal_error"],"type":"string","title":"AnswerStructuredOutputErrorCode","description":"Why Tako couldn't return structured output. Values are a public wire\ncontract — never rename."},"message":{"type":"string","title":"Message"}},"description":"Why structured_output is absent. The answer and the cards still return."},{"type":"null"}],"default":null,"description":"Why structured_output is absent. Present only on a structured request that failed."}},"description":"Response for POST /api/v1/answer: the synthesized answer plus the\nretrieval behind it."},"example":null,"exampleRequest":null,"tags":["data","visualization","charts","research","search","answers","agents","reports","datasets","analytics","ai"],"displayCostAmount":"0.018","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"session","summary":"$0.018/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.018","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RUDlC-eqmDCZ3bXm0DAGi","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x20c0000000000000000000000000000000000000","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_Z4gCePZc62HWzUtkBJCtb","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Tako","brandSlug":"tako","brandBaseUrl":"https://tako.com","brandDocsUrl":"https://tako.com","whatItDoes":"Answers a natural language question with cited synthesis, combining Tako's curated data, charts, and web sources into a structured response","exampleAgentPrompt":"Can you give me a cited, data-backed answer comparing Intel and Nvidia's headcount since 2013, using deep search for higher-quality results?","exampleUseCases":[{"title":"Competitive headcount trend research","prompt":"Compare Google, Microsoft, and Meta employee headcount from 2015 to today and give me a cited answer with any charts or data cards available — use deep search for better coverage."},{"title":"Market share analysis with citations","prompt":"What's the global cloud infrastructure market share breakdown between AWS, Azure, and GCP over the last five years? I need cited sources and any relevant data visualizations."},{"title":"Financial performance synthesis","prompt":"Give me a cited summary of Apple's annual revenue growth versus Samsung's from 2018 through 2023, pulling from Tako's data and the web."}],"resultDescription":"A structured response containing a synthesized, cited text answer to the query, along with data cards (which may include charts, entity nodes, and metric references), web source citations, and graph node metadata. Cards link to Tako's knowledge graph and can be resolved for further detail or pinned in future searches.","failureModes":["Query is empty or whitespace-only — rejected with validation error (pattern: \\S, minLength: 1)","Invalid effort enum value — request rejected","Web source count out of range (must be 1-20) — validation error","INSTANT effort on /v1/answer may return lower-quality cached content with no fresh retrieval","DEEP effort billed at premium tier and may have higher latency","Unavailable or ambiguous topic may return answer with limited or no data cards","Graph node IDs may not be durable across knowledge-graph rebuilds — should not be stored long-term"],"whenToPreferThis":"Use this endpoint when you need a synthesized, cited answer to a natural language research question — especially when the question involves data trends, company comparisons, or factual claims that benefit from both Tako's curated knowledge graph and live web retrieval. Prefer this over /v1/search when you want a composed answer rather than a raw list of results, and over /v1/runs (async agent) when you need a synchronous response. Choose DEEP effort for higher-quality results on complex research queries, INSTANT for lowest latency with cached data, and FAST (default) for a balanced response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T00:31:14.775Z","isFirstParty":false,"canonicalSlug":"tako-answer-c4c8bfbd"}