Query APIs
Creating new queries, interacting with saved queries, and running query specs
Last updated
Was this helpful?
Creating new queries, interacting with saved queries, and running query specs
Last updated
Was this helpful?
The Query Builder APIs enable programmatic creation, execution, and management of assessment queries, using the Veza the . You can use these operations to develop your own tools and integrate Veza search with external services and automation.
Queries created with these endpoints can define risks and have rules and alerts associated with them. Even if you and your team create and manage queries primarily from the user interface, this documentation may still be of interest for learning how queries are constructed and handled within Veza.
You can use these methods to:
For more information about query options, see .
These endpoints are available under {{VezaURL}}/api/v1/
. You must use the appropriate prefix when calling the API, for example:
You can create and manage for your user account from Administration > API Keys. Each API call must include the API key in the request header, passed as a bearer authentication token.
The page consolidates some sample requests and responses.
An understanding of Veza's usage of may be helpful. To learn more about the query object and options, see . For more information about how to interpret the query response body, see .
You can start working with pre-built and saved queries using the /assessments/queries
endpoint. When you are ready to try running your own queries, see the operations to run test queries without saving them.