Tropo is part of CiscoLearn More

POST /applications

Creates a new application.

Request

POST https://api.tropo.com/v1/applications/

Headers

This request must be authenticated with HTTP Basic authentication using your Tropo account credentials. Setting your content-type to application/json is required.

Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Content-Type: application/json

Body

  {
    "name": "Naughy or Nice",
    "voiceUrl": "http://hosting.tropo.com/8765/www/naughtynice.php",
    "messagingUrl": "http://hosting.tropo.com/8765/www/naughtynice.php",
    "environment": "https://api.tropo.com/rest/v1/environments/410",
    "apiType": "scripting"
  }

Fields

name
The name of the application.
voiceUrl
The URL that powers voice calls for your application. Either voiceUrl or messagingUrl must be set.
messagingUrl
The URL that powers SMS/messaging calls for your application. Either voiceUrl or messagingUrl must be set.
environment
A URL to the Environment this application is running under, indicating if it's Production or Development (or possibly a special environment). As a convenience, you may include just the Environment ID instead of the full Environment resource URL if you wish.
apiType
Either scripting or webapi, indicates which type of application this is. Case-insensitive, defaults to "scripting".

Response

Example

Returns the URL to the newly created Application Resource.

{
    "href": "https://api.tropo.com/rest/v1/applications/5068415"
}