MindGraphDocs

Agents

MindGraph agents are long-running knowledge workers with durable memory, scoped context, explicit tool access, and an audit trail. They can research, maintain Project knowledge, use approved MCP tools, and return for scheduled work without starting from zero.

Configure and supervise agents in the dashboard. The HTTP surface below powers the same sessions, schedules, scope controls, and activity views.

Note:The runtime endpoints below accept API keys on eligible plans. Project binding, MCP connection custody, tool grants, pausing, and governance administration require an owner or admin user JWT. Those operations are still callable through the JWT Management API used by the dashboard; they are not part of the API-key contract.

Templates

Templates provide role-specific instructions, a current default model, starter prompts, and suggested integrations. You can change the instructions, model, budget, Project scope, and connected tools when you create an agent.

TemplateDesigned for
knowledge_agentResearch, analysis, graph building, and evolving knowledge articles.
client_researchLiving dossiers on clients, prospects, accounts, and market context.
personal_assistantInbox and calendar triage, commitments, and daily preparation.
project_managerGoals, plans, milestones, blockers, risks, and status reporting.

Create and manage agents

POST/v1/agentsCreate an agent
GET/v1/agentsList agents in the current organization
GET/v1/agents/{id}Get one agent
PATCH/v1/agents/{id}Update configuration or pause state
POST/v1/agents/{id}/archiveArchive an agent and its sessions
GET/v1/agents/templatesList current templates, prompts, models, and suggested connections
curl -X POST https://api.mindgraph.cloud/v1/agents \
  -H "Authorization: Bearer mg_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Account Intelligence",
    "template_type": "client_research",
    "custom_instructions": "Maintain a cited dossier and flag material changes.",
    "model": "claude-opus-4-6",
    "daily_credit_budget": 500
  }'

Scope and identity

The server resolves agent identity from its bound credential and re-evaluates access for each request. The agent cannot expand its own authority by supplying another agent_id.

  • Project scope — set a default Project on the agent, then narrow or override it for a session or schedule where permitted.
  • Space grants — grant read or write access and, when needed, a classification ceiling.
  • Project roles — use viewer, editor, or agent roles; corpus admission alone is not authorization.
  • Provenance — graph versions and execution records identify the agent and delegated request context.

A broad organization-wide context is available, but Project scope is the safer default for work that should stay inside a known source boundary. See Governance & Access.

Tool grants and MCP

Connecting a service does not automatically expose all of its tools to every agent. The connection is inspected and synchronized into a registry, then tools are granted to an agent explicitly. Native and MCP tools pass through the same authorization and policy checks.

Owners and admins configure these grants in the agent's Governance tab. See MCP Connections for connection custody, registry synchronization, and approval modes.

Policies and approvals

Before a consequential tool call runs, MindGraph checks identity, context scope, tool grant, and published governance policy. A policy can allow, deny, or require human approval. Approval-required calls pause with their arguments and resume only after an authorized dashboard user decides; access and registry drift are checked again before execution.

Policy decisions, approvals, executions, and resulting graph changes remain available in the governance audit trail. Revoking a grant or pausing an agent applies to the next request.

Sessions

POST/v1/agents/sessionsCreate a session, optionally with initial message and Project scope
GET/v1/agents/sessionsList sessions, optionally filtered by agent_id
GET/v1/agents/sessions/{sid}Get one session
POST/v1/agents/sessions/{sid}/messageSend a message to the session
POST/v1/agents/sessions/{sid}/interruptInterrupt in-flight work
POST/v1/agents/sessions/{sid}/archiveArchive a session
GET/v1/agents/sessions/{sid}/eventsRead paginated messages, tool calls, and results
GET/v1/agents/sessions/{sid}/streamSubscribe to live Server-Sent Events
GET/v1/agents/sessions/{sid}/pending-inputRead a pending question from the agent
POST/v1/agents/sessions/{sid}/respondAnswer a pending question

Schedules

A schedule combines a cron expression, message template, budget, and optional Project scope. Use it for recurring briefs, account monitoring, knowledge maintenance, or status reviews.

POST/v1/agents/schedulesCreate a schedule
GET/v1/agents/schedulesList schedules, optionally filtered by agent_id
PATCH/v1/agents/schedules/{id}Update schedule configuration or enabled state
DELETE/v1/agents/schedules/{id}Delete a schedule

Activity and audit

GET/v1/agents/activityOrganization-wide agent event feed
GET/v1/agents/activity/wsReal-time activity WebSocket
GET/v1/agents/{id}/workActive sessions, pending decisions, and upcoming schedules
GET/v1/agents/{id}/articlesKnowledge articles authored by the agent