Greetings

List voicemail greetings

Retrieves a collection of greetings available to certain user.

get

/users/{id}/greetings

Authorizations
Path parameters
idstringrequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/users/{id}/greetings' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "items": [
    {
      "enabled": true,
      "file_name": "text",
      "file_size": 0,
      "file_url": "/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK",
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
    }
  ]
}

Create voicemail greeting

Create a voicemail greeting for user.

post

/users/{id}/greetings

Authorizations
Path parameters
idall ofrequired

The unique ID of user.

The unique ID of the resource.

Body
file_idall of

The unique ID of the file.

The unique ID of the resource.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/users/{id}/greetings' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "file_id": "NzAwNTUxOTA5NzczMTQ4MTYw"
  }'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Was this helpful?