Tandem API

Tandem API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-26); not the provider's own document.

GitHub OpenAPI

Operations 42

GET /agent-team/approvals GET /agent-team/approvals #
POST /agent-team/approvals/spawn/{id}/approve POST /agent-team/approvals/spawn/{id}/approve #
POST /agent-team/approvals/spawn/{id}/deny POST /agent-team/approvals/spawn/{id}/deny #
POST /agent-team/instance/{id}/cancel POST /agent-team/instance/{id}/cancel #
GET /agent-team/instances GET /agent-team/instances #
POST /agent-team/mission/{id}/cancel POST /agent-team/mission/{id}/cancel #
GET /agent-team/missions GET /agent-team/missions #
POST /agent-team/spawn POST /agent-team/spawn #
GET /agent-team/templates Returns loaded agent templates. #
POST /agent-team/templates POST /agent-team/templates #
GET /api/engine/webhooks/automations/whpub_your_public_token GET /api/engine/webhooks/automations/whpub_your_public_token #
GET /automations/v2/{id}/governance GET /automations/v2/{id}/governance returns the complete state for one automation. #
POST /automations/v2/{id}/webhook-triggers Automation V2 Webhooks #
GET /automations/v2/{id}/webhook-triggers/{triggerId} Automation V2 Webhooks #
POST /automations/v2/{id}/webhook-triggers/{triggerId}/import-secret Automation V2 Webhooks #
POST /automations/v2/{id}/webhook-triggers/{triggerId}/reveal-verification-token Automation V2 Webhooks #
POST /browser/install Install the matching tandem-browser sidecar onto the engine host. #
POST /browser/smoke-test End‑to‑end smoke test for the browser. #
GET /browser/status Check browser readiness through a running engine. #
GET /global/health Checks engine health. #
GET /governance/agents/{agentId}/spend GET /governance/agents/{agent_id}/spend is a useful inspection surface. #
GET /governance/approvals GET /governance/approvals is a useful inspection surface. #
POST /governance/approvals The canonical write surface is POST /governance/approvals. #
POST /governance/approvals/{approvalId}/approve POST /governance/approvals/{approval_id}/approve has two effects: it marks the approval request as approved and for lifecycle review requests, it acknowledges the matching automati #
POST /governance/approvals/{approvalId}/deny GET /governance/approvals includes a POST /governance/approvals/{approval_id}/deny route for inspection surfaces. #
GET /governance/reviews GET /governance/reviews is a useful inspection surface. #
GET /governance/spend GET /governance/spend is a useful inspection surface. #
POST /incident-monitor/security/assessment-report Use POST /incident-monitor/security/assessment-report to generate a redacted Incident Monitor security gap assessment report. #
GET /incident-monitor/security/authority-inventory Use GET /incident-monitor/security/authority-inventory to collect a read-only authority map for Incident Monitor security posture assessment. #
POST /incident-monitor/security/governance-metrics Use POST /incident-monitor/security/governance-metrics to compute redacted governance-health metrics plus behavioral drift in dry-run mode. #
GET /incident-monitor/security/reassessments Use GET /incident-monitor/security/reassessments to list recent records plus per-scope schedule status. #
POST /incident-monitor/security/reassessments Use POST /incident-monitor/security/reassessments to run a reassessment now. #
GET /incident-monitor/security/scenario-packs Use GET /incident-monitor/security/scenario-packs to describe the built-in pack. #
POST /incident-monitor/security/scenario-packs Use POST /incident-monitor/security/scenario-packs to run it (or a supplied custom pack) in dry-run. #
GET /incident-monitor/status GET /incident-monitor/status returns source_readiness beside destination readiness. #
GET /mcp/tools List discovered tools from connected MCP servers. #
POST /memory/import Memory import utilities for seeding Tandem memory. #
POST /mission/{id}/event POST /mission/{id}/event (orchestrator bridge fields) #
POST /session/{sessionId}/prompt_async Start prompt_async with file attachments. #
POST /tool/execute Execute a specific tool directly by passing a JSON payload. #
GET /tool/ids List all engine tool IDs, including built-ins and MCP tools. #
POST /worktree/cleanup Preview or remove stale repo‑local managed worktrees. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tandem-ac:tandem-ac-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tandem-ac-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Tandem API
  version: '2026-11-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-26: 42 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Tandem has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 40
    pages-with-code: 2
    pages-read: 6
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.tandem.ac/reference/tools
  - https://docs.tandem.ac/reference/agent-team-api
  - https://docs.tandem.ac/reference/engine-commands
  - https://docs.tandem.ac/reference/incident-monitor
  - https://docs.tandem.ac/reference/governance-lifecycle
  - https://docs.tandem.ac/automation-v2-webhooks
servers:
- url: https://test.tandem.ac
paths:
  /agent-team/approvals:
    get:
      operationId: get_agent_team_approvals
      tags:
      - Agent Team
      summary: GET /agent-team/approvals
      x-source: https://docs.tandem.ac/reference/agent-team-api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentTeamApprovalsResponse'
      x-evidence:
        kind: documentation
  /agent-team/approvals/spawn/{id}/approve:
    post:
      operationId: post_agent_team_approvals_spawn_id_approve
      tags:
      - Agent Team
      summary: POST /agent-team/approvals/spawn/{id}/approve
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamApprovalsSpawnIdApproveRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAgentTeamApprovalsSpawnIdApproveResponse'
      x-evidence:
        kind: documentation
  /agent-team/approvals/spawn/{id}/deny:
    post:
      operationId: post_agent_team_approvals_spawn_id_deny
      tags:
      - Agent Team
      summary: POST /agent-team/approvals/spawn/{id}/deny
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamApprovalsSpawnIdDenyRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAgentTeamApprovalsSpawnIdDenyResponse'
      x-evidence:
        kind: documentation
  /agent-team/instance/{id}/cancel:
    post:
      operationId: post_agent_team_instance_id_cancel
      tags:
      - Agent Team
      summary: POST /agent-team/instance/{id}/cancel
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamInstanceIdCancelRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /agent-team/instances:
    get:
      operationId: get_agent_team_instances
      tags:
      - Agent Team
      summary: GET /agent-team/instances
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: missionID
        in: query
        required: false
        schema:
          type: string
      - name: parentInstanceID
        in: query
        required: false
        schema:
          type: string
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: queued|running|completed|failed|cancelled
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /agent-team/mission/{id}/cancel:
    post:
      operationId: post_agent_team_mission_id_cancel
      tags:
      - Agent Team
      summary: POST /agent-team/mission/{id}/cancel
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamMissionIdCancelRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAgentTeamMissionIdCancelResponse'
      x-evidence:
        kind: documentation
  /agent-team/missions:
    get:
      operationId: get_agent_team_missions
      tags:
      - Agent Team
      summary: GET /agent-team/missions
      x-source: https://docs.tandem.ac/reference/agent-team-api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentTeamMissionsResponse'
      x-evidence:
        kind: documentation
  /agent-team/spawn:
    post:
      operationId: post_agent_team_spawn
      tags:
      - Agent Team
      summary: POST /agent-team/spawn
      x-source: https://docs.tandem.ac/reference/agent-team-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamSpawnRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAgentTeamSpawnResponse'
      x-evidence:
        kind: documentation
  /agent-team/templates:
    get:
      operationId: get_agent_team_templates
      tags:
      - Agent Team
      summary: Returns loaded agent templates.
      x-source: https://docs.tandem.ac/reference/agent-team-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_agent_team_templates
      tags:
      - Agent Team
      summary: POST /agent-team/templates
      x-source: https://docs.tandem.ac/reference/engine-commands
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAgentTeamTemplatesRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostAgentTeamTemplatesResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -s http://127.0.0.1:39731/agent-team/templates | jq . curl -s http://127.0.0.1:39731/agent-team/instances | jq . curl -s\
          \ -X POST http://127.0.0.1:39731/agent-team/spawn \\ -H \" content-type: application/json \" \\ -d ' {\"missionID\":\"m1\",\"role\"\
          :\"worker\",\"templateID\":\"worker-default\",\"source\":\"ui_action\",\"justification\":\"parallelize implementation\"} ' | jq . \n\
          \ Practical Examples Section titled “Pr"
  /api/engine/webhooks/automations/whpub_your_public_token:
    get:
      operationId: get_api_engine_webhooks_automations_whpub_your_public_token
      tags:
      - Api
      summary: GET /api/engine/webhooks/automations/whpub_your_public_token
      x-source: https://docs.tandem.ac/automation-v2-webhooks
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl does\nnot enforce CORS. A browser sends an OPTIONS preflight before a cross-origin\n POST ; the hosted proxy forwards that\
          \ preflight to the Engine, and the Engine\nallows only origins configured by TANDEM_CORS_ORIGINS . Do not embed a\n whsec_... secret\
          \ in public browser code. If a trusted internal browser client\nmust send webhooks, add its exact origin to TANDEM_CORS_ORIGINS and\
          \ keep the\nsecret "
  /automations/v2/{id}/governance:
    get:
      operationId: get_automations_v2_id_governance
      tags:
      - Automations
      summary: GET /automations/v2/{id}/governance returns the complete state for one automation.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /automations/v2/{id}/webhook-triggers:
    post:
      operationId: post_automations_v2_id_webhook_triggers
      tags:
      - Automations
      summary: Automation V2 Webhooks
      x-source: https://docs.tandem.ac/automation-v2-webhooks
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /automations/v2/{id}/webhook-triggers/{triggerId}:
    get:
      operationId: get_automations_v2_id_webhook_triggers_triggerId
      tags:
      - Automations
      summary: Automation V2 Webhooks
      x-source: https://docs.tandem.ac/automation-v2-webhooks
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: triggerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /automations/v2/{id}/webhook-triggers/{triggerId}/import-secret:
    post:
      operationId: post_automations_v2_id_webhook_triggers_triggerId_import_secret
      tags:
      - Automations
      summary: Automation V2 Webhooks
      x-source: https://docs.tandem.ac/automation-v2-webhooks
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: triggerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /automations/v2/{id}/webhook-triggers/{triggerId}/reveal-verification-token:
    post:
      operationId: post_automations_v2_id_webhook_triggers_triggerId_reveal_verification_token
      tags:
      - Automations
      summary: Automation V2 Webhooks
      x-source: https://docs.tandem.ac/automation-v2-webhooks
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: triggerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /browser/install:
    post:
      operationId: post_browser_install
      tags:
      - Browser
      summary: Install the matching tandem-browser sidecar onto the engine host.
      x-source: https://docs.tandem.ac/reference/engine-commands
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /browser/smoke-test:
    post:
      operationId: post_browser_smoke_test
      tags:
      - Browser
      summary: End‑to‑end smoke test for the browser.
      x-source: https://docs.tandem.ac/reference/engine-commands
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /browser/status:
    get:
      operationId: get_browser_status
      tags:
      - Browser
      summary: Check browser readiness through a running engine.
      x-source: https://docs.tandem.ac/reference/engine-commands
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /global/health:
    get:
      operationId: get_global_health
      tags:
      - Global
      summary: Checks engine health.
      x-source: https://docs.tandem.ac/reference/engine-commands
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/agents/{agentId}/spend:
    get:
      operationId: get_governance_agents_agentId_spend
      tags:
      - Governance
      summary: GET /governance/agents/{agent_id}/spend is a useful inspection surface.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/approvals:
    get:
      operationId: get_governance_approvals
      tags:
      - Governance
      summary: GET /governance/approvals is a useful inspection surface.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_governance_approvals
      tags:
      - Governance
      summary: The canonical write surface is POST /governance/approvals.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/approvals/{approvalId}/approve:
    post:
      operationId: post_governance_approvals_approvalId_approve
      tags:
      - Governance
      summary: 'POST /governance/approvals/{approval_id}/approve has two effects: it marks the approval request as approved and for lifecycle
        review requests, it acknowledges the matching automation or agent review s'
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      parameters:
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/approvals/{approvalId}/deny:
    post:
      operationId: post_governance_approvals_approvalId_deny
      tags:
      - Governance
      summary: GET /governance/approvals includes a POST /governance/approvals/{approval_id}/deny route for inspection surfaces.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      parameters:
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/reviews:
    get:
      operationId: get_governance_reviews
      tags:
      - Governance
      summary: GET /governance/reviews is a useful inspection surface.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /governance/spend:
    get:
      operationId: get_governance_spend
      tags:
      - Governance
      summary: GET /governance/spend is a useful inspection surface.
      x-source: https://docs.tandem.ac/reference/governance-lifecycle
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/security/assessment-report:
    post:
      operationId: post_incident_monitor_security_assessment_report
      tags:
      - Incident Monitor
      summary: Use POST /incident-monitor/security/assessment-report to generate a redacted Incident Monitor security gap assessment report.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/security/authority-inventory:
    get:
      operationId: get_incident_monitor_security_authority_inventory
      tags:
      - Incident Monitor
      summary: Use GET /incident-monitor/security/authority-inventory to collect a read-only authority map for Incident Monitor security posture
        assessment.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/security/governance-metrics:
    post:
      operationId: post_incident_monitor_security_governance_metrics
      tags:
      - Incident Monitor
      summary: Use POST /incident-monitor/security/governance-metrics to compute redacted governance-health metrics plus behavioral drift in dry-run
        mode.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/security/reassessments:
    get:
      operationId: get_incident_monitor_security_reassessments
      tags:
      - Incident Monitor
      summary: Use GET /incident-monitor/security/reassessments to list recent records plus per-scope schedule status.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_incident_monitor_security_reassessments
      tags:
      - Incident Monitor
      summary: Use POST /incident-monitor/security/reassessments to run a reassessment now.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/security/scenario-packs:
    get:
      operationId: get_incident_monitor_security_scenario_packs
      tags:
      - Incident Monitor
      summary: Use GET /incident-monitor/security/scenario-packs to describe the built-in pack.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_incident_monitor_security_scenario_packs
      tags:
      - Incident Monitor
      summary: Use POST /incident-monitor/security/scenario-packs to run it (or a supplied custom pack) in dry-run.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /incident-monitor/status:
    get:
      operationId: get_incident_monitor_status
      tags:
      - Incident Monitor
      summary: GET /incident-monitor/status returns source_readiness beside destination readiness.
      x-source: https://docs.tandem.ac/reference/incident-monitor
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /mcp/tools:
    get:
      operationId: get_mcp_tools
      tags:
      - Mcp
      summary: List discovered tools from connected MCP servers.
      x-source: https://docs.tandem.ac/reference/tools
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /memory/import:
    post:
      operationId: post_memory_import
      tags:
      - Memory
      summary: Memory import utilities for seeding Tandem memory.
      x-source: https://docs.tandem.ac/reference/engine-commands
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMemoryImportRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMemoryImportResponse'
      x-evidence:
        kind: documentation
  /mission/{id}/event:
    post:
      operationId: post_mission_id_event
      tags:
      - Mission
      summary: POST /mission/{id}/event (orchestrator bridge fields)
      x-source: https://docs.tandem.ac/reference/agent-team-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMissionIdEventResponse'
      x-evidence:
        kind: documentation
  /session/{sessionId}/prompt_async:
    post:
      operationId: post_session_sessionId_prompt_async
      tags:
      - Session
      summary: Start prompt_async with file attachments.
      x-source: https://docs.tandem.ac/reference/engine-commands
      parameters:
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostSessionSessionidPromptAsyncRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /tool/execute:
    post:
      operationId: post_tool_execute
      tags:
      - Tool
      summary: Execute a specific tool directly by passing a JSON payload.
      x-source: https://docs.tandem.ac/reference/engine-commands
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostToolExecuteRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /tool/ids:
    get:
      operationId: get_tool_ids
      tags:
      - Tool
      summary: List all engine tool IDs, including built-ins and MCP tools.
      x-source: https://docs.tandem.ac/reference/tools
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /worktree/cleanup:
    post:
      operationId: post_worktree_cleanup
      tags:
      - Worktree
      summary: Preview or remove stale repo‑local managed worktrees.
      x-source: https://docs.tandem.ac/reference/engine-commands
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    GetAgentTeamApprovalsResponse:
      type: object
      properties:
        spawnApprovals:
          type: array
          description: queued spawn approvals (request-only edges / approval-required paths)
        toolApprovals:
          type: array
          description: pending permission requests scoped to agent-team sessions
    PostAgentTeamApprovalsSpawnIdApproveRequest:
      type: object
      properties:
        reason:
          type: string
      required:
      - reason
    PostAgentTeamApprovalsSpawnIdApproveResponse:
      type: object
      properties:
        ok:
          type: boolean
        approvalID:
          type: string
        decision:
          type: string
        instanceID:
          type: string
        missionID:
          type: string
        status:
          type: string
    PostAgentTeamApprovalsSpawnIdDenyRequest:
      type: object
      properties:
        reason:
          type: string
      required:
      - reason
    PostAgentTeamApprovalsSpawnIdDenyResponse:
      type: object
      properties:
        ok:
          type: boolean
        approvalID:
          type: string
        decision:
          type: string
        reason:
          type: string
        instanceID:
          type: string
        sessionID:
          type: string
        status:
          type: string
    PostAgentTeamInstanceIdCancelRequest:
      type: object
      properties:
        reason:
          type: string
      required:
      - reason
    PostAgentTeamMissionIdCancelRequest:
      type: object
      properties:
        reason:
          type: string
      required:
      - reason
    PostAgentTeamMissionIdCancelResponse:
      type: object
      properties:
        ok:
          type: boolean
        missionID:
          type: string
        cancelledInstances:
          type: integer
    GetAgentTeamMissionsResponse:
      type: object
      properties:
        instanceCount:
          type: integer
        runningCount:
          type: integer
        completedCount:
          type: integer
        failedCount:
          type: integer
        cancelledCount:
          type: integer
        queuedCount:
          type: integer
        tokenUsedTotal:
          type: number
        toolCallsUsedTotal:
          type: number
        stepsUsedTotal:
          type: number
        costUsedUsdTotal:
          type: number
    PostAgentTeamSpawnRequest:
      type: object
      properties:
        missionID:
          type: string
        parentInstanceID:
          type: string
        templateID:
          type: string
        role:
          type: string
        source:
          type: string
        justification:
          type: string
        budget_override:
          type: object
          description: optional budget overrides
      required:
      - missionID
      - parentInstanceID
      - templateID
      - role
      - source
      - justification
    PostAgentTeamSpawnResponse:
      type: object
      properties:
        ok:
          type: boolean
        missionID:
          type: string
        instanceID:
          type: string
        sessionID:
          type: string
        runID:
          type: string
          description: nullable
        status:
          type: string
        skillHash:
          type: string
        code:
          type: string
          description: present on error
        error:
          type: string
          description: present on error
        requiresUserApproval:
          type: boolean
          description: present when policy requires approval
    PostAgentTeamTemplatesRequest:
      type: object
      properties:
        parts:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              text:
                type: string
    PostAgentTeamTemplatesResponse:
      type: object
      properties:
        parts:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              mime:
                type: string
              filename:
                type: string
              url:
                type: string
    PostMemoryImportRequest:
      type: object
      properties:
        source:
          type: object
          description: Source description, e.g., {"kind":"path","path":"./docs"}.
        format:
          type: string
          description: Import format, either "directory" or "openclaw".
        tier:
          type: string
          description: 'Target memory tier: "global", "project", or "session".'
        project_id:
          type: string
          description: Required when tier is "project".
        session_id:
          type: string
          description: Required when tier is "session".
        sync_deletes:
          type: boolean
          description: Remove previously imported records whose source files no longer exist.
      required:
      - source
    PostMemoryImportResponse:
      type: object
      properties:
        imported:
          type: integer
          description: Number of records imported.
        skipped:
          type: integer
          description: Number of records skipped.
        deleted:
          type: integer
          description: Number of records deleted.
        errors:
          type: array
          description: List of errors encountered.
    PostMissionIdEventResponse:
      type: object
      properties:
        orchestratorSpawns:
          type: array
          description: spawn results triggered by mission_started
        orchestratorCancellations:
          type: array
          description: cancellation summary triggered by mission_canceled
    PostSessionSessionidPromptAsyncRequest:
      type: object
      properties:
        parts:
          type: array
          description: Array of prompt parts, each with type (text or file) and associated fields.
      required:
      - parts
    PostToolExecuteRequest:
      type: object
      properties:
        tool:
          type: string
          description: Name of the tool to execute.
        args:
          type: object
          description: Arguments for the tool.
      required:
      - tool
  securitySchemes:
    X-Agent-Token:
      type: apiKey
      in: header
      name: X-Agent-Token
      x-source: https://docs.tandem.ac/engine-authentication-for-agents/
tags:
- name: Agent Team
- name: Api
- name: Automations
- name: Browser
- name: Global
- name: Governance
- name: Incident Monitor
- name: Mcp
- name: Memory
- name: Mission
- name: Session
- name: Tool
- name: Worktree
security:
- X-Agent-Token: []