curl --request POST \
--url https://api.messaging.phonovation.com/sms/1/preview \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"text": "Let's see how many characters remain unused in this message."
}
EOF{
"originalText": "Let's see how many characters remain unused in this message.",
"previews": [
{
"textPreview": "Let's see how many characters remain unused in this message.",
"messageCount": 1,
"charactersRemaining": 100,
"configuration": {}
}
]
}Preview SMS message
Avoid unpleasant surprises and check how different message configurations will affect your message text, number of characters and message parts.
Required scope: Enable one of: sms:manage.
curl --request POST \
--url https://api.messaging.phonovation.com/sms/1/preview \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"text": "Let's see how many characters remain unused in this message."
}
EOF{
"originalText": "Let's see how many characters remain unused in this message.",
"previews": [
{
"textPreview": "Let's see how many characters remain unused in this message.",
"messageCount": 1,
"charactersRemaining": 100,
"configuration": {}
}
]
}Authorizations
This is the most secure authorization type and the one with the most flexibility.
API keys can be generated by calling the dedicated API method. Furthermore, API keys can have a limited scope and cover only some API methods. Lastly, they can be revoked at any time. This range of possibilities makes API keys well suited for separating the API access rights across multiple applications or use cases. Finally, the loss of an API key is easily manageable.
You can manage your API keys from GUI, or programmatically with dedicated API.
API key Authorization header example:
Authorization: App 003026bbc133714df1834b8638bb496e-8f4b3d9a-e931-478d-a994-28a725159ab9
Body
Content of the message being sent.
1Language code for the correct character set. AUTODETECT lets the platform select the character set based on message content only for supported languages.
^(TR|ES|PT|AUTODETECT)$The transliteration of your sent message from one script to another. Transliteration is used to replace characters which are not recognized as part of your defaulted alphabet. ALL means that the transliteration process will recognize all supported languages.
^(TURKISH|GREEK|CYRILLIC|SERBIAN_CYRILLIC|BULGARIAN_CYRILLIC|CENTRAL_EUROPEAN|BALTIC|PORTUGUESE|COLOMBIAN|NON_UNICODE|NONE|ALL)$