Nenjo Docs
API

REST Endpoints

Complete REST API reference for all Nenjo resources organized by category.

REST Endpoints

All REST endpoints are served under /api/v1/ and require Clerk JWT authentication unless noted otherwise. Request and response bodies use JSON.

Authentication

MethodPathAuthDescription
GET/POST/api/v1/auth/verifyNoneVerify a Clerk session token
GET/api/v1/auth/meClerkGet current authenticated user

Agents

MethodPathDescription
GET/api/v1/agentsList agents (optional ?project_id=)
POST/api/v1/agentsCreate an agent
GET/api/v1/agents/bootstrapBootstrap agent data
GET/api/v1/agents/tagsList all unique agent tags
GET/api/v1/agents/:idGet an agent by ID
PATCH/api/v1/agents/:idUpdate an agent
DELETE/api/v1/agents/:idDelete an agent

Agent Matching

MethodPathDescription
GET/api/v1/match-agents?tags=rust,backendMatch agents by tags

Agent Roles

MethodPathDescription
GET/api/v1/agent-rolesList roles visible to user
POST/api/v1/agent-rolesCreate a custom role
GET/api/v1/agent-roles/:idGet a role
PATCH/api/v1/agent-roles/:idUpdate a custom role
DELETE/api/v1/agent-roles/:idDelete a custom role
GET/api/v1/agent-roles/:id/promptGet prompt config for a role
PATCH/api/v1/agent-roles/:id/promptUpdate prompt config
POST/api/v1/agent-roles/:id/previewPreview prompt with context
POST/api/v1/agent-roles/:id/resetReset role to system default
GET/api/v1/agent-roles/:id/platform-scopesGet platform scopes
PATCH/api/v1/agent-roles/:id/platform-scopesUpdate platform scopes

Role Assignments

MethodPathDescription
GET/api/v1/agent-role-assignmentsList all role assignments
GET/api/v1/agent-role-assignments/mineList current user's assignments
POST/api/v1/agent-role-assignmentsCreate a role assignment
GET/api/v1/agent-role-assignments/:idGet a role assignment
DELETE/api/v1/agent-role-assignments/:idDelete a role assignment

Role Skills

MethodPathDescription
GET/api/v1/agent-roles/:id/skillsList skills assigned to a role
POST/api/v1/agent-roles/:id/skills/:skill_idAssign a skill to a role
DELETE/api/v1/agent-roles/:id/skills/:skill_idRemove a skill from a role
PATCH/api/v1/agent-roles/:id/skills/:skill_idToggle/update a skill assignment

Role Modes

MethodPathDescription
GET/api/v1/agent-roles/:id/modesList modes assigned to a role
POST/api/v1/agent-roles/:id/modes/:mode_idAssign a mode to a role
DELETE/api/v1/agent-roles/:id/modes/:mode_idRemove a mode from a role
PATCH/api/v1/agent-roles/:id/modes/:mode_idToggle/update a mode assignment

Role MCP Servers

MethodPathDescription
GET/api/v1/agent-roles/:id/mcpList MCP servers for a role
POST/api/v1/agent-roles/:id/mcp/:mcp_idAssign an MCP server to a role
DELETE/api/v1/agent-roles/:id/mcp/:mcp_idRemove an MCP server from a role

Skills

MethodPathDescription
GET/api/v1/skillsList all skills
POST/api/v1/skillsCreate a skill
POST/api/v1/skills/uploadUpload a skill from file
GET/api/v1/skills/:idGet a skill
PATCH/api/v1/skills/:idUpdate a skill
DELETE/api/v1/skills/:idDelete a skill
PUT/api/v1/skills/:id/credentialsStore encrypted credentials
DELETE/api/v1/skills/:id/credentialsRevoke credentials
GET/api/v1/skills/:id/credentials/statusCheck credential status

Modes

MethodPathDescription
GET/api/v1/modesList all modes
POST/api/v1/modesCreate a mode
POST/api/v1/modes/uploadUpload a mode from file
GET/api/v1/modes/:idGet a mode
PATCH/api/v1/modes/:idUpdate a mode
DELETE/api/v1/modes/:idDelete a mode
POST/api/v1/modes/:id/resetReset mode to system default

Mode Sessions

MethodPathDescription
POST/api/v1/modes/:id/sessionsCreate a mode session
GET/api/v1/modes/sessions/activeGet active session for project + role
GET/api/v1/modes/sessions/:sidGet a session
PATCH/api/v1/modes/sessions/:sidUpdate session draft
POST/api/v1/modes/sessions/:sid/completeComplete a session
POST/api/v1/modes/sessions/:sid/cancelCancel a session

Projects

MethodPathDescription
GET/api/v1/projectsList all projects
POST/api/v1/projectsCreate a project
GET/api/v1/projects/systemGet the system project
GET/api/v1/projects/:idGet a project by ID
PATCH/api/v1/projects/:idUpdate a project
DELETE/api/v1/projects/:idDelete a project
POST/api/v1/projects/:id/sync-repoSync project repository
POST/api/v1/projects/:id/disconnect-repoDisconnect project repository
DELETE/api/v1/projects/:id/ticketsDelete all tickets in a project
GET/api/v1/projects/:id/settingsGet aggregated project settings

Project Documents

MethodPathDescription
GET/api/v1/projects/:pid/documentsList documents in a project
POST/api/v1/projects/:pid/documentsUpload a document (multipart)
GET/api/v1/projects/:pid/documents/:doc_idDownload a document
DELETE/api/v1/projects/:pid/documents/:doc_idDelete a document
GET/api/v1/projects/:pid/documents/:doc_id/contentGet document content as text
PUT/api/v1/projects/:pid/documents/:doc_id/contentUpdate document content

Project Dependencies

MethodPathDescription
GET/api/v1/projects/:pid/dependency-graphGet full dependency graph (D3.js-ready)
GET/api/v1/projects/:pid/execution-orderGet topologically sorted execution order

Project Pipeline Assignments

MethodPathDescription
GET/api/v1/projects/:pid/pipeline-assignmentsList all assignments for a project
POST/api/v1/projects/:pid/pipeline-assignmentsCreate a pipeline assignment
GET/api/v1/projects/:pid/pipeline-assignments/:idGet an assignment
PATCH/api/v1/projects/:pid/pipeline-assignments/:idUpdate an assignment
DELETE/api/v1/projects/:pid/pipeline-assignments/:idDelete an assignment
POST/api/v1/projects/:pid/pipeline-assignments/:id/triggerManually trigger a cron assignment

Mode Artifacts

MethodPathDescription
GET/api/v1/projects/:pid/mode-artifactsList mode artifacts for a project

Tickets

MethodPathDescription
GET/api/v1/ticketsList tickets (query params for filtering)
POST/api/v1/ticketsCreate a ticket
POST/api/v1/tickets/bulkBulk create tickets
GET/api/v1/tickets/:idGet a ticket by ID
PATCH/api/v1/tickets/:idUpdate a ticket
DELETE/api/v1/tickets/:idDelete a ticket

Ticket Dependencies

MethodPathDescription
POST/api/v1/tickets/:ticket_id/dependenciesAdd a dependency
DELETE/api/v1/tickets/:ticket_id/dependencies/:dep_idRemove a dependency

Pipelines

MethodPathDescription
GET/api/v1/pipelinesList all pipelines for the user
POST/api/v1/pipelinesCreate a pipeline
GET/api/v1/pipelines/:idGet a pipeline with steps and edges
PATCH/api/v1/pipelines/:idUpdate a pipeline
DELETE/api/v1/pipelines/:idDelete a pipeline
POST/api/v1/pipelines/:id/set-defaultSet as the default pipeline
POST/api/v1/pipelines/:id/triggerManually trigger a pipeline

Pipeline Steps

MethodPathDescription
POST/api/v1/pipelines/:pid/stepsAdd a step to a pipeline
PATCH/api/v1/pipelines/:pid/steps/:step_idUpdate a step
DELETE/api/v1/pipelines/:pid/steps/:step_idRemove a step

Pipeline Edges

MethodPathDescription
POST/api/v1/pipelines/:pid/edgesAdd a directed edge
DELETE/api/v1/pipelines/:pid/edges/:edge_idRemove an edge

Executions

MethodPathDescription
GET/api/v1/executionsList execution runs
POST/api/v1/executionsCreate an execution run
GET/api/v1/executions/:idGet execution details
POST/api/v1/executions/:id/commandSend a lifecycle command
GET/api/v1/executions/:id/ticketsGet tickets for an execution
GET/api/v1/executions/:id/eventsGet events for an execution

Councils

MethodPathDescription
GET/api/v1/councilsList councils for the user
POST/api/v1/councilsCreate a council with leader and members
GET/api/v1/councils/:idGet council with member details
PATCH/api/v1/councils/:idUpdate council metadata
DELETE/api/v1/councils/:idDelete a council
POST/api/v1/councils/:id/membersAdd a member to a council
PATCH/api/v1/councils/:id/members/:midUpdate a council member
DELETE/api/v1/councils/:id/members/:midRemove a council member

Lambdas

MethodPathDescription
GET/api/v1/lambdasList lambdas
POST/api/v1/lambdasCreate a lambda
GET/api/v1/lambdas/:idGet a lambda
PATCH/api/v1/lambdas/:idUpdate a lambda
DELETE/api/v1/lambdas/:idDelete a lambda

MCP Servers

External MCP server configurations that can be assigned to agent roles.

MethodPathDescription
GET/api/v1/mcp-serversList MCP server configs
POST/api/v1/mcp-serversCreate an MCP server config
GET/api/v1/mcp-servers/registry/searchSearch the MCP server registry
GET/api/v1/mcp-servers/registry/:name/latestGet latest version from registry
GET/api/v1/mcp-servers/:idGet an MCP server config
PATCH/api/v1/mcp-servers/:idUpdate an MCP server config
DELETE/api/v1/mcp-servers/:idDelete an MCP server config

Chat Messages

MethodPathDescription
GET/api/v1/chat-messagesList messages (paginated)
POST/api/v1/chat-messagesCreate a message
DELETE/api/v1/chat-messagesDelete all messages for a role
DELETE/api/v1/chat-messages/:idDelete a single message

Chat Sessions

MethodPathDescription
GET/api/v1/chat-sessionsList chat sessions
POST/api/v1/chat-sessionsCreate a session
PATCH/api/v1/chat-sessions/:idRename a session
DELETE/api/v1/chat-sessions/:idHard delete a session
POST/api/v1/chat-sessions/:id/archiveArchive a session

Prompt Context Variables

MethodPathDescription
GET/api/v1/prompt-context-variablesList all variables grouped by category

API Keys

See API Keys for full details.

MethodPathDescription
GET/api/v1/api-keysList API keys for the user
POST/api/v1/api-keysCreate a new API key
DELETE/api/v1/api-keys/:idRevoke an API key

Workers

MethodPathDescription
GET/api/v1/workersCheck worker status (via Redis)

Webhooks

These endpoints are stubs (not yet implemented).

MethodPathAuthDescription
GET/api/v1/webhooksNoneList webhooks
POST/api/v1/webhooksNoneCreate a webhook
GET/api/v1/webhooks/:idNoneGet a webhook
GET/api/v1/webhooks/:id/logsNoneGet webhook logs
POST/api/v1/webhooks/:id/testNoneTest a webhook

Version

MethodPathAuthDescription
GET/api/v1/versionNoneGet API version info

On this page