---
title: "Generate a TabulateSpec from .sav + questionnaire + ticket via the agent"
method: POST
path: "/v1/agent/smart-spec"
tags: ["Agent"]
---

# Generate a TabulateSpec from .sav + questionnaire + ticket via the agent

`POST /v1/agent/smart-spec`

## Request

- Base URL: `https://spss.insightgenius.io` (the document declares no server; this is the origin it was published from)
- URL: `https://spss.insightgenius.io/v1/agent/smart-spec`
- Auth: none declared

Upload an SPSS file (or pass file_id) plus optional questionnaire (.docx/.pdf) and/or reporting ticket (.docx). The agent reads everything, validates variables against the real metadata, and produces a TabulateSpec JSON ready to feed to /v1/tabulate. Every variable in the output is verified to exist in the dataset.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/insightgenius/apis/spss-insightgenius-api.md) · [All operations](https://skmtc.dev/insightgenius/apis/spss-insightgenius-api/llms.txt) · [OpenAPI document](https://skmtc.dev/insightgenius/apis/spss-insightgenius-api/revisions/0d165df595f0?raw)
