Skip to main content
GET
/
api
/
query
Retrieves queries
curl --request GET \
  --url https://aiapi.{client}.nx1cloud.com/api/query \
  --header 'Authorization: Bearer <token>'
[
  {
    "card_url": "<string>",
    "domain": "<string>",
    "domain_urn": "<string>",
    "prompt": "<string>",
    "query": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "suggestion_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

limit
integer
default:20

Response

Queries retrieved successfully.

card_url
string
required

URL of the card associated with this query.

domain
string
required

Name of the data domain to which this query belongs.

domain_urn
string
required

Unique resource name (URN) identifying the domain.

prompt
string
required

User-provided prompt or question that generated this query.

query
string
required

The SQL or underlying query generated from the prompt.

id
string<uuid> | null

Unique ID of the query.

suggestion_id
string<uuid> | null

Optional ID of the suggestion used to create this query.

created_at
string<date-time>

Timestamp when the query was created.