---
title: "Save Results"
method: POST
path: "/queries/save-results"
---

# Save Results

`POST /queries/save-results`

Save result rows as a reusable thin-wrapper saved query (REST twin of save-mcp-query).

## Request body

- SaveResultsRequest — Request model for saving result rows as a thin-wrapper saved query. Shared by the REST `POST /queries/save-results` endpoint and the `save-mcp-query` MCP tool so the payload shape stays identical.
  - `query_name` string, required — Name for the query
  - `action` string, required — Underlying action type. One of: ['discover', 'segment', 'contacts', 'append', 'match']
  - `query_params` object — Original query params for UI reconstruction
  - `data` object[], required — Thin rows: domain + custom columns
  - `domain_column` string — Column name containing domains
  - `tags` string[] — Initial tags to apply

## Response `200`

Successful Response

- QuerySaveResponse — Response model for saving/creating queries and exclusion lists.
  - `query_id` string, required
  - `query_name` string, nullable
  - `action` string, nullable
  - `domain_count` integer, nullable
  - `persona_id_count` integer, nullable
  - `row_count` integer, nullable
  - `tags` string[], nullable
  - `message` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/discolike/apis/discolike-api.md) · [All operations](https://skmtc.net/discolike/apis/discolike-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/discolike/discolike-api/revisions/6b838ca10add/schema)
