Retrieve moh server

GET /show
Retrieve moh server by it's unique ID.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The unique ID of virtual receptionists.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/virtual receptionists/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • key3

    object

    Show child attributes
  • key5

    object

    Show child attributes
  • key8

    object

    Show child attributes
  • call_transfer_filename

    string

  • urlactions

    object

    Show child attributes
  • key2

    object

    Show child attributes
  • id

    integer

    format : int64

  • prompt_filename

    string

  • key0

    object

    Show child attributes
  • key1

    object

    Show child attributes
  • key9

    object

    Show child attributes
  • call_transfer_metadata_id

    integer

    format : int64

  • language

    string

    Default Audio prompt file's language.
  • timeout

    object

    Show child attributes
  • call_transfer_fileid

    string

  • key6

    object

    Show child attributes
  • name

    string

    The name of virtual receptionist.
  • key4

    object

    Show child attributes
  • key7

    object

    Show child attributes
  • prompt_metadata_id

    integer

    format : int64

  • prompt_fileid

    string

  • failure

    object

    Show child attributes
  • gap_time

    integer

    Gap time between DTMF digits.
  • play_count

    integer

    format : uint32

  • extension_number

    string

Sample Response

                      
{}
                      
                    

Destroy virtual receptionists

POST /destroy
Destroy an virtual receptionists entry.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual receptionists/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation
400
Invalid virtual receptionists ID supplied.

Sample Response

                      
                      
                    

Update virtual receptionists

POST /update
Update virtual receptionists
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • language

    string

    required

    Default Audio prompt file's language.
  • key3

    object

    required

    Show child attributes
  • key5

    object

    required

    Show child attributes
  • key6

    object

    required

    Show child attributes
  • prompt_metadata_id

    integer

    required

    format : int64

  • key4

    object

    required

    Show child attributes
  • urlactions

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • name

    string

    required

    The name of virtual receptionist.
  • id

    integer

    required

    format : int64

  • timeout

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • key8

    object

    required

    Show child attributes
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • key0

    object

    required

    Show child attributes
  • key9

    object

    required

    Show child attributes
  • play_count

    integer

    required

    format : uint32

  • failure

    object

    required

    Show child attributes
  • key1

    object

    required

    Show child attributes
  • call_transfer_metadata_id

    integer

    required

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual receptionists/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation

Sample Response

                      
                      
                    

Create an virtual receptionists entry.

POST /create
Add a new virtual receptionists entry into system.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • language

    string

    required

    Default Audio prompt file's language.
  • key3

    object

    required

    Show child attributes
  • key5

    object

    required

    Show child attributes
  • key6

    object

    required

    Show child attributes
  • prompt_metadata_id

    integer

    required

    format : int64

  • key4

    object

    required

    Show child attributes
  • urlactions

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • name

    string

    required

    The name of virtual receptionist.
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • timeout

    object

    required

    Show child attributes
  • play_count

    integer

    required

    format : uint32

  • key8

    object

    required

    Show child attributes
  • key0

    object

    required

    Show child attributes
  • key9

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • failure

    object

    required

    Show child attributes
  • key1

    object

    required

    Show child attributes
  • call_transfer_metadata_id

    integer

    required

    format : int64

  • extension_number

    string

    required

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual receptionists/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Created virtual receptionists
application/json
  • id

    integer

    format : int64

Sample Response

                      
{}
                      
                    

Retrieve a collection of virtual receptionists

GET /list
Retrieve a collection of virtual receptionists
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.

    format : int32

  • pagesize

    integer

    required

    The size of paging.
  • sort_by

    string

    optional

    Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.

    enum : ['DEFAULT', 'OPTIONAL']

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/virtual receptionists/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • pagesize

    integer

  • count

    integer

  • pagination

    integer

  • virtual_receptionists

    array

    Show child attributes
  • sort_by

    string

Sample Response

                      
{
    "pagesize": 10,
    "count": 100,
    "pagination": 8,
    "sort_by": "DEFAULT"
}