Learn more in the Graph API documentation
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:
The HTTP response includes a graph query ID that you can use to poll for the query result:
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.
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.
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.
For optimal query performance, try to keep the range of nodes being queried over small. For example:
created-at time range will be faster.