curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/kb/graph' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"analysis_type": "string",
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 20
}'
Perform graph analysis on the knowledge base
Analyze the knowledge graph structure. Required scope: write
POST
/
api
/
v1
/
kb
/
graph
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/kb/graph' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"analysis_type": "string",
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 20
}'
Analyze the knowledge graph structure.
Required scope:
write
Request body
GraphAnalysisRequest
string
required
Type of analysis: ‘paths’, ‘centrality’, ‘clusters’
string
Optional entity ID to focus on
integer
Maximum results
Response
No response body. Graph analysis result (centrality, clusters, or paths per the requested analysis_type).Status codes
| Code | Meaning |
|---|---|
200 | Graph analysis result (centrality, clusters, or paths per the requested analysis_type) |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/kb/graph' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"analysis_type": "string",
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 20
}'
Last modified on August 31, 2026