Application API

Overview

Plum offers eight services for its Application REST API:

Authentication

Most likely, users will be able to use built-in HTTP Basic Authentication, depending on the HTTP libraries available in the programming language they opt to use.

Examples of this for each Method are listed below.

Get ASR Value

GET https://hosting.vxml.sharpencx.com/ws/application/getASR/{phone_number}

Returns ASR value currently set to phone number provided.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Accept

string

application/xml, application/json

Sample Request:

Get TTS Value

GET https://hosting.vxml.sharpencx.com/ws/application/getTTS/{phone_number}

Returns TTS value currently set to phone number provided.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Accept

string

application/xml, application/json

Sample Request:

Get URL Value

GET https://hosting.vxml.sharpencx.com/ws/application/getURL/{phone_number}

Returns URL value currently set to phone number provided.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Accept

string

application/xml, application/json

Sample Request:

Get ASR Options

GET https://hosting.vxml.sharpencx.com/ws/application/getOptionsASR

Returns all currently available ASR options.

Headers

Name
Type
Description

Accept

string

application/xml, application/json

Sample Request:

Get TTS Options

GET https://hosting.vxml.sharpencx.com/ws/application/getOptionsTTS

Returns all currently available TTS options.

Headers

Name
Type
Description

Accept

string

application/xml, application/json

Sample Request:

Set ASR Value

POST https://hosting.vxml.sharpencx.com/ws/application/setASR/{phone_number}

Sets the ASR of the given phone number to the provided ASR value.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Content-type

string

multipart/form-data

Accept

string

application/xml, applicaton/json

Request Body

Name
Type
Description

asr

string

ASR value to be set

Sample Request:

Set TTS Value

POST https://hosting.vxml.sharpencx.com/ws/application/setTTS/{phone_number}

Sets the TTS of the given phone number to the TTS value provided.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Content-type

string

multipart/form-data

Accept

string

application/xml, application/json

Request Body

Name
Type
Description

tts

string

TTS value to be set

Sample Request:

Set URL Value

POST https://hosting.vxml.sharpencx.com/ws/application/setURL/{phone_number}

Sets the URL of the given phone number to the provided URL value.

Path Parameters

Name
Type
Description

phone_number

string

10 digit phone number Ex. 3332221111

Headers

Name
Type
Description

Content-type

string

multipart/form-data

Accept

string

application/xml, application/json

Request Body

Name
Type
Description

url

string

URL value to be set

Sample Request:

Last updated