> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infercrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent key only: report progress or the content-free result of one command



## OpenAPI

````yaml /openapi.json post /api/v1/agent/commands/{id}
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 2.0.2
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Agents
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Billing
  - name: Billing administration
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Compute
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Inference optimization
  - name: Infrastructure
  - name: Marketplace administration
  - name: Migration Proof
  - name: Model API administration
  - name: Model APIs
  - name: Model artifacts
  - name: Model catalog
  - name: Monitoring
  - name: Notifications
  - name: Operations
  - name: Planning
  - name: Providers
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/agent/commands/{id}:
    post:
      tags:
        - Agents
      summary: >-
        Agent key only: report progress or the content-free result of one
        command
      operationId: updateAgentCommand
      parameters:
        - in: path
          name: id
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentCommandUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentCommandUpdateResponse'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    AgentCommandUpdate:
      additionalProperties: true
      properties:
        failure_code:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          type: string
        failure_detail:
          maxLength: 256
          type: string
        phase:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          type: string
        result:
          $ref: '#/components/schemas/CandidateRunResult'
        state:
          enum:
            - running
            - succeeded
            - failed
          type: string
      required:
        - state
      type: object
    AgentCommandUpdateResponse:
      additionalProperties: true
      properties:
        cancelled:
          description: Stop and remove the candidate.
          type: boolean
        lease_expires_at:
          format: date-time
          type: string
        state:
          type: string
      required:
        - state
        - cancelled
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    CandidateRunResult:
      additionalProperties: true
      description: 'Numbers only: no prompt, answer, header, log line, or address.'
      properties:
        candidate:
          additionalProperties: true
          type: object
        cleaned_up:
          type: boolean
        control:
          additionalProperties: true
          type: object
        control_after:
          additionalProperties: true
          type: object
        image_digest:
          type: string
        noise:
          type: number
        quality:
          additionalProperties: true
          type: object
        ready_seconds:
          type: number
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.