> ## 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.

# Inspect one agent and the servers observed through it



## OpenAPI

````yaml /openapi.json get /api/v1/agents/{id}
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 1.0.0
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: 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/agents/{id}:
    get:
      tags:
        - Agents
      summary: Inspect one agent and the servers observed through it
      operationId: getAgent
      parameters:
        - in: path
          name: id
          required: true
          schema:
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentDetail'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    AgentDetail:
      additionalProperties: false
      properties:
        agent:
          $ref: '#/components/schemas/Agent'
        observed_servers:
          items:
            $ref: '#/components/schemas/AgentObservedServer'
          type: array
      required:
        - agent
        - observed_servers
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    Agent:
      additionalProperties: false
      properties:
        agent_version:
          type:
            - string
            - 'null'
        arch:
          type:
            - string
            - 'null'
        connection:
          description: silent means no sync for three maximum poll intervals.
          enum:
            - never_connected
            - connected
            - silent
            - revoked
          type: string
        created_at:
          format: date-time
          type: string
        created_by:
          type: string
        gateway_server_key:
          type:
            - string
            - 'null'
        hardware:
          description: >-
            Content-free accelerator inventory the agent last reported; unknown
            fields are named, never guessed.
        id:
          type: string
        last_seen_at:
          format: date-time
          type:
            - string
            - 'null'
        name:
          pattern: ^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$
          type: string
        os:
          type:
            - string
            - 'null'
        protocol:
          type:
            - string
            - 'null'
        revoked_at:
          format: date-time
          type:
            - string
            - 'null'
        servers:
          description: >-
            Local servers the agent last reported, with engine, version, models,
            and health.
        state:
          enum:
            - active
            - revoked
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - name
        - state
        - connection
        - created_by
        - agent_version
        - protocol
        - os
        - arch
        - hardware
        - servers
        - gateway_server_key
        - last_seen_at
        - created_at
        - updated_at
        - revoked_at
      type: object
    AgentObservedServer:
      additionalProperties: false
      properties:
        address:
          description: >-
            The server's address as the agent reaches it; the control plane
            never dials it.
          type: string
        endpoint:
          pattern: ^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$
          type: string
        engine:
          type: string
        health:
          type: string
        key:
          pattern: ^[a-z0-9][a-z0-9._:-]{0,127}$
          type: string
        model:
          type: string
        ownership:
          enum:
            - observe-only
          type: string
        reported_at:
          format: date-time
          type:
            - string
            - 'null'
        target_id:
          type: string
        traffic_detail:
          type: string
        traffic_source:
          enum:
            - none
            - agent-gateway
          type: string
      required:
        - key
        - endpoint
        - target_id
        - address
        - engine
        - model
        - health
        - reported_at
        - ownership
        - traffic_source
        - traffic_detail
      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.