Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Moh server

Retrieve moh server

get

Retrieve moh server information.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
enabledbooleanOptional

Enable MOH service or not.

play_typestring · enumOptional

Set MOH personalized music by these modes:

  • DEFAULT_MUSIC:
  • RANDOM_MUSIC_PER_CALL:
  • RANDOM_MUSIC_PER_DAY:
Possible values:
get/moh_server
GET /api/moh_server HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "enabled": true,
  "play_type": "DEFAULT_MUSIC"
}

Update moh server

post

Update moh server

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
enabledbooleanOptional

Enable MOH service or not.

play_typestring · enumOptional

Set MOH personalized music by these modes:

  • DEFAULT_MUSIC:
  • RANDOM_MUSIC_PER_CALL:
  • RANDOM_MUSIC_PER_DAY:
Possible values:
Responses
200

OK

No content

post/moh_server
POST /api/moh_server HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "enabled": true,
  "play_type": "DEFAULT_MUSIC"
}

No content

Was this helpful?