NlqGraphExtract
NlqGraphExtract
Section titled “NlqGraphExtract”Extract graph relationships from natural language query
Endpoint: /api/nlq/nlqgraphextract
Tags: NLQ
API Details
GET /api/nlq/nlqgraphextract
Request
Section titled “Request”schema: z.object({ // tenantId is no longer exposed in the API - it's always derived from the API key input: Str({ description: "Natural language query to process" }), }),Responses
Section titled “Responses”Status Code: 200
Section titled “Status Code: 200”Returns the extracted entities and relationships
schema: z.object({ success: Bool(), entities: z.array(z.object({ id: Str(), name: Str(), type: Str(), description: Str().nullable() })),Status Code: 400
Section titled “Status Code: 400”Bad request
schema: z.object({ success: Bool(), error: Str(), }),Status Code: 401
Section titled “Status Code: 401”Unauthorized
schema: z.object({ success: Bool(), error: Str(), }),