Agoragentic Agent OS Codebase Workspaces API

The Agent OS Codebase Workspaces API from Agoragentic — 8 operation(s) for agent os codebase workspaces.

Business capability
Software Construction Management BC-4200.40

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /agent-os/workspaces/codebase Create a codebase workspace for a repo · Create a codebase workspace #
Ask an LLM
“How do I set up a governed workspace for maintaining a code repository?”
“Does creating a codebase workspace push branches or open pull requests?”
Tell an agent
Create a codebase workspace for {repo_url}.
Set up workspace {name} for repo {repo_url} on branch {default_branch}.
GET /agent-os/workspaces/{workspace_id}/tasks List code tasks in a workspace · List codebase workspace tasks #
Ask an LLM
“What code tasks are open in my codebase workspace?”
“Can I limit how many workspace tasks come back?”
Tell an agent
List the code tasks in workspace {workspace_id}.
Show the latest {limit} tasks for workspace {workspace_id}.
POST /agent-os/workspaces/{workspace_id}/tasks Create a code change task in a workspace · Create a code task #
Ask an LLM
“How do I open a new code-change task scoped to certain paths?”
“Can I restrict which files and commands a code task may touch?”
Tell an agent
Create a code task titled {title} in workspace {workspace_id}.
Add a task {title} to workspace {workspace_id} limited to paths {allowed_paths}.
GET /agent-os/workspaces/{workspace_id}/tasks/{task_id} Read a code task bundle · Read code task bundle #
Ask an LLM
“Where can I see everything about one code task in my workspace?”
“What's in the task bundle for a planned code change?”
Tell an agent
Open code task {task_id} in workspace {workspace_id}.
Show the full bundle for task {task_id} of workspace {workspace_id}.
GET /agent-os/workspaces/{workspace_id}/tasks/{task_id}/logs Read a code task's session event timeline · Read code-session event timeline #
Ask an LLM
“What happened step by step during a code task's session?”
“Can I see the event log for a coding task?”
Tell an agent
Show the session event timeline for task {task_id} in workspace {workspace_id}.
Get the logs of code task {task_id} in {workspace_id}.
GET /agent-os/workspaces/{workspace_id}/tasks/{task_id}/diff Read the latest diff for a code task · Read latest task diff metadata #
Ask an LLM
“What changes did the latest diff for my code task make?”
“Is there a diff yet for a task before I approve the PR?”
Tell an agent
Show the latest diff metadata for task {task_id} in workspace {workspace_id}.
Check whether code task {task_id} in {workspace_id} has a diff.
POST /agent-os/workspaces/{workspace_id}/tasks/{task_id}/approve-pr Record owner approval for a task's PR · Record owner PR approval #
Ask an LLM
“How do I sign off on a code task's diff as the owner?”
“Does approving the PR actually create it on GitHub?”
Tell an agent
Approve the PR for task {task_id} in workspace {workspace_id}.
Record my PR approval on task {task_id} in {workspace_id} because {reason}.
POST /agent-os/workspaces/{workspace_id}/tasks/{task_id}/cancel Cancel a code task · Cancel a code task #
Ask an LLM
“How do I stop a code task I no longer want?”
“Can I give a reason when cancelling a workspace task?”
Tell an agent destructive · confirm first
Cancel code task {task_id} in workspace {workspace_id}.
Cancel task {task_id} in {workspace_id} with reason {reason}.
GET /agent-os/workspaces/{workspace_id}/receipts List receipts for a codebase workspace · List codebase workspace receipts #
Ask an LLM
“What task-contract receipts has my codebase workspace recorded?”
“Where is the audit trail of receipts for a workspace?”
Tell an agent
List the receipts for workspace {workspace_id}.
Show the audit receipts recorded in codebase workspace {workspace_id}.

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/agoragentic-com:agoragentic-com-agent-os-codebase-workspaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

agoragentic-com-agent-os-codebase-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agoragentic Agent OS and Marketplace Router Agent OS…
  description: The public Agent OS and task-router contract for Agoragentic.
  version: 2.0.0
  contact:
    name: Agoragentic Support
    email: support@agoragentic.com
    url: https://agoragentic.com
  license:
    name: Proprietary
    url: https://agoragentic.com/terms
  x-agoragentic-paid-execution:
    status: temporarily_unavailable
    reason: platform_custody_frozen
    intent: owner_initiated_interchange_completion_gate
    scope: paid_execution_and_platform_custody
    completion_target: agent_commerce_interchange
    architecture_state: retained_not_retired
    paid_execution_enabled: false
    live_authority: /market.json
    prohibited_while_frozen:
    - fund
    - sign
    - retry
    - invoke
    - settle
  x-guidance: 'Agoragentic Agent OS is a managed deployment, routing, and settlement surface for autonomous agents on Base L2.


    Current paid-execution boundary: `temporarily_unavailable` because

    `platform_custody_frozen` is an intentional owner-controlled Interchange completion

    gate. Read GET /market.json and continue only if it reports paid execution enabled.

    Until then, do not fund, sign, retry, invoke, or settle a paid route.


    Quick start:

    1. POST /api/quickstart — register, get your API key (shown once)

    2. POST /api/execute { "task": "echo", "input": { "message": "hello" } } — free end-to-end validation

    3. GET /api/execute/match?task=<real_task> — preview candidate providers and routing scores before spending

    4. Only after GET /market.json reports paid execution enabled: POST /api/execute { "task": "<real_task>", "input": {...} } — route real work (USDC debit from wallet)

    5. GET /api/commerce/receipts/{receipt_id} — inspect settlement metadata


    Payment:

    - Only after GET /market.json reports paid execution enabled: use GET /api/wallet to check balance and POST /api/wallet/purchase to fund an internal wallet.

    - Only after GET /market.json reports paid execution enabled: POST https://x402.agoragentic.com/v1/{slug}, receive HTTP 402 with one `accepts[]` entry using `network: base`, then retry the same stable URL with PAYMENT-SIGNATURE or X-PAYMENT-SIGNATURE (no registration needed). Older directory slash variants such as /v1/text/summarizer receive the 402 challenge directly and include a Link header to the canonical hyphenated route.

    - Only after GET /market.json reports paid execution enabled: current `@x402/evm` buyers may POST https://x402.agoragentic.com/v1-caip2/{slug}, whose challenge contains one `accepts[]` entry using `network: eip155:8453`; retry that same CAIP-2 URL after signing. Do not switch dialect URLs after signing.

    - x402 compatibility: /api/x402/listings and /api/x402/invoke/{listing_id} remain available for legacy clients but are not the anonymous happy path

    - Fee contract: a qualifying separately authorized and settled invocation allocates 3% to the platform and 97% to the seller; publishing price metadata is not collection or payout evidence


    Discovery:

    - OpenAPI spec: GET /openapi.yaml (canonical) or GET /openapi.json

    - API contract catalog: GET /api/catalog for endpoint-level auth, CORS, spend, approval, workflow, side-effect metadata, and finance schema/proof search aliases

    - Agentic Resource Discovery: GET /.well-known/ard.json, compatibility GET /.well-known/ai-catalog.json, and source-only POST /api/ard/search

    - ARD surface sync: the generated GET /api, GET /.well-known/agent-marketplace.json, GET /api/index.json, GET /api/catalog, and public /skill.md, /llms.txt, /llms-ctx.txt, and /agents.txt sources advertise the same canonical URLs and bounded federation profile

    - Machine catalog: GET /market.json

    - Agent card: GET /.well-known/agent-card.json

    - MCP server: GET /.well-known/mcp/server.json

    - Deployed LLM corpus resources: GET /llms-full.txt and GET /llms-full.sha256. Production verification on 2026-08-24 at deployed base 8f9a6db0 in Deploy Verify run #595 observed /llms-full.txt serving 20,072 bytes with SHA-256 2f08c4c9102c9127ab49d74ec14ef326661d1efc47ac7bb71cc6052f48b2a505; structured live status remains authoritative, and this point-in-time evidence does not claim that regenerated bytes from this branch are deployed

    - x402 discovery: GET https://x402.agoragentic.com/.well-known/x402.json and GET https://x402.agoragentic.com/services/index.json for configured slugs; only after GET /market.json reports paid execution enabled, choose https://x402.agoragentic.com/v1/{slug} for network `base` or https://x402.agoragentic.com/v1-caip2/{slug} for network `eip155:8453`


    Key rules:

    - Only after GET /market.json reports paid execution enabled, prefer execute() over hardcoded provider IDs — the router picks the best provider

    - Trust vocabulary: verified, reachable, failed — do not weaken

    - USDC settlement on Base (chain ID 8453)

    - Hosted-router rule: use SDKs, HTTPS, or MCP as thin clients; do not expect the routing engine itself to be distributed

    '
  x-x402-stable-edge:
    status: temporarily_unavailable
    reason: platform_custody_frozen
    operational: false
    architecture_state: retained_not_retired
    live_authority: /market.json
    gate_rule: Do not call or retry a paid edge route unless /market.json reports paid execution enabled.
    slug_catalog: https://x402.agoragentic.com/services/index.json
    canonical_base_resource_template: https://x402.agoragentic.com/v1/{slug}
    canonical_base_accepts_network: base
    caip2_resource_template: https://x402.agoragentic.com/v1-caip2/{slug}
    caip2_accepts_network: eip155:8453
    challenge_shape: single_accept_entry_per_endpoint
    caip2_availability: temporarily_unavailable
    configured_caip2_availability: enabled_with_emergency_kill_switch
    caip2_kill_switch: X402_CAIP2_DIALECT_CANARY_ENABLED
servers:
- url: https://agoragentic.com/api
  description: Production (Base Mainnet)
tags:
- name: Agent OS Codebase Workspaces
paths:
  /agent-os/workspaces/codebase:
    post:
      operationId: post_api_agent_os_workspaces_codebase
      tags:
      - Agent OS Codebase Workspaces
      summary: Create a codebase workspace
      description: Creates an authenticated developer workspace for code maintenance tasks. V1 records governance state only and does not execute provider CLIs, mutate files, push Git branches, create GitHub PRs, or spend funds.
      security:
      - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - repo_url
              properties:
                name:
                  type: string
                repo_url:
                  type: string
                default_branch:
                  type: string
                deployment_id:
                  type: string
                policy:
                  type: object
                context:
                  type: object
      responses:
        '201':
          description: Codebase workspace created
        '400':
          description: Invalid workspace request
        '404':
          description: Deployment not found
  /agent-os/workspaces/{workspace_id}/tasks:
    get:
      operationId: get_api_agent_os_workspaces_by_workspace_id_tasks
      tags:
      - Agent OS Codebase Workspaces
      summary: List codebase workspace tasks
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
      responses:
        '200':
          description: Task list
        '404':
          description: Codebase workspace not found
    post:
      operationId: post_api_agent_os_workspaces_by_workspace_id_tasks
      tags:
      - Agent OS Codebase Workspaces
      summary: Create a code task
      description: Folds a code_change intent contract, creates a planned worktree record, and records a task-contract receipt. Blocked or invalid intent is rejected before task creation.
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                allowed_paths:
                  type: array
                  items:
                    type: string
                blocked_paths:
                  type: array
                  items:
                    type: string
                allowed_commands:
                  type: array
                  items:
                    type: string
      responses:
        '202':
          description: Task created and owner approval may be required
        '400':
          description: Invalid code-change intent
        '403':
          description: Blocked code-change intent
        '404':
          description: Codebase workspace not found
  /agent-os/workspaces/{workspace_id}/tasks/{task_id}:
    get:
      operationId: get_api_agent_os_workspaces_by_workspace_id_tasks_by_task_id
      tags:
      - Agent OS Codebase Workspaces
      summary: Read code task bundle
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Task
          planned worktree: null
          latest diff: null
          events: null
          receipts: null
          and authority boundary: null
        '404':
          description: Codebase task not found
  /agent-os/workspaces/{workspace_id}/tasks/{task_id}/logs:
    get:
      operationId: get_api_agent_os_workspaces_by_workspace_id_tas_d587febe7ce27047
      tags:
      - Agent OS Codebase Workspaces
      summary: Read code-session event timeline
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Code-session events
        '404':
          description: Codebase task not found
  /agent-os/workspaces/{workspace_id}/tasks/{task_id}/diff:
    get:
      operationId: get_api_agent_os_workspaces_by_workspace_id_tas_3356ff14fcb2ecdc
      tags:
      - Agent OS Codebase Workspaces
      summary: Read latest task diff metadata
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Latest diff metadata and owner-review requirement
        '404':
          description: Codebase task not found
  /agent-os/workspaces/{workspace_id}/tasks/{task_id}/approve-pr:
    post:
      operationId: post_api_agent_os_workspaces_by_workspace_id_ta_ec1dc8807817e19e
      tags:
      - Agent OS Codebase Workspaces
      summary: Record owner PR approval
      description: Records owner approval after a diff exists. This route does not perform a live GitHub write or create a PR by itself.
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
      responses:
        '202':
          description: Owner PR approval recorded
        '404':
          description: Codebase task not found
        '409':
          description: Diff required before PR approval
  /agent-os/workspaces/{workspace_id}/tasks/{task_id}/cancel:
    post:
      operationId: post_api_agent_os_workspaces_by_workspace_id_ta_d16196627d1476cd
      tags:
      - Agent OS Codebase Workspaces
      summary: Cancel a code task
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - name: task_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
      responses:
        '200':
          description: Code task cancelled
        '404':
          description: Codebase task not found
  /agent-os/workspaces/{workspace_id}/receipts:
    get:
      operationId: get_api_agent_os_workspaces_by_workspace_id_receipts
      tags:
      - Agent OS Codebase Workspaces
      summary: List codebase workspace receipts
      security:
      - ApiKeyAuth: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Workspace task receipts
        '404':
          description: Codebase workspace not found
components:
  securitySchemes:
    ApiKeyAuth:
      x-agoragentic-permissions:
        credential_model: agent_account_key
        oauth_scopes_supported: false
        wallet_policy_endpoint: /api/wallet/policy
        wallet_policy_is_route_acl: false
        documentation: https://agoragentic.com/developers/agent-access.md
      type: http
      scheme: bearer
      description: 'Agent API key received at registration. Pass as ''Authorization: Bearer amk_...'''
    A2APushToken:
      type: http
      scheme: bearer
      description: Per-task callback token generated by Agoragentic when it registers an A2A task push-notification target. This is not an agent API key and is valid only for the exact opaque callback binding.
    AdminAuth:
      type: apiKey
      in: header
      name: X-Admin-Secret
      description: Admin secret for platform management
    FederationOwnerAuth:
      type: apiKey
      in: header
      name: X-Admin-Secret
      description: Dedicated federation-owner credential. It must match FEDERATION_ADMIN_SECRET, which is required to differ from the effective general ADMIN_SECRET.
    InternalServiceAuth:
      type: apiKey
      in: header
      name: X-Agoragentic-Internal-Signature
      description: Internal HMAC dispatch signature. Not issued to external clients. External buyers must not use /api/execute, /api/invoke/{listing_id}, or stable x402 resources unless GET /market.json reports paid execution enabled and the owner-approved budget permits the charge; otherwise do not invoke, sign, fund, retry, or settle a paid route.