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

# List agents

> The agents in a workspace that you can see, with run counts, tools and triggers. Archived agents are left out unless you ask for `status=archived`. Not paginated.




## OpenAPI

````yaml /openapi/automations.yaml get /agents
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /agents:
    get:
      tags:
        - Agents
      summary: List agents
      description: >
        The agents in a workspace that you can see, with run counts, tools and
        triggers. Archived agents are left out unless you ask for
        `status=archived`. Not paginated.
      operationId: listAgents
      parameters:
        - name: workspaceId
          in: query
          required: true
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          schema:
            type: string
            enum:
              - draft
              - active
              - paused
              - error
              - archived
      responses:
        '200':
          description: The agents.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agents:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    AgentListItem:
      allOf:
        - $ref: '#/components/schemas/Agent'
        - type: object
          properties:
            accessRole:
              type: string
              description: Your access, `edit` or `view`.
            runCount:
              type: integer
            completedActions:
              type: integer
            pendingConfirmations:
              type: integer
              description: Actions waiting for your approval.
            lastActiveAt:
              type:
                - string
                - 'null'
              format: date-time
            lastRunAt:
              type:
                - string
                - 'null'
              format: date-time
            toolIds:
              type: array
              items:
                type: string
            approvalRequiredToolIds:
              type: array
              items:
                type: string
            triggers:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
            isFavorite:
              type: boolean
    Agent:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        avatar_url:
          type:
            - string
            - 'null'
        mission:
          type: string
          description: The agent's instructions.
        status:
          type: string
          enum:
            - draft
            - active
            - paused
            - error
            - archived
        folder_id:
          type:
            - string
            - 'null'
          format: uuid
        template_id:
          type:
            - string
            - 'null'
          format: uuid
        settings:
          type: object
          additionalProperties: true
          description: Rules, owners and credit cap.
        created_by:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  responses:
    BadRequest:
      description: The request is invalid (code `VALIDATION_ERROR`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You aren't a member of the workspace, or don't have the access this
        needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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