REST API

The Nexus REST API is the foundation that all tools are built on.

All MCP tools and CLI commands are thin wrappers over the REST API. The API enforces tenant isolation, project-scoped RBAC, and token-based authentication.

Authentication

API tokens use the nxs_pat_* prefix and are passed as Bearer tokens in the Authorization header:

curl -H "Authorization: Bearer nxs_pat_..." \
  https://nexus.gatewarden.eu/api/mcp/identity

Tokens are SHA-256 hashed at rest and resolve to a user identity with tenant and project scope.

RBAC model

Nexus uses a dual-layer RBAC model:

  1. Platform-level roles via app_metadata.platform_role (platform_owner, platform_admin)
  2. Project-scoped roles via project_memberships (owner, admin, developer, viewer)

Customer-level access is managed through customer_memberships.

Base URL

https://nexus.gatewarden.eu/api

Key endpoints

EndpointMethodDescription
/api/mcp/identityGETResolve token to user identity
/api/mcp/kb/searchPOSTSearch the knowledge base
/api/mcp/kb/memoryPOSTGet project memory snapshot
/api/mcp/sessionsPOSTCreate a session
/api/mcp/sessions/:id/closePOSTClose a session
/api/mcp/sessions/:id/entriesPOSTAppend a session entry
/api/mcp/adrsPOSTCreate an ADR
/api/mcp/dispatchesPOSTCreate a Dispatch
/api/mcp/tasksPOSTCreate a task
/api/mcp/documentsPOSTIngest a document

API reference

For the complete tool reference with parameters and response schemas, see the MCP Tool Index. The MCP tools map 1:1 to REST API endpoints.

Was this page helpful?