---
title: "Query Test Evaluation"
method: POST
path: "/api/query/_test"
tags: ["Query"]
---

# Query Test Evaluation

`POST /api/query/_test`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/query/_test`
- Auth: API key in header `Authorization`

Upload a query AND data to see how it will be interpreted.

```sh

# add any name/value paris to query string param for data input
# then upload query and get evaluation response
curl -s -XPOST "https://api.lytics.io/api/query/_test?name=value" \
   -H "Authorization: $LIOKEY" \
   -H "Content-Type: text/plain" \
   --data-binary @your_file.lql

```

## Response `200`

OK

- QueryModel
  - `status` string
  - `data` object
    - `id` string
    - `updated` string
    - `created` string
    - `text` string

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
