Available Actions
queryinsertupdatedelete
Input Schema
{
"type": "object",
"required": [
"sql"
],
"properties": {
"sql": {
"type": "string"
},
"params": {
"type": "array"
},
"database": {
"type": "string"
}
}
}Output Schema
{
"type": "object",
"properties": {
"rows": {
"type": "array"
},
"fields": {
"type": "array"
},
"rowCount": {
"type": "number"
}
}
}Quick Start
API Endpoint
POST /api/execute/database-querycURL Example
curl -X POST \
https://api.nulayers.com/execute/database-query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "query"}'