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

# Get an agent

> Fetches a single agent by UUID or name, as an A2A agent-card-shaped envelope.



## OpenAPI

````yaml /api-reference/openapi.json get /api/agents/{id}
openapi: 3.1.0
info:
  title: Nasiko API
  description: >-
    HTTP API for the Nasiko OpenRuntime: agents, coding harnesses, TokenOps,
    routing, MCP, and secrets. Spec is generated from annotated routes; some
    surfaces are documented on the hand-written pages alongside this file.
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://free.app.nasiko.com
    description: Nasiko Cloud Free
  - url: https://{workspace}.app.nasiko.com
    description: Nasiko Cloud paid workspace
    variables:
      workspace:
        default: your-workspace
        description: >-
          Your workspace's subdomain, as shown in the connect command on the
          dashboard's Nasiko CLI page
security:
  - bearer_auth: []
tags:
  - name: secrets
    description: Encrypted per-user agent secrets
  - name: catalog
    description: >-
      Agent catalog: registration, discovery, versions, per-agent secrets, and
      source import
  - name: agents
    description: >-
      Agent lifecycle: deployments, LLM routing config, update/rollback,
      upload-and-deploy
  - name: orchestrator
    description: >-
      A2A dispatch: routing-engine/ReAct orchestrator and direct agent chat,
      plus routing stats
  - name: users
    description: >-
      User management: CRUD, roles, credentials, accessible agents
      (superuser-only)
  - name: usage
    description: Per-user token usage and cost reporting
  - name: observability
    description: Sessions, traces, spans, agent logs, and FinOps reporting
  - name: llm-router
    description: LLM routing presets, provider/model catalog, and tier→model registry
  - name: context-selection
    description: >-
      Per-user chat-history selection preferences: strategy, PACMS budget tier,
      the on/off switch, a dry-run preview, and settings-change history
  - name: coding-agents
    description: >-
      The progress local clients report while they bring in the caller's coding
      agents
  - name: settings
    description: >-
      Workspace-wide settings, including the Optimization tiers a user's PACMS
      budget level resolves against
  - name: mcp
    description: >-
      MCP gateway: agent-facing JSON-RPC tool calls, connector
      registration/upload/sharing, credentials & OAuth, and per-agent tool
      permissions
paths:
  /api/agents/{id}:
    get:
      tags:
        - catalog
      summary: Get an agent
      description: >-
        Fetches a single agent by UUID or name, as an A2A agent-card-shaped
        envelope.
      operationId: get_one
      parameters:
        - name: id
          in: path
          description: Agent UUID or name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Agent card
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingleResponse'
        '403':
          description: Caller cannot access this agent
        '404':
          description: No agent with this id/name
components:
  schemas:
    SingleResponse:
      type: object
      required:
        - data
        - status_code
        - message
      properties:
        data:
          $ref: '#/components/schemas/AgentDetailResponse'
        message:
          type: string
        status_code:
          type: integer
          format: int32
          minimum: 0
    AgentDetailResponse:
      type: object
      required:
        - id
        - name
        - owner_id
        - can_manage
        - is_coding_agent
        - compress_enabled
        - minimal_code_enabled
        - hitl_enabled
        - parking_policy
        - resident_available
        - has_coding_skills
        - metadata
        - status
        - version
        - description
        - url
        - preferredTransport
        - protocolVersion
        - capabilities
        - securitySchemes
        - security
        - defaultInputModes
        - defaultOutputModes
        - skills
        - tags
        - supportsAuthenticatedExtendedCard
        - signatures
        - created_at
        - updated_at
      properties:
        additionalInterfaces: {}
        can_manage:
          type: boolean
          description: True when the caller may manage this agent (owner or superuser).
        capabilities: {}
        coding_agent_integration_id:
          type:
            - string
            - 'null'
        compress_enabled:
          type: boolean
          description: >-
            Per-agent payload-compression opt-in, shown as a switch on the
            agent's **Settings** tab.
        created_at:
          type: string
          format: date-time
        defaultInputModes:
          type: array
          items:
            type: string
        defaultOutputModes:
          type: array
          items:
            type: string
        description:
          type: string
        display_name:
          type:
            - string
            - 'null'
        documentationUrl:
          type:
            - string
            - 'null'
        has_coding_skills:
          type: boolean
          description: >-
            Whether this agent's card describes code work, so minimal-code mode
            should be offered for it.
        hitl_enabled:
          type: boolean
          description: >-
            Whether this coding agent gates its tool use behind human approval.
            Served so a client can show and toggle the current state.
        iconUrl:
          type:
            - string
            - 'null'
        id:
          type: string
          format: uuid
        is_coding_agent:
          type: boolean
        metadata:
          description: >-
            Owner-editable metadata. `metadata.features` holds the agent's
            feature switches; each enabled feature is passed to the agent's
            container as a `NASIKO_<KEY>` environment variable. When you update
            this field, send the whole object: it replaces the stored value.
        minimal_code_enabled:
          type: boolean
          description: >-
            Whether minimal-code guidance is injected into messages sent to this
            agent.
        name:
          type: string
        owner_id:
          type: string
          format: uuid
          description: Owner's user UUID — lets the UI label the owner row in grant lists.
        parking_policy:
          type: string
          description: >-
            The owner's parking choice: `auto` (parked when idle, woken by the
            next call) or

            `resident` (always on). The Settings choice renders from this, for
            the reason

            compress_enabled gives above.
        preferredTransport:
          type: string
        protocolVersion:
          type: string
        provider: {}
        resident_available:
          type: boolean
          description: >-
            Whether this server can keep a `resident` agent always running. When
            `false`, idle agents are stopped regardless of the owner's choice.
        security:
          type: array
          items: {}
        securitySchemes: {}
        signatures:
          type: array
          items: {}
        skills:
          type: array
          items: {}
        status:
          type: string
        supportsAuthenticatedExtendedCard:
          type: boolean
        tags:
          type: array
          items:
            type: string
        updated_at:
          type: string
          format: date-time
        url:
          type: string
        version:
          type: string
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Session JWT. After `nasiko auth login`, print it with `jq -r
        '.clusters[.active].token' ~/.nasiko/config.json`. API keys aren't
        supported.

````

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