Messages

Unread Messages

GET /messages/messages/unread.json

Retrieve unread messages for the authenticated user. Used for notification badges.

Response

{
  "messages": [
    {
      "Message": {
        "id": "1001",
        "subject": "Schedule change tomorrow",
        "created": "2025-03-10 14:00:00"
      },
      "Sender": {
        "id": "101",
        "email": "[email protected]",
        "pic": "https://...",
        "name": "Maria Garcia"
      }
    }
  ]
}

List Messages

GET /messages.json

Retrieve all messages in the default mailbox (inbox).

GET /messages/messages/index/{mailbox}.json

Retrieve messages in a specific mailbox.

Path Parameters

Parameter
Type
Description

mailbox

string

Mailbox name (e.g. inbox, sent, starred, archived)

Response


View Message Thread

GET /messages/messages/view/{messageId}.json

Retrieve a message and its full conversation thread. Marks the message as read.

Path Parameters

Parameter
Type
Description

messageId

string

Message ID

Response

Field
Description

message

The opened message (marked as read server-side)

family

Full conversation thread, oldest first (includes the opened message)


Reply to Message

POST /messages/messages/add.json

Send a reply in a message thread.

Request Body

Field
Type
Required
Description

parent_id

string

Yes

ID of the message being replied to

subject

string

Yes

Message subject

body

string

Yes

HTML message body


Change Message Status

POST /messages/messages/change/{field}/{value}.json

Update a message flag (star, archive, delete).

Path Parameters

Parameter
Type
Description

field

string

Field to change: starred, archived, deleted

value

string

New value: true or false

Request Body

Field
Type
Required
Description

id

string

Yes

Message ID

Last updated