Skip to main content

Voicemail Messages

API lấy danh sách các tin nhắn voicemail.

curl -L -X GET 'https://{{base_url}}/v1/voicemail/message' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {{token}}'

Response trả về:

{
"data": [
{
"id": "aaaaaaaa-1111-2222-3333-eeeeeeee",
"created_at": "2021-08-27T11:13:44+07:00",
"caller_id_name": "0891234567",
"caller_id_number": "0891234567",
"duration": 7,
"extension": "101",
"download_url": "https://pbx01.tel4vn.com/v1/voicemail/message/aaaaaaaa-1111-2222-3333-eeeeeeee/download"
},
{
"id": "aaaaaaaa-2222-2222-3333-ffffffff",
"created_at": "2021-08-27T15:13:44+07:00",
"caller_id_name": "0891234567",
"caller_id_number": "0891234567",
"duration": 120,
"extension": "102",
"download_url": "https://pbx01.tel4vn.com/v1/voicemail/message/aaaaaaaa-2222-2222-3333-ffffffff/download"
}
],
"limit": 10,
"offset": 0,
"total": 10
}

HTTP Request

GET https://{{base_url}}/v1/voicemail/message

Query Parameters

ParameterDescriptionExample
limitSố lượng record trả về50
offsetVị trí bắt đầu khi query0
extensionTìm theo extension101