channels
viber
viber-business-messages
viber-template-management

Get Viber template

Retrieve details of a specific Viber template by its ID and associated sender.

get/viber/1/senders/{sender}/templates/{templateId}

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Path parameters

senderstring required

Sender id.

templateIdstring required

Id of existing template.

Response

OK

templateIdstring

Unique identifier of the template.

versionstring

Template version number.

senderstring

Sender for which the template is registered.

createdAtinteger

Unix timestamp in milliseconds when the template was created.

category'OTP' | 'TRANSACTIONAL'

Business category of the template, used for classification and approval routing.

status'PENDING' | 'APPROVED' | 'DECLINED'

Current approval status of the template in the review process.

lastModifiedinteger

Unix timestamp in milliseconds when the template was last modified.

namestring

Optional human-readable name for the template to help with identification.

Example response

{
  "templateId": "00000000-0000-0000-0000-000000000000",
  "version": "1",
  "sender": "CompanyName",
  "createdAt": 1677628800000,
  "category": "TRANSACTIONAL",
  "status": "APPROVED",
  "lastModified": 1677628800000,
  "params": [
    {
      "type": "TEXT",
      "name": "orderId",
      "example": "ORD-12345"
    }
  ],
  "body": [
    {
      "language": "en",
      "template": "Your order {{orderId}} has been confirmed."
    }
  ],
  "name": "Account Balance Notification"
}

Changes

No recorded changes to this operation across all 1 revision of this API.