Error
A valid request URL is required to generate request examples[
{
"media_id": 1,
"sender_id": 201,
"receiver_id": 101,
"media_path": "http://example.com/media/image1.jpg",
"sent_at": "2024-06-21 15:30:00",
"sender_name": "Mobile User One",
"sender_image": "http://example.com/mobile_user_image.jpg",
"type": "image"
}
]{
"status": "error",
"message": "Database connection failed"
}{
"status": "error",
"message": "Database connection failed"
}Media
Receive media (mobile)
Retrieves a paginated list of images and audio messages sent to or from the authenticated mobile app user, sorted by recency. The user’s token is passed in the body.
POST
/
receive-media-mobile
Error
A valid request URL is required to generate request examples[
{
"media_id": 1,
"sender_id": 201,
"receiver_id": 101,
"media_path": "http://example.com/media/image1.jpg",
"sent_at": "2024-06-21 15:30:00",
"sender_name": "Mobile User One",
"sender_image": "http://example.com/mobile_user_image.jpg",
"type": "image"
}
]{
"status": "error",
"message": "Database connection failed"
}{
"status": "error",
"message": "Database connection failed"
}Body
application/json
Response
List of received media (images and audio).
Example:
1
Example:
201
Example:
101
Example:
"http://example.com/media/image1.jpg"
Local time (Europe/Madrid).
Example:
"2024-06-21 15:30:00"
Example:
"Mobile User One"
Example:
"http://example.com/mobile_user_image.jpg"
Available options:
audio, image Example:
"image"
