Voicemails
Manage voicemail functions.
Retrieve a collection of voicemails.
Use the filter
query parameter to retrieve just a subset of a collection.
Use the search
query parameter to restrict the results of a request to match a search criterion.
Use the orderby
query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip
query parameter to set the number of items to skip at the start of a collection.
0
Use the top
query parameter to specify the page size of the result set.
100
GET /api/voicemails HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"sender": "text",
"created_at": "2017-07-21T17:32:28Z",
"duration": 1,
"status": "READ",
"file_name": "text",
"file_size": 0,
"file_url": "/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK"
}
]
}
Retrieve voicemail information.
The unique ID of voicemail.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
GET /api/voicemails/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"sender": "text",
"created_at": "2017-07-21T17:32:28Z",
"duration": 1,
"status": "READ",
"file_name": "text",
"file_size": 0,
"file_url": "/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK"
}
Update voicemail status to read
The unique ID of voicemail.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
POST /api/voicemails/{id}/set_read HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Update voicemail status to unread
The unique ID of voicemail.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
POST /api/voicemails/{id}/set_unread HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The unique ID of voicemail.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
POST /api/voicemails/{id}/destroy HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content