Get Global Voicemail Setting
Retrieve the global voicemail settings of a tenant.
Request URL
GET {base_url}/uc-cconfig/api/v1/voicemail/global-settings
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code Yes String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Details> | The global voicemail settings of the tenant. |
- Details
-
Parameter Type Description data Object<Global_Voicemail_Setting> The global voicemail settings.
- Global_Voicemail_Setting
-
Parameter Type Description allowCallerReviewMessage Boolean Whether the caller can play, save, or re-record their voicemail messages after recording. true: Enabledfalse: Disabled
globalDefaultGreetingEnabled Boolean Whether the global default voicemail greeting is enabled. true: Enabledfalse: Disabled
globalDefaultGreetingSelector String The type of greeting used as the global default voicemail greeting. GLOBAL_GREETING_DEFAULT: The system default built-in audio file is used.GLOBAL_GREETING_SPECIFIED: A custom prompt is used.
globalDefaultGreetingAudioId String The ID of custom audio file used as the global default greeting. maxGreetingPlayTime Integer The maximum playback duration of the voicemail greeting. Unit: Second
voicemailNumberEnabled Boolean Whether the voicemail access number is enabled. true: Enabledfalse: Disabled
voicemailNumber String The voicemail access number used to access voicemail messages.
Example
Request example
GET /uc-cconfig/api/v1/voicemail/global-settings HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MDY2NjQ5MSwiaWF0IjoxNzkwNjQ0ODkxLCJqdGkiOiI3NDM2MWEwZC1kNzJmLTRlZjctYjQ2Zi1mODEwYjRmNWQ0NWIiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.zyCrspAIuTTEggTUAc3cLDqZYlWrbPKq4sNau5m2YW3mGqemuufeRMzvneF-aDpLKxN8BzXL5zxeR0XPySoLqmz5WSBAjxWyev3mCLew8cMKArusR9rTRyMKRl-h_DfYj0fAWjOr498KZPKUYMLr0iXnJYzg45Lqwz2zntMLSCpDQhbHnrGDXIVGasY1pOI0cmm8PEpCYD0GsyOxccpyKFZ0pFMfmjYP2e9fnB3deEGPg01tfDTnMYP0AgfoyzMb-D1ULzhuS3YFjvkjpQoaQy0nLLTlW0aQXSG5gIkDTDrcAx07jsgNOOVxFllp2XgGoGPnhgvvvpzIWK82M1norQ
x-tenant-code: jint
Response example
HTTP/1.1 200 OK { "requestId": "8d08c5b50d8c8b7a2611f0bad1cf57e9", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "data": { "allowCallerReviewMessage": false, "globalDefaultGreetingEnabled": true, "globalDefaultGreetingSelector": "GLOBAL_GREETING_DEFAULT", "globalDefaultGreetingAudioId": "0", "maxGreetingPlayTime": 60, "voicemailNumberEnabled": false, "voicemailNumber": "" } } }