API
The Neutron AI API lets your platform remember, recall, connect temporal knowledge, assemble bounded context, compare decisions, predict consequences, record outcomes, review learning, and manage scoped intelligence for agents.
All authenticated requests use:
Authorization: Bearer <NEUTRON_API_TOKEN>
Base URL
https://neutronai.dev/api
Use your assigned API base URL if your workspace has a custom endpoint.
Response shape
Successful responses return an object with success: true and a data payload.
Errors return success: false with a stable error code and human-readable message.
{
"success": false,
"error": {
"code": "bad_request",
"message": "Human-readable message"
}
}
Memory endpoints
GET /v1/nucleiPOST /v1/nucleiGET /v1/nuclei/:nucleusIdPOST /v1/memory/rememberPOST /v1/memory/recallPOST /v1/memory/agent-contextPOST /v1/memory/forgetGET /v1/memory/auditPOST /v1/memory/compact
Cache endpoints
GET /v1/memory/cache/statsPOST /v1/memory/cache/invalidatePOST /v1/memory/cache/warm
Agent endpoints
POST /v1/memory/reflectPOST /v1/memory/skills/learnPOST /v1/memory/kb/upsert
Consequence endpoints
POST /v1/consequence/planPOST /v1/consequence/decidePOST /v1/consequence/observePOST /v1/consequence/reflectPOST /v1/consequence/deletePOST /v1/consequence/delete-scoped
Use the Consequence decision-support guide for generic adapters and versioned application-supplied candidates.
Knowledge graph endpoints
POST /v1/entities/upsertPOST /v1/entities/searchGET /v1/entities/:entityIdPOST /v1/entities/tombstonePOST /v1/relationships/upsertGET /v1/relationships/:relationshipIdPOST /v1/relationships/tombstonePOST /v1/graph/neighboursPOST /v1/graph/queryPOST /v1/claimsGET /v1/contradictionsPOST /v1/contradictions/resolve
Context and identity endpoints
POST /v1/context/buildPOST /v1/searchPOST /v1/agents/upsertGET /v1/agents/:agentIdPOST /v1/snapshotsGET /v1/snapshots/:snapshotId
Decision, outcome, and simulation endpoints
POST /v1/decisionsGET /v1/decisions/:decisionIdPOST /v1/decisions/evaluatePOST /v1/consequences/predictPOST /v1/outcomesPOST /v1/learning/reviewPOST /v1/simulations
See Knowledge and decision intelligence for provenance, bitemporal reads, graph dimensions, permissions, snapshots, Pareto guidance, solver boundaries, counterfactuals, and reviewed learning.
MCP endpoints
POST /mcpGET /mcp/tools
MCP tools expose the main memory, entity, graph, context, decision, consequence, outcome, and simulation workflows through a compact schema-compatible interface for agent clients.
Required fields
Most intelligence requests include:
nucleusId: the memory-bank boundaryscopeIdorscopeIds: the user, project, team, agent, or session boundaryagentId: the calling agent or integrationtask,query,text, or a structured domain object: the external workflow input
Knowledge writes also carry confidence and provenance. Temporal reads can include validAt and knowledgeAt so applications can distinguish what was true from what Neutron had recorded at the time.
tenantId remains a legacy alias for nucleusId. If both are supplied, they must match.
Workspace API keys can create Nuclei and access Nuclei linked to that workspace. Nucleus access tokens can access only their own Nucleus. Prefer Nucleus tokens for runtime memory calls.
Safe usage
Do not send provider API keys, session cookies, private credentials, hidden prompts, raw chain-of-thought, or unnecessary regulated data. Apply persistent agent permissions during context retrieval and keep high-risk actions behind human approval.