Authorizations
API key for authentication. Format: zdb_your_api_key_here
Body
application/json
curl --request POST \
--url http://localhost:3000/query \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"sql": "<string>",
"parameters": [
"<any>"
],
"timeout": 30000
}
'{
"success": true,
"data": {
"queryId": "<string>",
"rows": [
{}
],
"rowCount": 123,
"executionTime": 123,
"queryType": "<string>"
}
}Executes a SQL query against the database
curl --request POST \
--url http://localhost:3000/query \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"sql": "<string>",
"parameters": [
"<any>"
],
"timeout": 30000
}
'{
"success": true,
"data": {
"queryId": "<string>",
"rows": [
{}
],
"rowCount": 123,
"executionTime": 123,
"queryType": "<string>"
}
}API key for authentication. Format: zdb_your_api_key_here
Was this page helpful?