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

# Search agents

> Ranks matches by name, description, and tags, preferring exact, then prefix, then substring matches. Minimum query length: 2 characters.



## OpenAPI

````yaml /api-reference/openapi.json get /api/search/agents
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/search/agents:
    get:
      tags:
        - catalog
      summary: Search agents
      description: >-
        Ranks matches by name, description, and tags, preferring exact, then
        prefix, then substring matches. Minimum query length: 2 characters.
      operationId: search
      parameters:
        - name: q
          in: query
          description: Search term, minimum 2 characters.
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: Ranked agent search hits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSearchResponse'
        '400':
          description: '`q` shorter than 2 characters'
components:
  schemas:
    AgentSearchResponse:
      type: object
      description: >-
        Agent search envelope — mirrors Python's `{agents, total, max_score}`
        and the

        existing `UserSearchResponse` shape so both search surfaces are
        consistent.
      required:
        - agents
        - total
        - max_score
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/AgentSearchResult'
        max_score:
          type: number
          format: double
        total:
          type: integer
          format: int64
    AgentSearchResult:
      allOf:
        - $ref: '#/components/schemas/Agent'
        - type: object
          required:
            - score
          properties:
            score:
              type: number
              format: double
      description: 'One agent search hit: all agent fields plus its relevance `score`.'
    Agent:
      type: object
      required:
        - id
        - name
        - owner_id
        - version
        - protocol_version
        - preferred_transport
        - capabilities
        - security_schemes
        - default_input_modes
        - default_output_modes
        - skills
        - tags
        - metadata
        - status
        - minimal_code_enabled
        - created_at
        - updated_at
      properties:
        capabilities: {}
        compress_enabled:
          type: boolean
          description: >-
            Per-agent opt-in for compression on this agent's traffic: payload
            compression on its LLM calls, brevity, and session-history
            compression in direct chats. Off unless enabled.
        created_at:
          type: string
          format: date-time
        default_input_modes:
          type: array
          items:
            type: string
        default_output_modes:
          type: array
          items:
            type: string
        description:
          type:
            - string
            - 'null'
        display_name:
          type:
            - string
            - 'null'
        documentation_url:
          type:
            - string
            - 'null'
        hitl_enabled:
          type: boolean
          description: >-
            Whether this coding agent gates its tool use behind human approval.
            Off unless explicitly enabled; only meaningful for

            `workload_kind = acp_coding_agent`.
        icon_url:
          type:
            - string
            - 'null'
        id:
          type: string
          format: uuid
        image:
          type:
            - string
            - 'null'
        metadata: {}
        minimal_code_enabled:
          type: boolean
          description: >-
            Whether minimal-code guidance is injected into messages sent to this
            agent. Shown as a switch on the agent's **Settings** tab.
        name:
          type: string
        owner_id:
          type: string
          format: uuid
        preferred_transport:
          type: string
        protocol_version:
          type: string
        security_schemes: {}
        skills:
          type: array
          items:
            $ref: '#/components/schemas/Skill'
        status:
          type: string
        tags:
          type: array
          items:
            type: string
        transport_path:
          type:
            - string
            - 'null'
          description: |-
            Path of the agent's advertised JSON-RPC transport (e.g. "/jsonrpc"),
            extracted from its AgentCard `supportedInterfaces` at deploy time.
            Clients chat via `{base}/api/agents/{id}{transport_path}`.
        updated_at:
          type: string
          format: date-time
        url:
          type:
            - string
            - 'null'
        version:
          type: string
        workload_kind:
          type: string
          description: >-
            Workload kind: `agent` (default), `mcp_connector`, or
            `acp_coding_agent`.

            Exposed so clients can tell a coding agent apart from a normal one
            (e.g.

            `nasiko chat` labels it, and `--coding-agent` asserts on it).
    Skill:
      type: object
      required:
        - id
        - name
        - description
      properties:
        description:
          type: string
        examples:
          type: array
          items: {}
        id:
          type: string
        name:
          type: string
        tags:
          type: array
          items:
            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.