Skip to content

Create or Update

Request

Templates support Call Tags

Security
HTTP_BASIC
Query
namestringrequired

desired template name

countrystringrequired

country this template is for

typestring

Type of template

Default:"email"
Enum:"email""sms"
Example:type=email
Bodytext/html
string
curl -i -X POST \
  -u '<username>:<password>' \
  'https://tapi.avanser.com/v1/templates?name=string&country=string&type=email' \
  -H 'Content-Type: text/html' \
  -d '<html>
      <body>
          New Call for your service `__adname__` (`__bnum__`) at `__dateTime__`.
  
          We tried to forward the call to `__outnum__`.
  
          Download the voicemail at `__LINK__`
      </body>
  </html>
  '

Responses

Successful response

Bodyapplication/json
@transactionobject
responseobject
Response
{ "@transaction": { "id": "c9220015e2f48bc7cf4b38186a7b2025", "account-id": "5995", "request": { … } }, "response": { "message": "Success", "code": 200 } }