API
GET /api/introspect/graph/path
Get Graph Path
GET /api/introspect/graph/path
Get Graph Path
Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from_topic | query | string | Yes | Source topic string |
to_topic | query | string | Yes | Target topic string |
X-Org-ID | header | string | null | No | - |
Example request
curl -X GET https://api.cognitivx.io/api/introspect/graph/path \
-H "Authorization: Bearer icog_..."Example response
200 application/json
{
"from_topic": "string",
"to_topic": "string",
"path": [
{
"memory_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"content_text": "Parsa prefers limit/offset pagination",
"importance": 0,
"memory_type": "semantic"
}
],
"path_length": 1,
"found": false
}Responses
| Status | Description |
|---|---|
200 | Success. Returns the response body shown below. |
422 | Request validation failed. detail lists each offending field. |