List Message
Query parameters
-
Global search
-
Current page
-
Number of items per page
-
Determines if all items are selected
-
App\Messages\Core\Models\Message Filters: 0, 1, 2
Hide where attributes Show where attributes object
-
App\Messages\Core\Models\Message Sorting by
Responses
-
Paginated response
Hide response attributes Show response attributes object
-
Messages schema
Hide data attributes Show data attributes object
-
Messages schema
Hide entity attributes Show entity attributes object
-
id
-
Company ID
-
Values are
staff_invitation,family_invitation, orcustom. -
Subject
-
Body
-
From name
-
From email
-
Values are
draft,pending, orsent. -
Sent at
-
Updated at
-
Attachments
-
-
Message stats schema
-
-
Pagination schema
-
-
Not authorized
GET
/v1/messages/
curl \
--request GET 'https://api.classmanager.io/v1/messages/'
Response examples (200)
{
"data": [
{
"entity": {
"id": "msg_123123123123",
"companyId": "co_123123123123",
"type": "staff_invitation",
"subject": "Happy Birthday",
"body": "Body",
"fromName": "John Doe",
"fromEmail": "sample@example.com",
"status": "draft",
"sentAt": "2024-06-12T09:39:49.000000Z",
"updatedAt": "2024-06-12T09:39:49.000000Z",
"attachments": [
"string"
]
},
"stats": {
"messageId": "msg_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"recipients": {
"count": 10
}
}
}
],
"pagination": {
"total": 15,
"count": 10,
"perPage": 10,
"currentPage": 1,
"totalPages": 2
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}