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 audios
Retrieves audio messages sent to an assistant since a given timestamp. Optionally filters by sender. The receiver’s token is passed in the body.
POST
/
receive-audio
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
JWT Access Token of the receiver (assistant user).
Example:
"eyJ..."
Timestamp (UTC) from which to retrieve new media (YYYY-MM-DD HH:MM:SS).
Example:
"2024-01-01 00:00:00"
Optional: Filter media by a specific sender user ID.
Example:
201
Response
List of received audio messages.
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"
