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

# List the agents that have a plugin

> Each agent assigned the plugin (assignment_source agent) or inheriting it from its specialty (assignment_source specialty, with the specialty named). Archived agents are left out, and so are the agents the caller cannot read.



## OpenAPI

````yaml /0.17/openapi.json get /api/v1/plugins/{id}/agents
openapi: 3.0.3
info:
  title: 2501 Public API
  version: v1
  description: >-
    The stable, versioned HTTP API for driving 2501 as code. See the API
    Overview for authentication, the org_id rule, cursor pagination, and the
    error envelope.
servers:
  - url: https://{command_center_host}
    variables:
      command_center_host:
        default: your-command-center-host
        description: Your Command Center host
security:
  - bearerAuth: []
paths:
  /api/v1/plugins/{id}/agents:
    get:
      tags:
        - Plugins
      summary: List the agents that have a plugin
      description: >-
        Each agent assigned the plugin (assignment_source agent) or inheriting
        it from its specialty (assignment_source specialty, with the specialty
        named). Archived agents are left out, and so are the agents the caller
        cannot read.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The agents that have the plugin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginAgentList'
        '401':
          description: >-
            No credentials, or a key that is invalid, revoked, or expired
            (UNAUTHORIZED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Authenticated but not allowed (FORBIDDEN, ORG_ACCESS_DENIED,
            STEP_UP_REFUSED, TWO_FACTOR_ENROLLMENT_REQUIRED,
            LICENSE_CAP_REACHED, LICENSE_EXPIRED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such row that this caller can see (NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PluginAgentList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/PluginAgentAssignment'
        has_more:
          type: boolean
        total_count:
          type: integer
          description: Present only when include=total_count is set
      required:
        - object
        - data
        - has_more
    Error:
      type: object
      properties:
        code:
          type: string
          example: VALIDATION_FAILED
        message:
          type: string
          example: Validation failed
        request_id:
          type: string
          example: req_3702b7e7-...
        field:
          type: string
          description: Set when one input is at fault
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
          description: Set when several inputs are at fault
        details:
          type: object
          additionalProperties:
            nullable: true
      required:
        - code
        - message
        - request_id
    PluginAgentAssignment:
      type: object
      properties:
        id:
          type: string
        agent_id:
          type: string
        plugin_id:
          type: string
        assignment_source:
          type: string
          enum:
            - agent
            - specialty
        agent:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            org_id:
              type: string
          required:
            - id
            - name
            - org_id
        specialty:
          type: object
          nullable: true
          properties:
            id:
              type: string
            name:
              type: string
          required:
            - id
            - name
          description: The specialty that hands the plugin out, for an inherited one.
      required:
        - id
        - agent_id
        - plugin_id
        - assignment_source
        - agent
        - specialty
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key minted in Command Center (Settings -> API Keys), sent as
        `Authorization: Bearer 2501_ak_...`. A Command Center session cookie is
        also accepted.

````

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