curl --request POST \
--url https://api.example.com/v1/sql/aiCompletion \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
'{
"candidates": [
{
"content": {
"parts": [
{
"text": "<string>"
}
]
}
}
]
}Provides AI-powered SQL completion and generation. Permissions required: None (authenticated users only, requires AI to be enabled)
curl --request POST \
--url https://api.example.com/v1/sql/aiCompletion \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
'{
"candidates": [
{
"content": {
"parts": [
{
"text": "<string>"
}
]
}
}
]
}Was this page helpful?