Skip to main content
POST
/
query
Query data
curl --request POST \
  --url https://api.datalinks.com/api/v1/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "<string>",
  "namespace": "<string>",
  "dataset": "<string>",
  "query": "",
  "naturalLanguageQuery": "<string>",
  "model": "<string>",
  "provider": "<string>"
}'
{
  "data": [
    {}
  ],
  "metadata": {
    "count": 123,
    "executedQuery": "<string>",
    "originalQuery": "<string>",
    "sourceObject": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
username
string
required
namespace
string
required
dataset
string
query
string
default:""
naturalLanguageQuery
string
model
string
provider
string

Response

data
object[]
required
metadata
object
required