Greetings

List voicemail greetings

Retrieves a collection of greetings available to certain user.

GEThttp://127.0.0.1:8888/api/users/{id}/greetings
Path parameters
id*string

The unique ID of the resource.

Example: "NzAwNTUxOTA5NzczMTQ4MTYw"
Response

OK

Body
itemsarray of object
Request
const response = await fetch('http://127.0.0.1:8888/api/users/{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

Create a voicemail greeting for user.

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

The unique ID of user.

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/users/{id}/greetings', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": {}
}