---
title: "Analyse an SMS message"
method: POST
path: "/sms/analyze"
---

# Analyse an SMS message

`POST /sms/analyze`

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

## Headers

- `Content-Type` string, required
- `Authorization` string, required

## Request body

- object
  - `from` string, 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](/docs/numbers), you have to enter it without the '+' before the country code (eg 447123123456).
  - `body` string, required — The message you want to send.
  - `to` string, required — The destination phone number. Format with a '+' and country code e.g., +306948530920 (E.164 format).

## Response `200`

200

- object
  - `bodyAnalysis` object
    - `parts` integer
    - `unicode` boolean
    - `characters` integer
  - `cost` number

## Other responses

- `400` — 400

---

[API](https://skmtc.net/routee/apis/auth.md) · [All operations](https://skmtc.net/routee/apis/auth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/routee/auth/revisions/5cef04e8f7d8/schema)
