POST
/
api
/
v1
/
explorer
/
queries
/
cURL
curl --request POST \
  --url https://api.nekt.ai/api/v1/explorer/queries/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "<string>",
  "sql_query": "<string>",
  "saved": true,
  "tab_open": true,
  "question": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "slug": "<string>",
  "description": "<string>",
  "user_interaction": "<any>",
  "sql_query": "<string>",
  "saved": true,
  "tab_open": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "current_version": "<string>",
  "created_by": 123
}

Authorizations

x-api-key
string
header
required

API Key authentication. Format: 'x-api-key: api_key'

Body

description
string | null
sql_query
string
saved
boolean
tab_open
boolean
question
string

Response

201 - application/json
id
string<uuid>
required
slug
string
required
user_interaction
any
required
sql_query
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
current_version
string
required

Current version of the query (Expandable)

created_by
integer
required

User that created this query (Expandable)

description
string | null
saved
boolean
tab_open
boolean