> For the complete documentation index, see [llms.txt](https://docs.delos.financial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.delos.financial/messages/type-list.md).

# Type list

Retrieves a paginated list of available message types with their configuration and permission status. This endpoint helps understand what types of messages can be sent and which are enabled for the cu

**Endpoint**

`GET/v2/messages/types`

**Link**

{% embed url="<https://partner.sandbox.delos.financial/openapi/v2.html#/operations/Messages_GetNotificationTypes>" %}

### **Request**

#### **Query Parameters**

| Parameter           | Type      | Description                  | Required | Example |
| ------------------- | --------- | ---------------------------- | -------- | ------- |
| **`meta.page`**     | `integer` | Page number (starts from 0). | No       | `0`     |
| **`meta.pageSize`** | `integer` | Number of items per page.    | No       | `20`    |

#### **Headers**

| Key             | Value              | Required |
| --------------- | ------------------ | -------- |
| `Authorization` | `<JWT>`            | Yes      |
| `Accept`        | `application/json` | Yes      |

***

### **Response (200 OK)**

Returns a paginated list of message types with their configuration.

#### **Response Fields**

**1. Meta Object**

| Field          | Type      | Description                    | Example |
| -------------- | --------- | ------------------------------ | ------- |
| **`pageSize`** | `integer` | Items per page.                | `20`    |
| **`page`**     | `integer` | Current page number.           | `0`     |
| **`total`**    | `string`  | Total message types available. | `"5"`   |

**2. Message Type Object (`items[]`)**

| Field           | Type      | Description                                                  | Example   |
| --------------- | --------- | ------------------------------------------------------------ | --------- |
| **`id`**        | `integer` | **Unique type identifier**.                                  | `1`       |
| **`name`**      | `string`  | **Type name** (descriptive).                                 | `"Email"` |
| **`isAllowed`** | `boolean` | **Permission status** for current partner. `true` = enabled. | `true`    |

**Example Response:**

json

```
{
  "items": [
    {
      "id": 1,
      "name": "Email",
      "isAllowed": true
    },
    {
      "id": 2,
      "name": "SMS",
      "isAllowed": true
    },
    {
      "id": 3,
      "name": "Push Notification",
      "isAllowed": false
    },
    {
      "id": 4,
      "name": "In-App Notification",
      "isAllowed": true
    },
    {
      "id": 5,
      "name": "Webhook",
      "isAllowed": true
    }
  ],
  "meta": {
    "pageSize": 20,
    "page": 0,
    "total": "5"
  }
}
```

***

### **Examples**

#### **Request**

bash

```
curl -X GET 'https://stagep.tst-apidmndelss.com/v2/messages/types?meta.page=0&meta.pageSize=10' \
  -H 'Authorization: Bearer eyJhbGci...wNLGA' \
  -H 'Accept: application/json'
```

#### **Request with Pagination**

bash

```
curl -X GET 'https://stagep.tst-apidmndelss.com/v2/messages/types?meta.page=1&meta.pageSize=5' \
  -H 'Authorization: Bearer eyJhbGci...wNLGA' \
  -H 'Accept: application/json'
```

***

### **Common Message Types**

* **`1` - Email**: Standard email notifications
* **`2` - SMS**: Text message notifications
* **`3` - Push Notification**: Mobile app push messages
* **`4` - In-App Notification**: Platform internal notifications
* **`5` - Webhook**: External system notifications

***

### **Error Responses**

1. **Unauthorized**:

   json

   ```
   { "error": "Unauthorized" }
   ```
2. **Invalid Page**:

   json

   ```
   { "error": "Page number must be non-negative" }
   ```

***

### **Notes**

* **Permission-Based**: `isAllowed` indicates whether the current partner can use this message type.
* **Configuration**: Message types may have additional configuration requirements (e.g., SMTP for email, SMS gateway for SMS).
* **Pagination**: Default `pageSize` is typically 20-50 items.
* **Real-time**: The list reflects current system configuration and partner permissions.

**Usage Examples**:

* Display available message channels in UI dropdowns
* Conditionally show/hide features based on `isAllowed`
* Validate template creation requests

Real request sample

```postman_json
Authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjE2NCwiZXhwIjoxNzYxMTQwNjI0LCJrZXkiOiI1Y2ZiOGZjN2RmYjk4ZjVkYmIyZTgwNTVkZWFhN2U2Zjk4MzEyYmE3Iiwib3RwX3ZlcmlmaWVkIjpmYWxzZX0.ZxxQJJMwaktAsYDtSLIEMho6F2myXfcWFXSiJmQLeM8

```

Real response sample:

```postman_json
{
  "items": [
    {
      "id": 1,
      "name": "modal_window",
      "isAllowed": true
    },
    {
      "id": 2,
      "name": "web_push",
      "isAllowed": true
    },
    {
      "id": 3,
      "name": "email",
      "isAllowed": true
    },
    {
      "id": 8,
      "name": "telegram",
      "isAllowed": true
    }
  ],
  "meta": {
    "pageSize": 0,
    "page": 0,
    "total": "4"
  }
}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.delos.financial/messages/type-list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
