# How a text is counted by the carrier

`POST /contact-centre/measure` · Rivier · inbox

How a text is counted by the carrier: characters, encoding (GSM-7 or UCS-2) and the number of parts it becomes.

- Scope: inbox:write
- Mcp: rivier_cc_measure
- Graphql: Mutation.inboxContactCentreMeasureCreate
- Sdk: desk.measure
- Cli: desk measure

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 4000
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/contact-centre/measure' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "string"
}'
```
