---
title: "Return a list of messages."
method: GET
path: "/Ams/{ClientID}/Member/{MemberID}/Messages"
tags: ["Ams"]
---

# Return a list of messages.

`GET /Ams/{ClientID}/Member/{MemberID}/Messages`

## Request

- Base URL: `https://ws.yourmembership.com`
- URL: `https://ws.yourmembership.com/Ams/{ClientID}/Member/{MemberID}/Messages`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/yourmembership/apis/ym-rest-services/docs/Ams/:ClientID/Member/:MemberID/Messages/get.ts> (a function with typed inputs; its response is checked against the schema)

Return a list of messages.

## Path parameters

- `MemberID` integer, required
- `ClientID` integer, required

## Query parameters

- `MessageIds` string
- `MessageId` integer
- `SenderId` integer
- `UpdateAction` 'None' | 'Read' | 'Unread' | 'Archive' | 'Move'
- `FolderType` 'Inbox' | 'Sent' | 'Deleted' | 'Draft' | 'Junk' | 'Personal'
- `Subject` string
- `Body` string
- `RecipientId` integer
- `FolderId` integer
- `MessageTypeId` string
- `IsRichText` boolean
- `Expires` string, date-time
- `DateShow` string, date-time
- `AttachmentPath` string
- `SenderName` string
- `RecipientName` string
- `AttachmentSize` integer
- `PageSize` integer
- `PageNumber` integer
- `Attachment` string
- `AttachmentName` string
- `ResponseStatus` string
- `BypassCache` boolean
- `DateCached` string, date-time
- `Device` string

## Response `200`

Success

- MessageResponse: MessageResponse
  - `FolderName` string
  - `MessageDate` string, date-time
  - `IsRead` boolean
  - `HasAttachments` boolean
  - `SenderHeadshotImage` string
  - `RecipientHeadshotImage` string
  - `MessageIds` integer[]
  - `MessageId` integer
  - `SenderId` integer
  - `UpdateAction` 'None' | 'Read' | 'Unread' | 'Archive' | 'Move'
  - `FolderType` 'Inbox' | 'Sent' | 'Deleted' | 'Draft' | 'Junk' | 'Personal'
  - `Subject` string
  - `Body` string
  - `RecipientId` integer
  - `FolderId` integer
  - `MessageTypeId` string
  - `IsRichText` boolean
  - `Expires` string, date-time
  - `DateShow` string, date-time
  - `AttachmentPath` string
  - `SenderName` string
  - `RecipientName` string
  - `AttachmentSize` integer
  - `PageSize` integer
  - `PageNumber` integer
  - `Attachment` string
  - `AttachmentName` string
  - `MemberID` integer
  - `ClientID` integer
  - `ResponseStatus` ResponseStatus: ResponseStatus
    - `ErrorCode` string
    - `Message` string
    - `StackTrace` string
    - `Errors` ResponseError[]
      - `ErrorCode` string
      - `FieldName` string
      - `Message` string
      - `Meta` DictionaryStringString: Dictionary<String,String>
    - `Meta` DictionaryStringString: Dictionary<String,String>
  - `BypassCache` boolean
  - `DateCached` string, date-time
  - `Device` string

---

[API](https://skmtc.dev/yourmembership/apis/ym-rest-services.md) - [All operations](https://skmtc.dev/yourmembership/apis/ym-rest-services/llms.txt) - [OpenAPI document](https://skmtc.dev/yourmembership/apis/ym-rest-services/revisions/8d8a2e7e7d56?raw)
