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

# Get an agent



## OpenAPI

````yaml /openapi/automations.yaml get /agents/{agentId}
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/{agentId}:
    parameters:
      - $ref: '#/components/parameters/agentId'
      - $ref: '#/components/parameters/agentWorkspaceId'
    get:
      tags:
        - Agents
      summary: Get an agent
      operationId: getAgent
      responses:
        '200':
          description: The agent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agent:
                    $ref: '#/components/schemas/Agent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/AgentNotFound'
components:
  parameters:
    agentId:
      name: agentId
      in: path
      required: true
      description: >-
        The agent's id, as in
        `https://connie.ai/<workspace-id>/agents/<agent-id>`.
      schema:
        type: string
        format: uuid
    agentWorkspaceId:
      name: workspaceId
      in: query
      required: false
      description: >
        The workspace the agent belongs to. Optional; when given, an agent from
        another workspace returns 404.
      schema:
        type: string
        format: uuid
  schemas:
    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:
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AgentNotFound:
      description: '"Agent not found". Also returned for agents you can''t see.'
      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.