Skip to main content

Execute a Query | Data Analytics

Running your queries is pretty straightforward, you only need the query id and any optional variables required.

1. Check Your Queries for the Query ID

List available Queries using the List Queries endpoint (GET /queries) to get the Query ID.

2. Executing the Query

Using the query id and any variables required you are ready to setup the payload for executing the query via the Execute Query endpoint:

Example POST /queries/execute Payload
{
"id": "dfcee886-231d-4a9d-9bdd-857f74XXXXX",
"variables": {
"question_number": 5
}
}
Code Samples
nildb/secretvault_python/nildb_api.py
loading...