curl -X POST "https://{BASE_URL}/api/gpt/v1/messages/validate" \
-H "Authorization: Bearer {API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"model": "default",
"max_tokens": 128,
"messages": [
{ "role": "user", "content": "What were total Q1 subscriptions by plan?" }
],
"tools": [
{ "name": "database_query", "type": "database_query_v1" }
],
"tool_choice": { "type": "none" },
"tool_context": [
{
"type": "sql_database",
"connection_string": "postgresql://{username}:{password}@db.example.com:5432/analytics",
"schemas": ["public"],
"ssl": true
}
]
}'