Skip to main content
POST
/
graph
/
path
Find the shortest path between two records in the relation graph.
curl --request POST \
  --url https://api.supersonic.cv/graph/path \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_record_id": "<string>",
  "to_record_id": "<string>",
  "max_depth": 123,
  "types": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

API key: supersonic_live_...

Body

application/json
from_record_id
string
required

Source record UUID

to_record_id
string
required

Target record UUID

max_depth
integer

Max path length (default 4, max 6)

types
string

Comma-separated relation types to filter

Response

Success

The response is of type object.