Greetings

List shared voicemail greetings

Retrieves a collection of greetings of shared voicemail.

GEThttp://127.0.0.1:8888/api/shared_voicemails/{id}/greetings
Path parameters
id*all of

The unique ID of shared voicemail.

Response

OK

Body
itemsarray of object
Request
const response = await fetch('http://127.0.0.1:8888/api/shared_voicemails/{id}/greetings', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "items": [
    {
      "id": {},
      "enabled": false,
      "file_name": "text",
      "file_size": 0,
      "file_url": "/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK"
    }
  ]
}

Create voicemail greeting for shared voicemail

Create voicemail greeting for shared voicemail.

POSThttp://127.0.0.1:8888/api/shared_voicemails/{id}/greetings
Path parameters
id*all of

The unique ID of shared voicemail.

Body
file_idall of

The unique ID of the file.

Response

OK

Body
idall of

The unique ID of greeting.

Request
const response = await fetch('http://127.0.0.1:8888/api/shared_voicemails/{id}/greetings', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": {}
}