Get Messages List
GET/messages
Retrieve a list of paginated messages.
Request
Query Parameters
Number of items to be displayed per page.
Page number for the requested data set.
Responses
- 200
- 401
- 500
Messages list retrieved successfully.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
status object
Object containing the status of the response.
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
The current page number of the requested data set.
The number of items to be displayed per page.
The total number of items in the entire data set.
messages object[]
The id of the message.
The destination number of the message.
The message content.
The date and time when the message will be sent.
The date and time when the message was created.
The date and time when the message was delivered.
The validity period of the message.
{
"status": {
"message": "Status Message",
"error_code": 200,
"errors": []
},
"current_page": 1,
"per_page": 10,
"total": 100,
"messages": [
{
"id": "1",
"dest_number": "628123456789",
"short_message": "Test Message",
"schedule_send_at": "2024-01-01 12:12:12",
"created_at": "2024-01-01 12:12:12",
"delivered_at": "2024-01-01 12:12:12",
"validity_period": 60
}
]
}
Unauthorized. Invalid token.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the status of the operation.
Http Error Code.
A list of error messages (empty for success).
{
"message": "Status Message",
"error_code": 200,
"errors": []
}