Powerful REST API
Build custom applications with our complete REST API. Streaming responses, webhooks, and enterprise-grade features.
Complete API Features
Everything developers need
Streaming Responses
Real-time streaming with WebSocket support for live responses.
REST Endpoints
Complete RESTful API for all operations.
Authentication
JWT tokens and API key support for secure access.
Rate Limiting
Fair-use rate limiting with configurable tiers.
Webhooks
Event-driven architecture for asynchronous processing.
SDK Support
Official SDKs for Python, JavaScript, and Go.
Core Endpoints
Start with these essential endpoints
/chat/querySend a message and get AI response
/chat/streamStream AI responses in real-time
/documentsList all training documents
/documents/uploadUpload new training data
/usageGet usage statistics
/agentsList all AI agents
Quick Start
Get up and running in minutes
# Install SDK
npm install @mindsentry/sdk# Initialize Client
const { Mindsentry } = require('@mindsentry/sdk');
const client = new Mindsentry({
apiKey: 'your-api-key',
agentId: 'your-agent-id'
});# Send a Query
const response = await client.chat.query({
message: 'What is your return policy?',
stream: true
});
response.on('chunk', (chunk) => {
console.log(chunk.text);
});Use Cases
What can you build?
Authentication
Secure your API with JWT tokens or API keys.
API Key Auth
Pass API key in Authorization header
Authorization: Bearer your-api-keyJWT Token
Exchange credentials for JWT token
Authorization: Bearer eyJhbGc...Rate Limiting
Based on your plan. Includes headers showing limits.
X-RateLimit-Remaining: 4999Ready to Build with Our API?
Get your API key today and start building. Full documentation and SDKs included.
Get API Key