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

> Retrieve detailed information about a specific campaign by its 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 campaign (e.g., `camp_abc123`).
</ParamField>

### Response

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

<ResponseField name="data" type="object">
  The campaign object containing full details.

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

    <ResponseField name="name" type="string">
      Name of the campaign.
    </ResponseField>

    <ResponseField name="status" type="string">
      Current status (e.g., `active`, `paused`).
    </ResponseField>

    <ResponseField name="type" type="string">
      Campaign type (e.g., `debt_collection`).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="error" type="string">
  The error type or code (Error responses only).
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message explaining the error (Error responses only).
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
  	"success": true,
  	"data": {
  		"id": "QSoSyUUwwhwEiFhXJIUlhYxOh",
  		"tableId": "campaign_jyyrsvgpynmxetfiuiba_kiwwhjupmwyjabnrlillydlsw",
  		"rowsLen": 1,
  		"createdAt": "2026-01-05T14:44:15",
  		"updatedAt": "2026-01-05T14:44:51",
  		"name": "Campaign 1",
  		"description": "Q1 debt collection campaign for overdue accounts",
  		"startDate": "2025-12-31",
  		"startTime": "09:00",
  		"endDate": "2025-12-31",
  		"endTime": "19:00",
  		"collection_type": "emi",
  		"region": "north",
  		"tags": [
  			"priority",
  			"q1"
  		],
  		"languages": [
  			"hindi",
  			"english"
  		]
  	}
  }

  ```

  ```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 404 Not Found theme={null}
  {
    "success": false,
    "error": "NotFound",
    "message": "Campaign not found"
  }

  ```

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

  ```
</ResponseExample>

```
```
