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
Unique identifier for the application.
A friendly name for your Plivo application.
URL requested when an incoming call is received. Must return valid Plivo XML.
HTTP method for the answer_url. Values:
GET or POST.URL notified when the call hangs up.
HTTP method for the hangup_url.
URL requested when answer_url fails or returns invalid XML.
HTTP method for the fallback_answer_url.
URL notified when an inbound SMS is received.
HTTP method for the message_url.
Whether this is the default app.
Whether the application is enabled.
Whether the app can be called from external SIP services.
SIP URI of the application.
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.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.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.Subaccount associated with the application. Null if main account.
Whether incoming message content is logged. Default:
true.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
Application name. Allowed: alphanumeric, hyphen (-), underscore (_).
URL fetched when a call executes this application.
HTTP method for answer_url. Default:
POST.URL notified when call hangs up. Default: answer_url.
HTTP method for hangup_url. Default:
POST.Fallback URL if answer_url fails.
HTTP method for fallback_answer_url. Default:
POST.URL notified for inbound messages.
HTTP method for message_url. Default:
POST.Make this the default app for new numbers.
Make this the default app for new endpoints.
Subaccount ID to associate with this application.
Log incoming message content. Default:
true.Example
Response
Status of the request. Returns
created on a successful creation.Unique identifier for the application.
Unique identifier for the API request.
Retrieve an Application
Get details of a specific application.Arguments
No arguments required.
Example
Response
HTTP method for the answer_url. Values:
GET or POST.URL requested when an incoming call is received. Must return valid Plivo XML.
Unique identifier for the application.
A friendly name for your Plivo application.
Whether this is the default app.
Whether the application is enabled.
URL requested when answer_url fails or returns invalid XML.
HTTP method for the fallback_answer_url.
HTTP method for the hangup_url.
URL notified when the call hangs up.
HTTP method for the message_url.
URL notified when an inbound SMS is received.
Whether the app can be called from external SIP services.
URI of the application resource.
SIP URI of the application.
Subaccount associated with the application. Null if main account.
Whether incoming message content is logged. Default:
true.List All Applications
Returns all applications sorted by creation date.Arguments
Filter by subaccount ID.
Filter by app name prefix.
Results per page. Maximum 20.
Pagination offset.
Example
Response
Unique identifier for the API request.
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching applications).Array of application objects — see The Application Object.
Update an Application
Modify an existing application.Arguments
URL fetched when a call executes this application.
HTTP method for answer_url.
URL notified when call hangs up.
HTTP method for hangup_url.
Fallback URL if answer_url fails.
HTTP method for fallback_answer_url.
URL notified for inbound messages.
HTTP method for message_url.
Make this the default app for new numbers.
Make this the default app for new endpoints.
Subaccount ID to associate.
Log incoming message content.
SIP authentication mode for inbound calls. Values:
ip_acl, credential, ip_acl_and_credential, or "" (empty to disable). See SIP Authentication.UUID of the IP Access Control List to assign. Required when
sip_auth_type includes ip_acl. Create one via the SIP Authentication API.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
Status of the request. Returns
changed on a successful update.Unique identifier for the API request.
Delete an Application
Permanently deletes an application.Arguments
Delete associated endpoints. Default:
true.App ID to reassign endpoints to when cascade is
false.