> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/telewellness-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/telewellness-portal/api-reference/members/program-list.md).

# Program List

Use the `programs` query to get the list of all available programs.

### Available Fields

| Field              | Type   | Description                                                               |
| ------------------ | ------ | ------------------------------------------------------------------------- |
| `id`               | ID     | Id of the program                                                         |
| `name`             | String | Name of the program                                                       |
| `author`           | String | Author of the program                                                     |
| `slug`             | String | Slug of the program                                                       |
| `image`            | URL    | URL of the program image                                                  |
| `cover`            | URL    | URL of the program cover                                                  |
| `descriptionLog`   | String | Long description of the program                                           |
| `descriptionShort` | String | Short description of the program                                          |
| `restrictions`     | List   | Returns the list of restrictions applied to a program. Use it as follows: |
|                    |        |                                                                           |

### Pagination

The `programs`query supports the use of [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). The following fields can be used

{% tabs %}
{% tab title="Query" %}

```graphql
 pageInfo{
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
```

{% endtab %}
{% endtabs %}

## Example

### Get the list of available programs

{% tabs %}
{% tab title="Request" %}

```graphql
{
  programs {
    pageInfo {
      startCursor
      endCursor
      hasPreviousPage
      hasNextPage
    }
    edges {
      node {
        id
        name
        slug
        author
        image
        cover
        backgroundImage
        descriptionShort
        descriptionLong
        restrictions {
          id
          name
          slug
        }
      }
    }
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "programs": {
      "pageInfo": {
        "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjU=",
        "hasPreviousPage": false,
        "hasNextPage": false
      },
      "edges": [
        {
          "node": {
            "id": "UHJvZ3JhbToxMjViNTNiMy05OWIxLTQ5OGUtOTg4Zi0wMzQ5MzUyYTFkYjk=",
            "name": "Some other program",
            "slug": "balanced-diet",
            "author": "Suggestic",
            "image": "https://sg-data.storage.googleapis.com/images_bucket/Balanced.jpg",
            "cover": "https://sg-data.storage.googleapis.com/program/balanced-diet.png",
            "backgroundImage": "program/balanced-diet.png",
            "descriptionShort": "A flexible omnivore diet focused on maintaining a good balance of macro and micro nutrients.",
            "descriptionLong": "The balanced diet includes both plant and animal-based foods, which contribute a wide variety of macro- and micro-nutrients. Nearly every food is included. The emphasis is on controlling the portion size.",
            "restrictions": [
              {
                "id": "UmVzdHJpY3Rpb246YzlhMmVjZGMtMWFmOS00MzRjLWE1MTktMGQ3ODg4MGQ5N2Yw",
                "name": "Sugar",
                "slug": "sugar"
              }
            ]
          }
        },
        {
          "node": {
            "id": "UHJvZ3JhbTo2Y2I2YjQ4Ni01ZTZhLTQ4ZjktYjQ1MS0zYzhhNjg3Nzg4YWU=",
            "name": "Balanced Diet",
            "slug": "balanced-diet",
            "author": "Suggestic",
            "image": "https://sg-data.storage.googleapis.com/images_bucket/Balanced.jpg",
            "cover": "https://sg-data.storage.googleapis.com/program/balanced-diet.png",
            "backgroundImage": "program/balanced-diet.png",
            "descriptionShort": "A flexible omnivore diet focused on maintaining a good balance of macro and micro nutrients.",
            "descriptionLong": "The balanced diet includes both plant and animal-based foods, which contribute a wide variety of macro- and micro-nutrients. Nearly every food is included. The emphasis is on controlling the portion size.",
            "restrictions": [
              {
                "id": "UmVzdHJpY3Rpb246YzlhMmVjZGMtMWFmOS00MzRjLWE1MTktMGQ3ODg4MGQ5N2Yw",
                "name": "Sugar",
                "slug": "sugar"
              }
            ]
          }
        },
        {
          "node": {
            "id": "UHJvZ3JhbTo2MWIxMzM4NC05YTFjLTRiMGQtODFhMC03YjYxMmVmZjhmOTk=",
            "name": "Eat Smart",
            "slug": "eat-smart",
            "author": "SuggesticPlus",
            "image": null,
            "cover": "https://sg-data.storage.googleapis.com/images_bucket/cover_eat-smart_uhc-80769067-9874-45d5-a70f-9c8b193bdc0a.png",
            "backgroundImage": "program/eat-smart.png",
            "descriptionShort": "The Eat Smart program will quickly and easily show you how to swap the junk food for delicious, nourishing meals so you can feel your very best!",
            "descriptionLong": "This program adheres to a \"Healthy Dietary Pattern\" which includes nutrient-dense vegetables, fruits, grains, dairy, protein, and oils. It limits added sugars, saturated and trans fats, and sodium. Nutrient-dense foods are those that are in their lowest fat form, with little or no saturated fat, and contain little or no added salt or sugar.",
            "restrictions": []
          }
        },
        {
          "node": {
            "id": "UHJvZ3JhbTo4MGQwMjVhZS03NWM0LTRlNzEtYTJkNC1iNDdlMDRmMmYyYmI=",
            "name": "Healthy Heart",
            "slug": "healthy-heart",
            "author": "SuggesticPlus",
            "image": null,
            "cover": "https://sg-data.storage.googleapis.com/images_bucket/cover_healthy-heart_uhc-fde9e85b-ef64-4d37-8339-00515dadab8b.png",
            "backgroundImage": "program/healthy-heart.png",
            "descriptionShort": "The DASH Diet focuses on heart health and is often recommended for anyone who may need to lower their blood pressure.",
            "descriptionLong": "The DASH Diet focuses on heart health is often recommended for anyone who may need to lower their blood pressure. \r\n\r\nThe DASH Diet is higher in whole grains, fruits, vegetables, beans, nuts, seeds, poultry, fish, low-fat dairy, and vegetable oil and lower in red meat, saturated fats, sugar, and sodium compared to the Healthy Dietary Pattern.\r\n\r\nThis program adheres to a \"Healthy Dietary Pattern\" which includes nutrient-dense vegetables, fruits, grains, dairy, protein, and oils. It limits added sugars, saturated and trans fats, and sodium. Nutrient-dense foods are those that are in their lowest fat form, with little or no saturated fat, and contain little or no added salt or sugar.",
            "restrictions": []
          }
        },
        {
          "node": {
            "id": "UHJvZ3JhbTpiMGM3YWFjYS1jNTIwLTQ4MmMtYmM2OS02Nzc0MzE3MDE1ZWU=",
            "name": "Diabetes Lifestyle",
            "slug": "diabetes-lifestyle",
            "author": "SuggesticPlus",
            "image": null,
            "cover": "https://sg-data.storage.googleapis.com/images_bucket/cover_diabetes-lifestyle_uhc-7062ae64-1c36-40fe-bb0b-787bc650d9b7.png",
            "backgroundImage": "program/diabetes-lifestyle.png",
            "descriptionShort": "o\tTo help manage blood sugars, eat a healthy diet that's lower in calories and fat and higher in vegetables, fruit and dietary fiber.",
            "descriptionLong": "To help manage blood sugars, eat a healthy diet that's lower in calories and fat and higher in vegetables, fruit, and dietary fiber.\r\n\r\nThis program adheres to a \"Healthy Dietary Pattern\" which includes nutrient-dense vegetables, fruits, grains, dairy, protein, and oils. It limits added sugars, saturated and trans fats, and sodium. Nutrient-dense foods are those that are in their lowest fat form, with little or no saturated fat, and contain little or no added salt or sugar.",
            "restrictions": []
          }
        },
        {
          "node": {
            "id": "UHJvZ3JhbTo0NDIzYTgwNy0wNGFiLTQwOGItODk1Mi00YWU5NzA5NmQ2YjQ=",
            "name": "Weight and Wellness",
            "slug": "weight-and-wellness",
            "author": "SuggesticPlus",
            "image": null,
            "cover": "https://sg-data.storage.googleapis.com/images_bucket/cover_weight-and-wellness_uhc-b692cc63-8e33-4d53-95e4-356b6ac857e2.png",
            "backgroundImage": "program/weight-and-wellness.png",
            "descriptionShort": "The Mediterranean Dietary Pattern is similar to the Healthy Dietary Pattern; however, it contains more fruit and seafood and less dairy.",
            "descriptionLong": "The Mediterranean Dietary Pattern is similar to the Healthy Dietary Pattern; however, it contains more fruit and seafood and less dairy.\r\n\r\nThis program adheres to a \"Healthy Dietary Pattern\" which includes nutrient-dense vegetables, fruits, grains, dairy, protein, and oils. It limits added sugars, saturated and trans fats, and sodium. Nutrient-dense foods are those that are in their lowest fat form, with little or no saturated fat, and contain little or no added salt or sugar.",
            "restrictions": []
          }
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.suggestic.com/telewellness-portal/api-reference/members/program-list.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
