---
title: "Preview the rows a table would train on"
method: POST
path: "/agent-training/saved-agents/{saved_agent_id}/table-preview/"
tags: ["agent-training"]
---

# Preview the rows a table would train on

`POST /agent-training/saved-agents/{saved_agent_id}/table-preview/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/agent-training/saved-agents/{saved_agent_id}/table-preview/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

The first rows a table source would feed the agent, resolved through the same reader the real session uses, so a value that shows blank here is a value that would have run blank. Read-only: no session, no runs, no credits.

## Path parameters

- `saved_agent_id` string, uuid, required

## Request body

- TrainingTablePreviewRequestSchema: The table binding to show real rows for, before a session starts.
  - `input_mappings` object, required: Agent input name -> the column its value is read from.
  - `row_count` integer: How many rows to show.
  - `table_id` string, uuid, required

## Response `200`

Successful Response

- TrainingTablePreviewResponseSchema: The first rows a table source would feed the agent.
  - `empty_inputs` string[], required: Inputs whose mapped column is blank in every previewed row. The agent would run without them, which is the expensive mistake this preview exists to make visible.
  - `rows` object[], required: One set of input values per row, in table order.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Saved agent or table not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
