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

# Get Tool Agents

> Agents that have this tool on a step, with whether the use is in a published version, a draft, a campaign's pinned version or an archived agent, and their recent calls with the tool.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/tools/{tool_uuid}/agents
openapi: 3.1.0
info:
  title: Athena API
  version: 1.0.0
  description: >-
    Hosted Athena customer API. Authenticate backend management and call-trigger
    requests with X-API-Key. Website embeds and artifact playback use their own
    scoped tokens. Provider availability, feature settings, and verification
    limits are described in the guides.
servers:
  - url: https://athena.tryopencomputer.com
    description: Hosted Athena API
security: []
paths:
  /api/v1/tools/{tool_uuid}/agents:
    get:
      tags:
        - Tools
      summary: Get Tool Agents
      description: >-
        Agents that have this tool on a step, with whether the use is in a
        published version, a draft, a campaign's pinned version or an archived
        agent, and their recent calls with the tool.
      operationId: get_tool_agents_api_v1_tools__tool_uuid__agents_get
      parameters:
        - name: tool_uuid
          in: path
          required: true
          schema:
            type: string
            title: Tool Uuid
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 30
            minimum: 1
            default: 7
            title: Days
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolAgentsResponse'
        '401':
          description: Authentication is missing or invalid.
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    ToolAgentsResponse:
      properties:
        window_days:
          type: integer
          title: Window Days
        since:
          type: string
          format: date-time
          title: Since
        runs_scanned:
          type: integer
          title: Runs Scanned
        truncated:
          type: boolean
          title: Truncated
          description: True when more runs matched than were read (oldest left out).
        agents:
          items:
            $ref: '#/components/schemas/ToolAgentUsage'
          type: array
          title: Agents
      type: object
      required:
        - window_days
        - since
        - runs_scanned
        - truncated
      title: ToolAgentsResponse
      description: GET /tools/{uuid}/agents.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ToolAgentUsage:
      properties:
        workflow_id:
          type: integer
          title: Workflow Id
        name:
          type: string
          title: Name
        status:
          type: string
          title: Status
          description: The agent's own status (active or archived).
        released:
          type: boolean
          title: Released
          description: The released version (what calls run) uses the tool.
        draft:
          type: boolean
          title: Draft
          description: The unpublished draft uses the tool.
        nodes:
          items:
            type: string
          type: array
          title: Nodes
          description: Names of the steps that use the tool.
        campaigns:
          items:
            $ref: '#/components/schemas/ToolDependentCampaign'
          type: array
          title: Campaigns
          description: >-
            Campaigns whose traffic split pins a version of this agent that uses
            the tool.
        calls:
          type: integer
          title: Calls
          default: 0
      type: object
      required:
        - workflow_id
        - name
        - status
        - released
        - draft
      title: ToolAgentUsage
      description: An agent that uses the tool, with its calls of the tool in the window.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ToolDependentCampaign:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: ToolDependentCampaign
      description: >-
        A not-finished campaign whose traffic split pins an agent version that
        uses the tool.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

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