Skip to content

Get relationship overview ​

Interface Description ​

Read a compact overview of available file relationships.

Endpoint ​

FieldValue
MethodGET
Path/openapi/v2/knowledge-bases/{knowledgeBaseId}/graph/overview
Operation IDgetGraphOverview
AuthenticationBearer OpenAPI key

Parameters ​

NameLocationRequiredTypeExampleDescription
knowledgeBaseIdpathYesstringknowledge-base-11111111-1111-4111-8111-111111111111Knowledge-base identifier returned by knowledge-base APIs.

Request Body ​

This operation has no request body.

Request Example ​

bash
curl -X GET "https://openapi.example.com/openapi/v2/knowledge-bases/knowledge-base-11111111-1111-4111-8111-111111111111/graph/overview" \
  -H "Authorization: Bearer <openapi-key>"

Successful Responses ​

200 ​

Relationship counts and links for exploring the currently readable knowledge-base version.

FieldRequiredTypeDescription
activeContentRevisionYesintegerCurrent readable knowledge-base content revision.
availabilityYesavailable | empty | unavailableWhether the readable knowledge-base version contains readable relationship data. An empty result does not mean the knowledge base is empty.
summaryYesobjectFile relationship counts.
resourcesYesobjectRelationship files and API links available for further exploration.
readActionsYesobjectDeveloper OpenAPI links for reading this file or exploring its relationships.

Success Response Example ​

json
{
  "activeContentRevision": 1,
  "availability": "available",
  "summary": {
    "readableFileCount": 24,
    "relationshipCount": 18
  },
  "resources": {
    "graphIndexPath": "_graph/index.md",
    "byDirectoryPath": "_graph/by-directory",
    "byFilePath": "_graph/by-file"
  },
  "readActions": {
    "graphIndexContent": "/openapi/v2/knowledge-bases/knowledge-base-11111111-1111-4111-8111-111111111111/files/content?path=_graph%2Findex.md",
    "listGraphRoot": "/openapi/v2/knowledge-bases/knowledge-base-11111111-1111-4111-8111-111111111111/tree?parentPath=_graph",
    "listRelationshipsByDirectory": "/openapi/v2/knowledge-bases/knowledge-base-11111111-1111-4111-8111-111111111111/tree?parentPath=_graph%2Fby-directory",
    "listRelationshipsByFile": "/openapi/v2/knowledge-bases/knowledge-base-11111111-1111-4111-8111-111111111111/tree?parentPath=_graph%2Fby-file"
  }
}

Error Codes ​

The table below lists every error response documented for this operation.

HTTP StatusError CodeExplanation
401UNAUTHORIZEDThe Bearer API key is missing, malformed, unknown, revoked, or deleted.
404NOT_FOUNDThe requested resource was not found.
429RATE_LIMITEDThe request exceeded the configured rate limits.
500INTERNAL_ERRORThe API encountered an internal error.
503DATABASE_REPOSITORY_UNAVAILABLEThe data required by this operation is temporarily unavailable.

Next Steps ​