v1

latestOpenAPI 3.1.02026-07-2414238909.1 KB

Analyse an SMS message

Analysing an SMS is useful when the user needs information about the message before actually sending it.

post/sms/analyze

Headers

Content-Typestring required

application/json

Authorizationstring required

Bearer {access_token}

Request body

fromstring required

The sender of the message. This can be a telephone number (numeric string with maximum length 16 characters) or an alphanumeric string (maximum length 11 characters). When you want to use a number, you have to enter it without the '+' before the country code (eg 447123123456).

bodystring required

The message you want to send.

tostring required

The destination phone number. Format with a '+' and country code e.g., +306948530920 (E.164 format).

Response

200

costnumber

Example response

{
  "bodyAnalysis": {
    "parts": 1,
    "characters": 58
  },
  "cost": 0.036
}