platform
2fa
2fa-configuration
manage-message-templates

Get 2FA message template

Get a single 2FA message template from an application to see its configuration details.

get/2fa/2/applications/{appId}/messages/{msgId}

Request

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

Path parameters

appIdstring required

ID of application for which requested message was created.

msgIdstring required

Requested message ID.

Response

successful response

applicationIdstring

The ID of the application that represents your service (e.g. 2FA for login, 2FA for changing the password, etc.) for which the requested message has been created.

emailTemplateIdinteger

Email template ID that should reference a previously created Email template. This field is present only for Email message templates.

fromstring

The sender of the 2FA message, an email address with an optional sender name (e.g. company@example.com or Jane Smith <jane.smith@somecompany.com>). This field is present only for Email message templates.

landingPageIdstring

Opt out landing page ID that should reference a previously created landing page template. This field is present only for Email message templates.

languagestring

Language code which message is written in. This is used when sending text-to-speech messages. More about Text-to-speech functionality and supported TTS languages can be found here. If not set, default language is English [en]. If voice is not set, then default voice for that specific language is used. In the case of English language, the voice is [Joanna].

messageIdstring

The ID of the message template (message body with the PIN placeholder) that is sent to the recipient.

messageTextstring

Text of a message that will be sent. Message text must contain pinPlaceholder.

pinLengthinteger

PIN code length.

pinPlaceholderstring

The PIN code placeholder that will be replaced with a generated PIN code.

pinType'NUMERIC' | 'ALPHA' | 'HEX' | 'ALPHANUMERIC'
repeatDTMFstring

In case PIN message is sent by Voice, DTMF code will enable replaying the message.

senderIdstring

The sender of the 2FA message (Example: CompanyName).

speechRatenumber double

In case PIN message is sent by Voice, the speed of speech can be set for the message. Supported range is from 0.5 to 2.

voiceNamestring

Defines the voice that will be used for the chosen language (example: Joanna). For each supported language, we may offer different voices (learn more here). You can use this method to retrieve all voices for the given language. If not defined, it will default to the standard voice for the selected language (if available). If the standard voice is not available, the request will fail. To avoid that, you can choose one of the neural voices (charges will apply).

Changes

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