Additional Parameter
The param action will pass the custom parameter while getting the input from the caller. when connecting a caller to an agent, you might want to send the additional param like their display name to the agent's application so that they can have more information about the customer.
Prerequisites
Sign up for a free PIOPIY demo account.
Create your endpoint and add capacity.
Buy PIOPIY phone number.
Setup your webserver and map your POST method URL in answer URL.
Param action JSON
[{"action": "param","text": "{ Name=Akil, ID=8915726 }"}]
Properties
Property | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
text | string | Your custom parameters |
Note
The * marked property is mandatory.
Sample JSON Response
If the provided information is valid, your web server will get a sample response from PIOPIY Platform as given below
{"from": 440000000000,"to": 440000000001,"dtmf": "2","cmuuid": "41aa4bb1-d693-415e-82ce-bdf2e8814aeb""extra_params": '{ Name=Akil, ID=8915726 }'}
Properties
These are the list of properties and its description
Property | Type | Description |
---|---|---|
from | number | The number the call came from |
to | number | Your PIOPIY phone number |
dtmf | string | The digits entered during the call |
cmiuuid | string | A unique identifier of this call |
extra_params | string | Your customer parameters |
HTTP status codes
TeleCMI API platform represents the following status code to identity the errors.
Status code | Status code | Description |
---|---|---|
404 | Error | Invalid music filename |