Code Examples

Get started quickly with code examples in multiple languages

Health Check
Check API status and service health
GET /api/health
curl -X GET "https://api.aibusinesssuite.com/api/health" \
  -H "x-api-key: YOUR_API_KEY"
Generate Embeddings
Create vector embeddings for text using AI
POST /api/ai/embeddings
curl -X POST "https://api.aibusinesssuite.com/api/ai/embeddings" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "text": "Your text to embed",
    "articleId": "optional-article-uuid"
  }'
Search Knowledge Base
Search articles using vector similarity
GET /api/ai/embeddings
curl -X GET "https://api.aibusinesssuite.com/api/ai/embeddings?query=Your%20search%20query&limit=5" \
  -H "x-api-key: YOUR_API_KEY"
Need More Examples?
Check out our comprehensive documentation and SDKs for more detailed examples and integrations.