Get Started with NEES Core Engine
Send your first governed request through NEES Core Engine, inspect the returned trace metadata, and keep your API integration server-side from the start.
A. What You Need
A NEES API key
Your application backend or local test environment
Basic HTTP client support
A user/session identifier from your app
NEES_API_KEY=your_api_key_here
NEES_BASE_URL=https://api.nees.cloudB. Send Your First Governed Request
curl -X POST https://api.nees.cloud/chat \
-H "Authorization: Bearer YOUR_NEES_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Explain our product clearly to a new user.",
"user_id": "demo_user",
"session_id": "demo_session",
"mode": "assistant"
}'C. JavaScript Example
import axios from "axios";
const response = await axios.post(
"https://api.nees.cloud/chat",
{
message: "Explain our product clearly to a new user.",
user_id: "demo_user",
session_id: "demo_session",
mode: "assistant",
},
{
headers: {
Authorization: `Bearer ${process.env.NEES_API_KEY}`,
"Content-Type": "application/json",
},
}
);
console.log(response.data);D. Python Example
import os
import requests
url = "https://api.nees.cloud/chat"
payload = {
"message": "Explain our product clearly to a new user.",
"user_id": "demo_user",
"session_id": "demo_session",
"mode": "assistant",
}
headers = {
"Authorization": f"Bearer {os.environ['NEES_API_KEY']}",
"Content-Type": "application/json",
}
response = requests.post(url, json=payload, headers=headers, timeout=45)
response.raise_for_status()
print(response.json())E. Understand the Response
{
"reply": "A governed response generated for your user.",
"trace_id": "trace_abc123",
"engine_source": "core_engine",
"governance": {
"intent": "product_explanation",
"policy_status": "allowed",
"memory_scope": "session",
"identity_status": "stable"
}
}reply
The governed text response returned for the current request.
trace_id
A trace identifier you should log for support, debugging, and audits.
engine_source
The engine or runtime source that handled the request.
intent
The interpreted request category used inside governance decisions.
policy_status
Whether the request path was allowed, blocked, or otherwise constrained.
memory_scope
The memory boundary applied to the request, such as session or user scope.
identity_status
Whether identity rules remained stable for the current response.
F. Recommended Integration Pattern
Route requests through your backend so you can keep credentials private, attach your own user/session identifiers, and log trace IDs for support and production review.
G. Basic Modes
| Mode | Use Case |
|---|---|
| assistant | General AI assistant |
| companion | Emotionally consistent companion |
| support | Customer support assistant |
| tutor | Education / learning assistant |
| strategic | Planning or decision-support workflow |
| coding | Developer tool or AI coding assistant |
H. Error Handling
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 403 | Request blocked by policy |
| 429 | Rate limit reached |
| 500 | Server/internal error |
| 504 | Provider timeout |
I. Production Checklist
J. Request Beta Access
Email info@nees.cloud with: