Skip to main content
v2

REST API

The ConvEngine REST APIs provide interaction hooks for conversations, administrative controls for the database-driven semantic engine configuration, and advanced tooling for developers mapping state boundaries.

Conversation APIs

Base: /api/v1/conversation

Conversation endpoints

MethodPathPurpose
POST/messageProcess one conversation turn and return payload
POST/feedbackStore thumbs up/down + optional correction metadata
GET/audit/{conversationId}Raw audit rows (`ce_audit`) for the conversation
GET/audit/{conversationId}/traceStep and stage timeline view derived from audit rows

Turn Execution (/message)

Processes a single turn of conversation, accepting a user message and returning the deterministic intent/state payload alongside an AI generated response.

POST /message request
JSON
{
"conversationId": "9bf7540a-b129-4685-a120-730e8a0cb94b",
"message": "show all disconnect requests",
"reset": false,
"inputParams": {
"tenant": "acme"
}
}

Cache APIs

Base: /api/v1/cache

Cache endpoints

MethodPathPurpose
POST/refreshEvict and reload static caches; also refresh query-failure embeddings
GET/analyzeInspect cache health/state (`warmup` query param supported)

DB + Semantic admin APIs

Base: /api/v1/db

Schema and semantic administration

MethodPathPurpose
GET/inspect-schemaInspect live DB schema (`schema`, `prefix`, `matchMode` query params)
POST/semantic/embeddings/rebuildRebuild embeddings from semantic model
POST/semantic/embeddings/query-failures/rebuildRebuild `ce_semantic_query_failures.question_embedding` vectors
Semantic mode

Semantic admin endpoints require semantic runtime to be enabled in application.yml (convengine.mcp.db.semantic.enabled=true) as well as vector support on your DB.

Embeddings Pipeline (/semantic/embeddings/*)

Controls the backend refresh state for Postgres pgvector knowledge graphs.

Rebuild Base Model Embeddings
JSON
{
"forceRebuildAll": false,
"onlyMissing": true
}

Experimental APIs

Base: /api/v1/conversation/experimental

Feature-flagged endpoints

MethodPathPurpose
POST/generate-sqlGenerate CE seed SQL from scenario input
POST/generate-sql/zipGenerate ZIP package containing SQL/assets

Enable with:

convengine:
experimental:
enabled: true

Postman setup

FieldValue
MethodPOST
URLhttp://localhost:8080/api/v1/conversation/experimental/generate-sql/zip
HeadersContent-Type: application/json
Body Moderaw (JSON)
OutputSave Response -> Save to a file (creates ZIP)
Postman body (JSON)
JSON
{
"scenario": "Build semantic logic for disconnect workflow",
"domain": "utilities",
"constraints": "Focus on semantic filtering by date",
"includeMcp": true
}
/experimental/generate-sql success response
JSON
Generation scope

generate-sql is designed for non-transactional configuration tables (ce_config, ce_intent, ce_rule, ce_prompt_template, ce_response, ce_output_schema, ce_semantic_*). It does not generate runtime conversation/audit data.

Experimental output

Generated SQL should always be reviewed before execution.