> For the complete documentation index, see [llms.txt](https://docs.syntho.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.syntho.ai/syntho-api/syntho-rest-api/table-data-preview.md).

# Table Data Preview

## GET /api/v1/table/{table\_id}/preview/

> List first 100 rows of table

```json
{"openapi":"3.0.3","info":{"title":"Syntho Backend API","version":"1.0.0 (v1)"},"servers":[{"url":"/"}],"security":[{"authentication":[]},{"OIDC":[]}],"components":{"securitySchemes":{"authentication":{"type":"apiKey","in":"cookie","name":"sessionid","description":"Log in using the <a href='/api/playground/#/Auth/auth_create'>POST /api/v1/auth/</a> endpoint"},"OIDC":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"PreviewResult":{"properties":{"results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Results"},"column_info":{"anyOf":[{"items":{"$ref":"#/components/schemas/ColumnGeneratorResult"},"type":"array"},{"type":"null"}],"default":[],"title":"Column Info"}},"title":"PreviewResult","type":"object"},"ColumnGeneratorResult":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"message":{"$ref":"#/components/schemas/Message"},"generator_name":{"title":"Generator Name","type":"string"},"type":{"$ref":"#/components/schemas/ColumnGeneratorResultType"}},"required":["id","name","message","generator_name","type"],"title":"ColumnGeneratorResult","type":"object"},"Message":{"properties":{"type":{"title":"Type","type":"string"},"message":{"title":"Message","type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Reason"}},"required":["type","message"],"title":"Message","type":"object"},"ColumnGeneratorResultType":{"enum":["ERROR","WARNING","INFO"],"title":"ColumnGeneratorResultType","type":"string"}}},"paths":{"/api/v1/table/{table_id}/preview/":{"get":{"operationId":"table_preview_retrieve","description":"List first 100 rows of table","parameters":[{"in":"query","name":"column_ids","schema":{"type":"array","items":{"type":"string"}},"description":"Limit generated output to these column IDs. All columns are still used during fit."},{"in":"query","name":"column_order_by","schema":{"type":"string"},"description":"JSON object with source column name and direction (ASC or DESC), for example {\"name\":\"actor_id\",\"direction\":\"DESC\"}. Direction defaults to ASC."},{"in":"query","name":"n_rows","schema":{"type":"integer"},"description":"Number of rows to return. Defaults to 100."},{"in":"query","name":"synthetic","schema":{"type":"boolean"},"description":"When true (default), runs the full fit+generate cycle to produce synthetic data."},{"in":"path","name":"table_id","schema":{"type":"string"},"required":true}],"tags":["TableDataPreview"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResult"}}},"description":"Success: Preview table result"},"400":{"description":"Error: could not validate data returned by external service"},"503":{"description":"Message: unable to fetch table preview from external service"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.syntho.ai/syntho-api/syntho-rest-api/table-data-preview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
