API Reference
Integrate your NovaHost-powered AI platform into any application. RESTful API with full chat, knowledge base, and workflow support.
Quick Start
# Send a chat message to your AI instance
curl -X POST https://your-instance.novahost.ai/api/v1/chat-messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What are our return policies?",
"user": "user-123",
"response_mode": "streaming"
}'Base URL
Each NovaHost instance has a unique base URL. Find yours in the dashboard under Instance Settings.
https://your-instance.novahost.ai/api/v1Authentication
Authenticate API requests with your instance API key.
POST
/api/v1/auth/tokenGET
/api/v1/auth/meChat & Completions
Send messages and receive AI-generated responses from your chatbot apps.
POST
/api/v1/chat-messagesPOST
/api/v1/completion-messagesGET
/api/v1/messagesDELETE
/api/v1/conversations/:idKnowledge Base
Manage documents and datasets for RAG-powered knowledge bases.
POST
/api/v1/datasetsPOST
/api/v1/datasets/:id/documentsGET
/api/v1/datasets/:id/documentsDELETE
/api/v1/datasets/:id/documents/:doc_idWorkflows
Trigger and manage AI workflow executions programmatically.
POST
/api/v1/workflows/runGET
/api/v1/workflows/:id/runsGET
/api/v1/workflows/:id/runs/:run_idPOST
/api/v1/workflows/:id/stopWebhooks
Receive real-time notifications for events in your AI platform.
POST
/api/v1/webhooksGET
/api/v1/webhooksDELETE
/api/v1/webhooks/:idSDKs & Libraries
Official client libraries to integrate NovaHost AI into your applications.
Python
pip install dify-clientJavaScript
npm install dify-clientcURL
No installation neededNeed help with the API? Our team is here to assist.
View Full Documentation