Application is a set of Answer, Hangup, and Message URLs that help you control your incoming calls and messages.
API Endpoint
The Application Object
Attributes
string
Unique identifier for the application.
string
A friendly name for your Plivo application.
string
URL requested when an incoming call is received. Must return valid Plivo XML.
string
HTTP method for the answer_url. Values:
GET or POST.string
URL notified when the call hangs up.
string
HTTP method for the hangup_url.
string
URL requested when answer_url fails or returns invalid XML.
string
HTTP method for the fallback_answer_url.
string
URL notified when an inbound SMS is received.
string
HTTP method for the message_url.
boolean
Whether this is the default app.
boolean
Whether the application is enabled.
boolean
Whether the app can be called from external SIP services.
string
SIP URI of the application.
string
SIP authentication mode for inbound calls to the application. Values:
ip_acl, credential, ip_acl_and_credential, or "" (empty, no authentication). Inbound auth applies only when the SIP INVITE Request-URI is sip:{app_id}@app.plivo.com. Changing to a mode that does not use a credential or IP ACL automatically clears the corresponding credential_uuid / ip_acl_uuid on the application (e.g., setting to ip_acl clears any previously set credential_uuid). See SIP Authentication.string
UUID (36 characters) of the IP Access Control List assigned to this application. Required when
sip_auth_type is ip_acl or ip_acl_and_credential. Create via SIP Authentication API.string
UUID (36 characters) of the SIP credential assigned to this application. Required when
sip_auth_type is credential or ip_acl_and_credential. Create via SIP Authentication API.string
Subaccount associated with the application. Null if main account.
boolean
Whether incoming message content is logged. Default:
true.string
URI of the application resource.
Example Object
Answer URL Parameters
When a call is received, Plivo sends these parameters to your answer_url:Hangup URL Parameters
Message URL Parameters
Create an Application
Creates a new application.Arguments
string
required
Application name. Allowed: alphanumeric, hyphen (-), underscore (_).
string
required
URL fetched when a call executes this application.
string
HTTP method for answer_url. Default:
POST.string
URL notified when call hangs up. Default: answer_url.
string
HTTP method for hangup_url. Default:
POST.string
Fallback URL if answer_url fails.
string
HTTP method for fallback_answer_url. Default:
POST.string
URL notified for inbound messages.
string
HTTP method for message_url. Default:
POST.boolean
Make this the default app for new numbers.
boolean
Make this the default app for new endpoints.
string
Subaccount ID to associate with this application.
boolean
Log incoming message content. Default:
true.Example
Response
string
Status of the request. Returns
created on a successful creation.string
Unique identifier for the application.
string
Unique identifier for the API request.
Retrieve an Application
Get details of a specific application.Arguments
No arguments required.
Example
Response
string
HTTP method for the answer_url. Values:
GET or POST.string
URL requested when an incoming call is received. Must return valid Plivo XML.
string
Unique identifier for the application.
string
A friendly name for your Plivo application.
boolean
Whether this is the default app.
boolean
Whether the application is enabled.
string
URL requested when answer_url fails or returns invalid XML.
string
HTTP method for the fallback_answer_url.
string
HTTP method for the hangup_url.
string
URL notified when the call hangs up.
string
HTTP method for the message_url.
string
URL notified when an inbound SMS is received.
boolean
Whether the app can be called from external SIP services.
string
URI of the application resource.
string
SIP URI of the application.
string
Subaccount associated with the application. Null if main account.
boolean
Whether incoming message content is logged. Default:
true.List All Applications
Returns all applications sorted by creation date.Arguments
string
Filter by subaccount ID.
string
Filter by app name prefix.
integer
Results per page. Maximum 20.
integer
Pagination offset.
Example
Response
string
Unique identifier for the API request.
object
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching applications).array
Array of application objects — see The Application Object.
Update an Application
Modify an existing application.Arguments
string
URL fetched when a call executes this application.
string
HTTP method for answer_url.
string
URL notified when call hangs up.
string
HTTP method for hangup_url.
string
Fallback URL if answer_url fails.
string
HTTP method for fallback_answer_url.
string
URL notified for inbound messages.
string
HTTP method for message_url.
boolean
Make this the default app for new numbers.
boolean
Make this the default app for new endpoints.
string
Subaccount ID to associate.
boolean
Log incoming message content.
string
SIP authentication mode for inbound calls. Values:
ip_acl, credential, ip_acl_and_credential, or "" (empty to disable). See SIP Authentication.string
UUID of the IP Access Control List to assign. Required when
sip_auth_type includes ip_acl. Create one via the SIP Authentication API.string
UUID of the SIP credential to assign. Required when
sip_auth_type includes credential. Create one via the SIP Authentication API.You cannot delete a credential or IP ACL that is currently assigned to an application. Remove the assignment first by setting
sip_auth_type to empty.Example
Response
string
Status of the request. Returns
changed on a successful update.string
Unique identifier for the API request.
Delete an Application
Permanently deletes an application.Arguments
boolean
Delete associated endpoints. Default:
true.string
App ID to reassign endpoints to when cascade is
false.