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

# List Agent Conversations

> The agent's conversations, newest first, with optional filtering. Filters are a JSON-encoded array, for example `[{"attribute": "dateRange", "value": {"from": "2024-01-01", "to": "2024-01-31"}}]`.



## OpenAPI

````yaml /api-reference/openapi.en.json get /api/v1/agents/{agent_id}/conversations
openapi: 3.1.0
info:
  title: Brosbots API
  description: >
    The public Brosbots REST API. Build and manage voice agents, run outbound

    campaigns, read calls and usage, and manage phone numbers, tools,

    knowledge bases and integrations.


    ## Authentication


    Every request must include your organization's API key in the

    `X-API-Key` header:


    ```

    X-API-Key: bb_live_...

    ```


    You create and revoke keys in the dashboard:

    click your account in the bottom-left corner of the sidebar, then **Brosbots
    API**.


    ## Base URL


    ```

    https://app.brosbots.com/api/v1

    ```


    ## Conventions


    - Request and response bodies are JSON (`Content-Type: application/json`).

    - Timestamps are ISO 8601 with a timezone.

    - Lists are paginated with `page` / `limit` parameters; responses include
      `total_count` / `total_pages`.
    - Errors use standard HTTP status codes with a JSON body:
      `{"detail": "a human-readable reason"}`.
    - `{agent_id}` accepts the agent's public ID (`agent_...`) or its number.


    ## Limits


    There is no fixed per-key request-rate limit today. `429` comes from the

    calling endpoints (`POST /agents/{agent_id}/calls` and

    `POST /triggers/{trigger_id}/calls`) when every outbound channel is busy;
    its `Retry-After` header says how many seconds to wait. Handle `429`

    generally: wait as long as `Retry-After` says, or back off exponentially
    when

    it is absent. A request-rate limit may be introduced.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/v1/agents/{agent_id}/conversations:
    get:
      tags:
        - Agents & Calls
      summary: List Agent Conversations
      description: >-
        The agent's conversations, newest first, with optional filtering.
        Filters are a JSON-encoded array, for example `[{"attribute":
        "dateRange", "value": {"from": "2024-01-01", "to": "2024-01-31"}}]`.
      operationId: get_agents_agent_id_conversations
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
                pattern: ^agent_[A-Za-z0-9]{20}$
              - type: integer
            examples:
              - agent_7fK2mQ9xLp3RtV8wYb1N
              - 42
          description: >-
            The agent's ID: the public `agent_` + 20 characters identifier shown
            in the dashboard (recommended), or the legacy number. Both address
            the same agent.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
        - name: filters
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: JSON-encoded filter criteria
          description: JSON-encoded filter criteria
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationsResponse'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConversationsResponse:
      properties:
        runs:
          items:
            $ref: '#/components/schemas/ConversationSummary'
          type: array
        total_count:
          type: integer
        page:
          type: integer
        limit:
          type: integer
        total_pages:
          type: integer
        applied_filters:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
      type: object
      required:
        - runs
        - total_count
        - page
        - limit
        - total_pages
      title: ConversationsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
      title: HTTPValidationError
    ConversationSummary:
      properties:
        id:
          type: integer
        workflow_id:
          type: integer
        name:
          type: string
        mode:
          type: string
        created_at:
          type: string
          format: date-time
        is_completed:
          type: boolean
        transcript_url:
          anyOf:
            - type: string
            - type: 'null'
        recording_url:
          anyOf:
            - type: string
            - type: 'null'
        cost_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
        provider_call_id:
          anyOf:
            - type: string
            - type: 'null'
        definition_id:
          anyOf:
            - type: integer
            - type: 'null'
        initial_context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
        gathered_context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
        call_type:
          $ref: '#/components/schemas/CallType'
        logs:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
        sms_messages:
          items:
            $ref: '#/components/schemas/SmsMessageSchema'
          type: array
          default: []
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Call length in whole seconds; null until the call has ended. The
            same value call.completed sends as duration_seconds.
      type: object
      required:
        - id
        - workflow_id
        - name
        - mode
        - created_at
        - is_completed
        - transcript_url
        - recording_url
        - cost_info
        - definition_id
        - call_type
      title: ConversationSummary
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    CallType:
      type: string
      enum:
        - inbound
        - outbound
      title: CallType
    SmsMessageSchema:
      properties:
        id:
          type: integer
        direction:
          type: string
        from_number:
          type: string
        to_number:
          type: string
        text:
          type: string
        status:
          type: string
        error_detail:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
      type: object
      required:
        - id
        - direction
        - from_number
        - to_number
        - text
        - status
      title: SmsMessageSchema
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your organization's API key (account in the bottom-left of the dashboard
        → Brosbots API).

````

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