Create an Application
Changed onCreates a reusable voice and messaging routing application in the account. The new Application also becomes an addressable cXML Application. The cXML Applications API manages existing applications but does not create them, so create Applications here.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice or Messaging or Fax.
Learn more about API scopes.
Request
- Base URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
- URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Applications
- AuthHTTP basic
Path parameters
Universal Unique Identifier.
The Account ID that has the Application.
Request body application/x-www-form-urlencoded
Example request
{
"FriendlyName": "My Friendly Name",
"VoiceUrl": "http://example.com",
"VoiceMethod": "POST",
"VoiceFallbackUrl": "http://example.com",
"VoiceFallbackMethod": "POST",
"StatusCallback": "http://example.com",
"StatusCallbackMethod": "POST",
"SmsUrl": "http://example.com",
"SmsMethod": "POST",
"SmsFallbackUrl": "http://www.example.com/sms-fallback",
"SmsFallbackMethod": "POST",
"SmsStatusCallback": "http://www.example.com/sms-status-callback",
"SmsStatusCallbackMethod": "POST"
}Response
Response containing a newly created application.
Example response
{
"api_version": "2010-04-01",
"date_created": "Sat, 15 Sept 2018 10:00:00 +0000",
"date_updated": "Sat, 16 Sept 2018 10:00:00 +0000",
"friendly_name": "My Friendly Name",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Applications/b3877c40-da60-4998-90ad-b792e98472af.json",
"voice_url": "http://example.com",
"voice_method": "POST",
"voice_fallback_url": "http://example.com",
"voice_fallback_method": "POST",
"status_callback": "http://example.com",
"status_callback_method": "POST",
"sms_url": "http://example.com",
"sms_method": "POST",
"sms_fallback_url": "http://www.example.com/sms-fallback",
"sms_fallback_method": "POST",
"sms_status_callback": "http://www.example.com/sms-status-callback",
"sms_status_callback_method": "POST",
"message_status_callback": "http://www.example.com/sms-status-callback"
}Changes
- breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking
- breaking
added 'unevaluatedProperties' constraint to the request body
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- breaking