Get Message by ID
GET/messages/:id
Retrieve details of a specific message by providing its ID.
Request
Path Parameters
The ID of the message to retrieve.
Responses
- 200
- 401
- 403
- 404
- 500
Message retrieved successfully.
- application/json
- Schema
- Example (from schema)
Schema
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.
{
"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": []
}
Forbidden. User is not authorized to access the message.
- 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": []
}
Message not found.
- 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": []
}