İçereği Atla

Dokümantasyon

Moodo AI hakkında bilmeniz gereken her şey.

API Reference

Moodo provides REST API endpoints for integration with external systems.

Authentication

All API calls require a license key in the Authorization header:

Authorization: Bearer MOODO-XXXX-XXXX-XXXX-XXXX
X-Moodo-Fingerprint: your-instance-id

Endpoints

POST /api/v1/validate

Validate a license key.

{
  "license_key": "MOODO-XXXX-XXXX-XXXX-XXXX",
  "fingerprint": "your-instance-fingerprint",
  "module": "moodo",
  "version": "19.0.1.0.0"
}

POST /moodo/chat

Send a chat message (Proxy Mode only).

{
  "messages": [{"role": "user", "content": "Show me today's sales"}],
  "provider": "gemini",
  "max_tokens": 4096
}

POST /moodo/agent-chat

Agentic chat with tool execution.

{
  "messages": [...],
  "system_prompt": "You are an Odoo assistant...",
  "tools": [...],
  "provider": "gemini"
}

POST /moodo/agent-chat/stream

Streaming agentic chat via Server-Sent Events (SSE).

GET /health

Health check. Returns:

{"status": "ok", "version": "2.0.0", "engine": "odoo"}