Submit a new service request.
When the request is accepted a number is reserved for this service.
Along with the service details each new request requires to specify service_number
The service_number object allow our customer to specify the "search rules" for the new service number easing the number selection process.
What follow is a series of examples on how tok use the automatic number allocation feature:
{
"service_number":
{
"country": "AU",
"search_type": "location",
"location": "LEVEL 2 150-152 Elizabeth St, 2000 NSW Australia",
"radius": 20
}
}{
"service_number":
{
"country": "AU",
"search_type": "location",
"lat": -33.865143,
"lng": 151.209900,
"radius": 20
}
}{
"service_number":
{
"country": "AU",
"search_type": "number",
"number": "61290081596"
}
}number can be either the number to match as close as possible or one of AVANSER's available service number chosen through Search Numbers service available for this API.
{
"service_number":
{
"country": "AU",
"search_type": "number_type",
"number_type": "MOBILE"
}
}{
"service_number":
{
"country": "AU",
"search_type": "szu",
"szu": "sydney"
}
}Transfer service allows our customer to transfer the Caller Party to the desired Answer Point
Voicemail service allows our customers to play a message to the Caller Party and record a message.
Message is stored along with the CDR data and is always available either in the Portal or using our WebAPI service.
Prompt service allows our customers to play a message to the Caller Party.
if defined sets the url for the Call-URI functionality, each call is reported to this url if configured.
If defined, each inbound SMS is sent to this URL using HTTP POST, with the parameters in the request body.
- Avanser Productionhttps://tapi.avanser.com/v1/requests
- AVANSER Mock Serverhttps://avanser.redocly.app/_mock/telco-api/references/requests
curl -i -X POST \
-u '<username>:<password>' \
https://tapi.avanser.com/v1/requests \
-H 'Content-Type: application/json' \
-d '{
"name": "TAPI Transfer EXAMPLE",
"custom_id": "tapi-transfer-example-1",
"service_number": {
"country": "AU",
"search_type": "number_type",
"number_type": "MOBILE"
},
"service": {
"type": "transfer",
"answer_point_name": "TAPI answer point EXAMPLE #1",
"answer_point": "61420123123",
"call_whisper": "https://example.tld/audio/call_whisper.wav",
"voicemail": "https://example.tld/audio/voicemail.wav",
"record_call": false,
"transcription": {
"transcribe_call": true,
"enable_pci_redaction": true,
"enable_pii_redaction": true
},
"call_reporting": {
"report": "none"
}
},
"call_uri": "http://example.tld/debug.php?call-uri",
"sms_forward_uri": "http://example.tld/debug.php?sms_forward_uri",
"callback_uri": "http://example.tld/debug.php?callback_uri"
}'{ "@transaction": { "id": "c9220015e2f48bc7cf4b38186a7b2025", "account-id": "5995", "request": { … } }, "response": { "message": "Success", "code": 200, "request_id": "c9220015e2f48bc7cf4b38186a7b2025", "service_number": "6129008596" } }