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

# Newsletter program

> Manage Newsletter Referral program settings

## Get Program

Retrieve newsletter program details and statistics.

```
GET https://api.partnero.com/v1/program
```

## Request

```bash cURL theme={null}
curl --location 'https://api.partnero.com/v1/program' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "HTA1FEFM",
      "name": "My Newsletter Program",
      "esp_type": "custom",
      "esp_type_name": "Custom",
      "total_subscribers": 150,
      "total_referring": 25,
      "total_referred": 45,
      "created_at": "2025-04-30T15:15:12.000000Z"
    },
    "status": 1
  }
  ```
</ResponseExample>

### Response Fields

| Field               | Type    | Description                         |
| ------------------- | ------- | ----------------------------------- |
| `id`                | string  | Program public ID                   |
| `name`              | string  | Program name                        |
| `esp_type`          | string  | Email service provider type         |
| `esp_type_name`     | string  | ESP display name                    |
| `total_subscribers` | integer | Total subscriber count              |
| `total_referring`   | integer | Subscribers who have made referrals |
| `total_referred`    | integer | Subscribers who were referred       |

## Delete Program

<Warning>
  This permanently deletes the program and all associated data.
</Warning>

```
DELETE https://api.partnero.com/v1/program
```

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": 1
  }
  ```
</ResponseExample>
