Skip to main content
GET
/
v1
/
format
/
truncate
Format Truncate
curl --request GET \
  --url https://api.example.com/v1/format/truncate \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

text
string
required

Text to truncate

length
integer
default:50

Maximum length

Required range: x >= 1
suffix
string
default:...

Suffix to add when truncated

Response

Successful Response