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

# List Agents

Retrieve a paginated list of all agents configured for your organization.

### Headers

<ParamField header="X-API-Key" type="string" required>
  Your API key for authentication.
</ParamField>

<ParamField header="X-Organization-Id" type="string" required>
  The organization ID.
</ParamField>

### Query Parameters

<ParamField query="limit" type="integer" default="50">
  Number of results per page (1-100).
</ParamField>

<ParamField query="cursor" type="string">
  Pagination cursor from previous response for fetching the next page.
</ParamField>

### Permissions

* `agents:read` (all roles)

### Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful.
</ResponseField>

<ResponseField name="data" type="array">
  List of agent summary objects.
</ResponseField>

<ResponseField name="pagination" type="object">
  Pagination metadata.

  <Expandable title="properties">
    <ResponseField name="next_cursor" type="string">
      Cursor for the next page (null if no more pages).
    </ResponseField>

    <ResponseField name="has_more" type="boolean">
      Whether more results exist after this page.
    </ResponseField>

    <ResponseField name="page_size" type="integer">
      Number of items in this page.
    </ResponseField>

    <ResponseField name="total_count" type="integer">
      Total number of items (if available).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": [
      {
        "agent_id": "agent_a1b2c3d4e5f6",
        "agent_name": "Sales Rep",
        "language": "EN",
        "stt_provider": "deepgram",
        "tts_provider": "elevenlabs",
        "llm_provider": "openai",
        "llm_model": "gpt-4o",
        "recording_enabled": true,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-20T14:45:00Z"
      }
    ],
    "pagination": {
      "next_cursor": "eyJpZCI6ImFnZW50X3h5ejEyMyIsInBhZ2UiOjJ9",
      "has_more": true,
      "page_size": 50,
      "total_count": 127
    }
  }
  ```
</ResponseExample>
