GET
api/v1/u/messages/{type}/{state}

Gets messages for the logged in user.

Request

URL Parameters

Name (Data Type)Description
type: MessageTypeFlag

A value indicating what type of messages to retrieve. Use text values of enumeration.

Additional information

  • Required

state: MessageState

A value indicating what state of messages to retrieve. Use text values of enumeration.

Additional information

  • Required

Response

ApiDataResponseOfIEnumerableOfMessage
Name (Data Type)Description
data: list of Message

success: boolean

version: string

error: ErrorInfo

Response Formats

application/json

Sample:
{
  "success": true,
  "data": [
    {
      "commentID": null,
      "content": "Why don't you just give me your number? I won't call you. Promise.",
      "formattedContent": null,
      "id": 2342234,
      "recipient": "TheOnlyFemale",
      "sender": "MrPersistent",
      "sentDate": "2017-09-14T17:07:54.7927188Z",
      "subject": "Please! I want to hear your voice!",
      "submissionID": null,
      "subverse": null,
      "type": "Private",
      "isRead": true
    },
    {
      "commentID": 2733,
      "content": "Heyyyy. I hope you're not talking about me. I'm a nice guy, you'll find out soon enough.",
      "formattedContent": null,
      "id": 23434876,
      "recipient": "TheOnlyFemale",
      "sender": "MrPersistent",
      "sentDate": "2017-09-25T17:07:54.7927188Z",
      "subject": "I'm getting harrased! What do?",
      "submissionID": 23754,
      "subverse": "ImBeingStalked",
      "type": "CommentMention",
      "isRead": true
    },
    {
      "commentID": null,
      "content": "You have crossed the line. I don't know how you got my number but I just changed it. Don't contact me ever again!",
      "formattedContent": null,
      "id": 2362334,
      "recipient": "MrPersistent",
      "sender": "TheOnlyFemale",
      "sentDate": "2017-09-28T17:07:54.7927188Z",
      "subject": "I'm calling the police",
      "submissionID": null,
      "subverse": null,
      "type": "Sent",
      "isRead": true
    },
    {
      "commentID": 3193,
      "content": "Yeah me and @TheOnlyFemale are getting married. We're so in love. The short story is that ever since I read her user name in a post on /v/ImmaGirlAMA I was instantly in love.",
      "formattedContent": null,
      "id": 2364344,
      "recipient": "TheOnlyFemale",
      "sender": "MrPersistent",
      "sentDate": "2017-10-08T17:07:54.7927188Z",
      "subject": "What's your best love at first sight story?",
      "submissionID": 273453,
      "subverse": "LoveStories",
      "type": "CommentMention",
      "isRead": true
    },
    {
      "commentID": null,
      "content": "MrPersistent showed up at my house last night begging me to marry him. He said that we don't need to have anything in common but Voat and that he 'Up Voats' me forever and ever!?",
      "formattedContent": null,
      "id": 2983433,
      "recipient": "Atko",
      "sender": "TheOnlyFemale",
      "sentDate": "2017-10-17T17:07:54.7927188Z",
      "subject": "Help Atko!",
      "submissionID": null,
      "subverse": null,
      "type": "Sent",
      "isRead": false
    },
    {
      "commentID": null,
      "content": "Hello, and thanks for the PM. [MrPersistent will no longer be a problem for you.](https://i.sli.mg/xlFd0J.jpg)",
      "formattedContent": null,
      "id": 2983434,
      "recipient": "TheOnlyFemale",
      "sender": "Atko",
      "sentDate": "2017-10-18T17:07:54.7927188Z",
      "subject": "Help Atko!",
      "submissionID": null,
      "subverse": null,
      "type": "Private",
      "isRead": false
    }
  ],
  "version": "1.1.6474.20263"
}