> ## 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.

# Get Disposition Group

> Retrieve a specific disposition group by ID

## Overview

Retrieve detailed information about a specific disposition group using its unique ID.

## Headers

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

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the disposition group
</ParamField>

## Query Parameters

<ParamField query="expand" type="boolean" default="false">
  If `true`, includes full disposition details
</ParamField>

## Response

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

<ResponseField name="data" type="object">
  Disposition group object

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

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

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

    <ResponseField name="dispositions" type="array">
      Array of disposition IDs
    </ResponseField>

    <ResponseField name="dispositionDetails" type="array">
      Full disposition objects (only when expand=true)
    </ResponseField>

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

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

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "data": {
      "id": "BQhJQMcijOPZEVhXgova",
      "name": "Call Back",
      "description": "Call customer again if given dispositions are found",
      "dispositions": [
        "qmJFQyVugpOAPjREQeEF",
        "sorlyJWVWKvqzfPFFeuT"
      ],
      "dispositionDetails": [
        {
          "id": "qmJFQyVugpOAPjREQeEF",
          "name": "No Answer",
          "description": "Customer did not pick up",
          "priority": 100
        },
        {
          "id": "sorlyJWVWKvqzfPFFeuT",
          "name": "Busy",
          "description": "Line was busy",
          "priority": 110
        }
      ],
      "createdAt": "2024-11-19T12:32:10",
      "updatedAt": "2024-11-19T12:32:10"
    }
  }
  ```

  ```json 403 Forbidden theme={null}
  {
    "success": false,
    "message": "Access denied"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "success": false,
    "message": "Disposition group not found"
  }
  ```

  ```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              |
| `404`  | Disposition group with the specified ID was not found |
| `500`  | Internal server error                                 |
