cURL
curl --request POST \ --url https://api.camelai.com/api/v1/reference-queries/{id}/validate/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "query": "<string>", "title": "<string>", "connection_id": 123, "source_type": "USER" }'
{ "valid": true, "error": "<string>" }
Validate that a query is syntactically correct for the associated connections.
API key authentication using Bearer scheme
Serializer for Reference Query model instances.
1
Connection ID this query applies to
USER
AI
TABLE
Whether the query is valid
Error message if query is invalid
Was this page helpful?