Running Graph Queries
Learn more in the Graph API documentation
Run a graph query via API
Request
Run a graph query by creating a POST request to the graph queries resource. You will need to specify a graph query template and the parameters it needs:
In parameter-map, include each parameter defined in your graph query template and the value you want to pass in. For example, if your graph query template contains a parameter called account-id, your parameter-map may look like this:
Response
The HTTP response includes a graph query ID that you can use to poll for the query result:
Get graph query results via API
Request
Fetch the results of a graph query using the graph query ID:
Each new graph query’s status starts as submitted.
Once the status is completed, the results are available in the response.
Response
A completed graph query contains the following fields:
If your team would like to get additional data in the API response, please let your Persona Account Team contact know.
About node limits
Every graph query requires processing huge amounts of data and analyzing the relationships between many data nodes. To ensure performant queries, the computation will not continue traversing more nodes once it hits the graph query’s specified node limit.
When a graph computation hits the node limit, it will return the results it has accumulated so far. Thus, if node-limit-reached is true, the results may only reflect the portion of the possible results.
If you would like to get paginated results, please reach out to your Persona Graph contact.
Best practices
For optimal query performance, try to keep the range of nodes being queried over small. For example:
- In general, a query over a smaller
created-attime range will be faster. - In general, a query on a more unique node type, such as government ID number, will compute faster than a query on a node type with lots of matches, such as name.

