> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/campaigns/get-one-campaign.md).

# Get One Campaign

### 📨 Get One Campaign

Use this endpoint to fetch data of a single campaign by UID.

***

#### 🔹 HTTP Request

```http
GET API-URL/campaigns/CAMPAIGN-UNIQUE-ID
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                     |
| -------------------- | -------- | ------------------------------- |
| `CAMPAIGN-UNIQUE-ID` | Yes      | Campaign unique ID to retrieve. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// GET ONE ITEM
$response = $endpoint->getCampaign('CAMPAIGN-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "data": {
    "record": {
      "campaign_uid": "ab781xqmvk274",
      "campaign_id": "201",
      "name": "Demo API Campaign #1",
      "type": "regular",
      "from_name": "Alice Walker",
      "from_email": "alice.walker@demo.com",
      "to_name": "[EMAIL]",
      "reply_to": "alice.walker@demo.com",
      "subject": "🚀 Testing Campaigns via API Integration",
      "status": "sent",
      "date_added": "2025-04-16T14:55:00",
      "send_at": "2025-04-16T14:57:00",
      "list": {
        "list_uid": "xy5934demo938",
        "name": "Demo List 2025",
        "subscribers_count": 0
      },
      "segment": [],
      "group": []
    }
  }
}
```
