Query
Create Query
Data API
Application
Query
Query
Create Query
POST
/
api
/
v1
/
explorer
/
queries
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>",
"current_version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql_query": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"created_by_token": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
},
"saved": true,
"tab_open": true,
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"created_by_token": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
API Key authentication. Format: 'x-api-key: api_key'
Body
Response
201 - application/json
The response is of type object
.
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>",
"current_version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql_query": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"created_by_token": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
},
"saved": true,
"tab_open": true,
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"created_by_token": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}