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

# List Dispositions

> Retrieve a paginated list of all dispositions

## Overview

Retrieve a paginated list of all dispositions in your organization with optional filtering.

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication (e.g., `Bearer <your_token>`).
</ParamField>

## Query Parameters

<ParamField query="page" type="integer" default="1">
  Page number for pagination
</ParamField>

<ParamField query="search" type="string">
  Search term to filter by name and description
</ParamField>

## Response

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

<ResponseField name="data" type="array">
  Array of disposition objects

  <Expandable title="Disposition properties">
    <ResponseField name="id" type="string">
      Unique disposition ID
    </ResponseField>

    <ResponseField name="name" type="string">
      Disposition name
    </ResponseField>

    <ResponseField name="description" type="string">
      Disposition description
    </ResponseField>

    <ResponseField name="priority" type="integer">
      Priority level
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      Creation timestamp
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      Last update timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pagination" type="object">
  Pagination information

  <Expandable title="properties">
    <ResponseField name="page" type="integer">
      Current page number
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Items per page
    </ResponseField>

    <ResponseField name="total" type="integer">
      Total number of items
    </ResponseField>

    <ResponseField name="totalPages" type="integer">
      Total number of pages
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "data": [
      {
        "id": "NiciJNJoGytGUGiyhqgK",
        "name": "Pay in Coming Days/Weeks",
        "description": "Mark if customer says they will pay next day or after few days.",
        "priority": 0,
        "createdAt": "2025-02-06T09:02:03",
        "updatedAt": "2025-02-09T10:30:20"
      },
      {
        "id": "qmJFQyVugpOAPjREQeEF",
        "name": "No Answer",
        "description": "Customer did not pick up the call",
        "priority": 100,
        "createdAt": "2025-02-05T14:20:00",
        "updatedAt": "2025-02-05T14:20:00"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 15,
      "totalPages": 1
    }
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "success": false,
    "error": "Unauthorized",
    "message": "Missing or invalid authorization header"
  }
  ```

  ```json 403 Forbidden theme={null}
  {
    "success": false,
    "error": "Forbidden",
    "message": "You don't have the required permission to perform this action"
  }
  ```

  ```json 500 Server Error theme={null}
  {
    "success": false,
    "error": "InternalServerError",
    "message": "An unexpected error occurred"
  }
  ```
</ResponseExample>

## Error Codes

| Status | Description                               |
| ------ | ----------------------------------------- |
| `401`  | Unauthorized - Invalid or missing API key |
| `403`  | Forbidden - Missing required permissions  |
| `500`  | Internal server error                     |
