> ## Documentation Index
> Fetch the complete documentation index at: https://test-8862363a-tembo-docs-commit-attribution-preference.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List agents

> List agents available in your organization, with optional search, status, integration, and author filters.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public get /v1/agents
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/agents:
    get:
      tags:
        - Agents
      summary: List agents
      description: >-
        List agents available in your organization, with optional search,
        status, integration, and author filters.
      operationId: listAgents
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
            maxLength: 2000
        - in: query
          name: limit
          schema:
            type: string
            default: '50'
        - in: query
          name: ids
          schema:
            type: string
            maxLength: 10000
        - in: query
          name: search
          schema:
            type: string
            minLength: 1
            maxLength: 200
        - in: query
          name: archived
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
        - in: query
          name: sort
          schema:
            type: string
            enum:
              - latestRun
              - runCount
        - in: query
          name: status
          schema:
            type: string
            maxLength: 10000
        - in: query
          name: integration
          schema:
            type: string
            maxLength: 10000
        - in: query
          name: author
          schema:
            type: string
            maxLength: 10000
      responses:
        '200':
          description: List agents
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        organizationId:
                          type:
                            - string
                            - 'null'
                          minLength: 1
                          maxLength: 255
                        organizationName:
                          type:
                            - string
                            - 'null'
                        createdBy:
                          type:
                            - string
                            - 'null'
                        name:
                          type: string
                        instructions:
                          oneOf:
                            - $ref: '#/components/schemas/TipTapDocument'
                              description: >-
                                Instructions for the agent as a rich-text
                                document. Mentions can reference integrations
                                used by the agent.
                            - type: 'null'
                        agent:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Runtime and model selection key; not the ID of an
                            agent resource.
                        mcpServers:
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                          maxItems: 100
                          description: >-
                            Selected MCP server identifiers, including built-in
                            server keys.
                        artifactType:
                          type:
                            - string
                            - 'null'
                          enum:
                            - PullRequest
                            - ToolCall
                            - Plan
                            - Response
                            - File
                            - Service
                            - Source
                            - null
                        createdAt:
                          type: string
                          format: date-time
                        archivedAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        enabledAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        lastRun:
                          type:
                            - object
                            - 'null'
                          properties:
                            id:
                              type: string
                              format: uuid
                            sessionId:
                              type:
                                - string
                                - 'null'
                            status:
                              type: string
                            createdAt:
                              type: string
                              format: date-time
                            updatedAt:
                              type: string
                              format: date-time
                            durationMs:
                              type: integer
                              description: >-
                                Measured duration of the agent run in
                                milliseconds.
                            errorMessage:
                              type:
                                - string
                                - 'null'
                          required:
                            - id
                            - sessionId
                            - status
                            - createdAt
                            - updatedAt
                            - durationMs
                            - errorMessage
                          additionalProperties: false
                        runCount:
                          type: integer
                          minimum: 0
                        scheduleCount:
                          type: integer
                          minimum: 0
                        triggerCount:
                          type: integer
                          minimum: 0
                        hasPausedSchedule:
                          type: boolean
                        hasPausedTrigger:
                          type: boolean
                        integrationIds:
                          type: array
                          items:
                            type: string
                            format: uuid
                        integrationTypes:
                          type: array
                          items:
                            type: string
                        codeRepositoryCount:
                          type: integer
                          minimum: 0
                      required:
                        - id
                        - organizationId
                        - organizationName
                        - createdBy
                        - name
                        - instructions
                        - agent
                        - mcpServers
                        - artifactType
                        - createdAt
                        - archivedAt
                        - enabledAt
                        - lastRun
                        - runCount
                        - scheduleCount
                        - triggerCount
                        - hasPausedSchedule
                        - hasPausedTrigger
                        - integrationIds
                        - integrationTypes
                        - codeRepositoryCount
                      additionalProperties: false
                  nextCursor:
                    type:
                      - string
                      - 'null'
                  filterOptions:
                    type: object
                    properties:
                      totalCount:
                        type: integer
                        minimum: 0
                      integrationTypes:
                        type: array
                        items:
                          type: string
                    required:
                      - totalCount
                      - integrationTypes
                    additionalProperties: false
                required:
                  - items
                  - nextCursor
                  - filterOptions
                additionalProperties: false
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Resource conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Agent operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
components:
  schemas:
    TipTapDocument:
      anyOf:
        - $ref: '#/components/schemas/TipTapNode'
        - $ref: '#/components/schemas/CustomDocument'
      description: >-
        Rich-text document containing text, formatting, images, and mentions. A
        document typically has a "doc" root with nested content nodes.
      example:
        type: doc
        content:
          - type: paragraph
            content:
              - type: text
                text: Hello
    TipTapNode:
      anyOf:
        - oneOf:
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: image
                attrs:
                  $ref: '#/components/schemas/TipTapImageAttributes'
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: mention
                attrs:
                  $ref: '#/components/schemas/TipTapMentionAttributes'
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: heading
                attrs:
                  type: object
                  properties:
                    level:
                      type: integer
                      minimum: 1
                      maximum: 6
                  additionalProperties: {}
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: orderedList
                attrs:
                  type: object
                  properties:
                    start:
                      type: integer
                    type:
                      type:
                        - string
                        - 'null'
                  additionalProperties: {}
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: taskItem
                attrs:
                  type: object
                  properties:
                    checked:
                      type: boolean
                  additionalProperties: {}
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
            - type: object
              properties:
                text:
                  type: string
                  maxLength: 1000000
                marks:
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapLinkMark'
                      - $ref: '#/components/schemas/TipTapMark'
                  maxItems: 1000
                type:
                  type: string
                  const: codeBlock
                attrs:
                  type: object
                  properties:
                    language:
                      type:
                        - string
                        - 'null'
                  additionalProperties: {}
                content:
                  type: array
                  items:
                    $ref: '#/components/schemas/TipTapNode'
                  maxItems: 10000
              required:
                - type
              additionalProperties: {}
        - $ref: '#/components/schemas/TipTapContentNode'
    CustomDocument:
      type: object
      additionalProperties: {}
      description: Rich-text content with custom document properties and node attributes.
    TipTapLinkMark:
      type: object
      properties:
        type:
          type: string
          const: link
        attrs:
          type: object
          properties:
            href:
              type:
                - string
                - 'null'
            target:
              type:
                - string
                - 'null'
            rel:
              type:
                - string
                - 'null'
            class:
              type:
                - string
                - 'null'
            title:
              type:
                - string
                - 'null'
          additionalProperties: {}
      required:
        - type
      additionalProperties: {}
    TipTapMark:
      type: object
      properties:
        type:
          type: string
          minLength: 1
          maxLength: 100
          not:
            enum:
              - link
        attrs:
          $ref: '#/components/schemas/TipTapExtensionAttributes'
      required:
        - type
      additionalProperties: {}
    TipTapImageAttributes:
      type: object
      properties:
        src:
          type:
            - string
            - 'null'
        alt:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        width:
          type:
            - string
            - 'null'
        data-uploading:
          type:
            - string
            - 'null'
        data-placeholder-id:
          type:
            - string
            - 'null'
        upload-progress:
          type:
            - string
            - 'null'
      additionalProperties: {}
    TipTapMentionAttributes:
      type: object
      properties:
        id:
          type:
            - string
            - 'null'
        label:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        mentionSuggestionChar:
          type:
            - string
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          properties:
            integrationType:
              type: string
            codeRepositoryId:
              type: string
            isHeader:
              type: boolean
            argumentHint:
              type: string
            commandName:
              type: string
            source:
              type: string
          additionalProperties: {}
      additionalProperties: {}
    TipTapContentNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
          maxItems: 1000
        type:
          type: string
          minLength: 1
          maxLength: 100
          not:
            enum:
              - image
              - mention
              - heading
              - orderedList
              - taskItem
              - codeBlock
        attrs:
          $ref: '#/components/schemas/TipTapExtensionAttributes'
        content:
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
          maxItems: 10000
      additionalProperties: {}
    TipTapExtensionAttributes:
      type: object
      additionalProperties: {}
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````