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

# List agents

> Returns a paginated list of AI voice agents in your account. Use search to filter by name, sortBy and sortDirection to control ordering, and cursor and pageSize to page through results.



## OpenAPI

````yaml /openapi.json get /public/v1/agents
openapi: 3.0.3
info:
  title: Callin Public API
  version: 1.0.0
  description: >-
    The Callin public API lets you programmatically build and manage AI voice
    agents, control their knowledge bases, and retrieve call logs and
    transcripts. All endpoints are versioned under /public/v1.
servers:
  - url: https://api.callin.io/api
    description: API Endpoint
security: []
tags:
  - name: Health
    description: Service availability check. No authentication required.
  - name: Identity
    description: Verify which account is associated with the current API key.
  - name: Agents
    description: Create, retrieve, and update AI voice agents.
  - name: Conversations
    description: List and inspect call logs, transcripts, and conversation details.
  - name: Knowledge Base
    description: Manage documents and groups that agents use during calls.
paths:
  /public/v1/agents:
    get:
      tags:
        - Agents
      summary: List agents
      description: >-
        Returns a paginated list of AI voice agents in your account. Use search
        to filter by name, sortBy and sortDirection to control ordering, and
        cursor and pageSize to page through results.
      parameters:
        - name: search
          in: query
          schema:
            type: string
          description: Filter agents by name (case-insensitive partial match).
        - name: sortBy
          in: query
          schema:
            type: string
            enum:
              - name
              - created_at
          description: Field to sort by. Defaults to created_at.
        - name: sortDirection
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
          description: Sort order. Defaults to desc.
        - name: cursor
          in: query
          schema:
            type: string
          description: >-
            Pagination cursor from the previous response nextCursor. Pass an ISO
            timestamp when sorting by created_at, or a name string when sorting
            by name.
        - name: pageSize
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 30
          description: Number of agents per page. Min 1, max 100, default 30.
      responses:
        '200':
          description: A paginated array of agents.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessAgentListResponse'
        '400':
          description: One or more query parameters are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyHeader: []
        - BearerAuth: []
components:
  schemas:
    SuccessAgentListResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          description: A list of agents and their metadata
          type: array
          items:
            $ref: '#/components/schemas/AgentListItem'
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
      description: Paginated list of agents with cursor metadata.
    ErrorResponse:
      type: object
      description: >-
        Returned for most client and validation errors. Read `error.message` and
        optional `error.fields` for details.
      properties:
        success:
          type: boolean
          example: false
          description: Always `false` for this shape.
        error:
          type: object
          description: Structured error payload from the API.
          properties:
            code:
              type: string
              description: Stable machine-oriented error code when provided.
            message:
              type: string
              description: Human-readable explanation suitable to show or log.
            status:
              type: integer
              description: HTTP status code echoed for convenience.
            fields:
              type: array
              description: >-
                Optional per-field validation issues (shape is
                endpoint-specific).
              items:
                type: object
    AgentListItem:
      type: object
      properties:
        agentId:
          type: string
          description: The ID of the agent
        name:
          type: string
          description: The name of the agent
        tags:
          type: array
          items:
            type: string
          description: Agent tags used to categorize the agent
        metadata:
          type: object
          properties:
            createdAt:
              type: string
              format: date-time
              description: The date and time the agent was created
            updatedAt:
              type: string
              format: date-time
              description: The date and time the agent was last updated
            createdBy:
              $ref: '#/components/schemas/MetaCreatedBy'
    PaginationMeta:
      type: object
      properties:
        pageSize:
          type: integer
          description: >-
            How many items to return at maximum. Can not exceed 100, defaults to
            30.
        hasMore:
          type: boolean
          description: Indicates if there are more items to fetch.
        nextCursor:
          type: string
          nullable: true
          description: Used for fetching next page. Cursor is returned in the response.
        sortBy:
          type: string
          description: The field to sort the results by.
          example: name
        sortDirection:
          type: string
          enum:
            - asc
            - desc
          description: The direction to sort the results.
          example: asc
    MetaCreatedBy:
      type: object
      properties:
        userId:
          type: string
          description: The ID of the user who created the item
        userEmail:
          type: string
          description: The email of the user who created the item
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: Send your Callin API key in the `x-api-key` header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Same API key as a Bearer token: `Authorization: Bearer <your-api-key>`.'

````