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

# Get Agents Admin Paginated

> Paginated endpoint for listing agents (formerly personas) (admin view).

Returns items for the requested page plus total count.
Agents are ordered by display_priority (ASC, nulls last) then by ID (ASC).



## OpenAPI

````yaml GET /admin/agents
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /admin/agents:
    get:
      tags:
        - public
      summary: Get Agents Admin Paginated
      description: >-
        Paginated endpoint for listing agents (formerly personas) (admin view).


        Returns items for the requested page plus total count.

        Agents are ordered by display_priority (ASC, nulls last) then by ID
        (ASC).
      operationId: get_agents_admin_paginated
      parameters:
        - name: page_num
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Page number (0-indexed).
            default: 0
            title: Page Num
          description: Page number (0-indexed).
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Items per page.
            default: 10
            title: Page Size
          description: Items per page.
        - name: include_deleted
          in: query
          required: false
          schema:
            type: boolean
            description: If true, includes deleted personas.
            default: false
            title: Include Deleted
          description: If true, includes deleted personas.
        - name: get_editable
          in: query
          required: false
          schema:
            type: boolean
            description: If true, only returns editable personas.
            default: false
            title: Get Editable
          description: If true, only returns editable personas.
        - name: include_default
          in: query
          required: false
          schema:
            type: boolean
            description: If true, includes builtin/default personas.
            default: true
            title: Include Default
          description: If true, includes builtin/default personas.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedReturn_PersonaSnapshot_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    PaginatedReturn_PersonaSnapshot_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PersonaSnapshot'
          type: array
          title: Items
        total_items:
          type: integer
          title: Total Items
      type: object
      required:
        - items
        - total_items
      title: PaginatedReturn[PersonaSnapshot]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PersonaSnapshot:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        is_public:
          type: boolean
          title: Is Public
        is_visible:
          type: boolean
          title: Is Visible
        uploaded_image_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Uploaded Image Id
        icon_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Name
        user_file_ids:
          items:
            type: string
          type: array
          title: User File Ids
        display_priority:
          anyOf:
            - type: integer
            - type: 'null'
          title: Display Priority
        is_default_persona:
          type: boolean
          title: Is Default Persona
        builtin_persona:
          type: boolean
          title: Builtin Persona
        starter_messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/StarterMessage'
              type: array
            - type: 'null'
          title: Starter Messages
        llm_relevance_filter:
          type: boolean
          title: Llm Relevance Filter
        llm_filter_extraction:
          type: boolean
          title: Llm Filter Extraction
        tools:
          items:
            $ref: '#/components/schemas/ToolSnapshot'
          type: array
          title: Tools
        labels:
          items:
            $ref: '#/components/schemas/PersonaLabelSnapshot'
          type: array
          title: Labels
        owner:
          anyOf:
            - $ref: '#/components/schemas/MinimalUserSnapshot'
            - type: 'null'
        users:
          items:
            $ref: '#/components/schemas/MinimalUserSnapshot'
          type: array
          title: Users
        groups:
          items:
            type: integer
          type: array
          title: Groups
        document_sets:
          items:
            $ref: '#/components/schemas/DocumentSetSummary'
          type: array
          title: Document Sets
        llm_model_provider_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Llm Model Provider Override
        llm_model_version_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Llm Model Version Override
        num_chunks:
          anyOf:
            - type: number
            - type: 'null'
          title: Num Chunks
        system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: System Prompt
        replace_base_system_prompt:
          type: boolean
          title: Replace Base System Prompt
          default: false
        task_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Prompt
        datetime_aware:
          type: boolean
          title: Datetime Aware
          default: true
      type: object
      required:
        - id
        - name
        - description
        - is_public
        - is_visible
        - uploaded_image_id
        - icon_name
        - user_file_ids
        - display_priority
        - is_default_persona
        - builtin_persona
        - starter_messages
        - llm_relevance_filter
        - llm_filter_extraction
        - tools
        - labels
        - owner
        - users
        - groups
        - document_sets
        - llm_model_provider_override
        - llm_model_version_override
        - num_chunks
      title: PersonaSnapshot
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    StarterMessage:
      properties:
        name:
          type: string
          title: Name
        message:
          type: string
          title: Message
      type: object
      required:
        - name
        - message
      title: StarterMessage
      description: Starter message for a persona.
    ToolSnapshot:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        definition:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Definition
        display_name:
          type: string
          title: Display Name
        in_code_tool_id:
          anyOf:
            - type: string
            - type: 'null'
          title: In Code Tool Id
        custom_headers:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Custom Headers
        passthrough_auth:
          type: boolean
          title: Passthrough Auth
        mcp_server_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Mcp Server Id
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        oauth_config_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Oauth Config Id
        oauth_config_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Oauth Config Name
        enabled:
          type: boolean
          title: Enabled
          default: true
        chat_selectable:
          type: boolean
          title: Chat Selectable
          default: true
        agent_creation_selectable:
          type: boolean
          title: Agent Creation Selectable
          default: true
        default_enabled:
          type: boolean
          title: Default Enabled
          default: false
      type: object
      required:
        - id
        - name
        - description
        - definition
        - display_name
        - in_code_tool_id
        - custom_headers
        - passthrough_auth
      title: ToolSnapshot
    PersonaLabelSnapshot:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: PersonaLabelSnapshot
    MinimalUserSnapshot:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        email:
          type: string
          title: Email
      type: object
      required:
        - id
        - email
      title: MinimalUserSnapshot
    DocumentSetSummary:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        cc_pair_summaries:
          items:
            $ref: '#/components/schemas/CCPairSummary'
          type: array
          title: Cc Pair Summaries
        is_up_to_date:
          type: boolean
          title: Is Up To Date
        is_public:
          type: boolean
          title: Is Public
        users:
          items:
            type: string
            format: uuid
          type: array
          title: Users
        groups:
          items:
            type: integer
          type: array
          title: Groups
        federated_connector_summaries:
          items:
            $ref: '#/components/schemas/FederatedConnectorSummary'
          type: array
          title: Federated Connector Summaries
      type: object
      required:
        - id
        - name
        - description
        - cc_pair_summaries
        - is_up_to_date
        - is_public
        - users
        - groups
      title: DocumentSetSummary
      description: Simplified document set model with minimal data for list views
    CCPairSummary:
      properties:
        id:
          type: integer
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        source:
          $ref: '#/components/schemas/DocumentSource'
        access_type:
          $ref: '#/components/schemas/AccessType'
      type: object
      required:
        - id
        - name
        - source
        - access_type
      title: CCPairSummary
      description: >-
        Simplified connector-credential pair information with just essential
        data
    FederatedConnectorSummary:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        source:
          $ref: '#/components/schemas/FederatedConnectorSource'
        entities:
          additionalProperties: true
          type: object
          title: Entities
      type: object
      required:
        - id
        - name
        - source
        - entities
      title: FederatedConnectorSummary
      description: Simplified federated connector information with just essential data
    DocumentSource:
      type: string
      enum:
        - ingestion_api
        - slack
        - web
        - google_drive
        - gmail
        - requesttracker
        - github
        - gitbook
        - gitlab
        - guru
        - bookstack
        - outline
        - confluence
        - jira
        - slab
        - productboard
        - file
        - coda
        - notion
        - zulip
        - linear
        - hubspot
        - document360
        - gong
        - google_sites
        - zendesk
        - loopio
        - dropbox
        - sharepoint
        - teams
        - salesforce
        - discourse
        - axero
        - clickup
        - mediawiki
        - wikipedia
        - asana
        - s3
        - r2
        - google_cloud_storage
        - oci_storage
        - xenforo
        - not_applicable
        - discord
        - freshdesk
        - fireflies
        - egnyte
        - airtable
        - highspot
        - drupal_wiki
        - imap
        - bitbucket
        - testrail
        - mock_connector
        - user_file
      title: DocumentSource
    AccessType:
      type: string
      enum:
        - public
        - private
        - sync
      title: AccessType
    FederatedConnectorSource:
      type: string
      enum:
        - federated_slack
      title: FederatedConnectorSource
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````