Skip to main content
POST
/
tools
/
string-utils
/
is-palindrome
Check Palindrome
curl --request POST \
  --url https://api.dirtroad.dev/tools/string-utils/is-palindrome \
  --header 'Content-Type: application/json' \
  --header 'X-Payment: <api-key>' \
  --data '{
  "str": "<string>",
  "strict": false
}'
{
  "str": "<string>",
  "prefix": "<string>",
  "caseSensitive": true,
  "result": true
}

Authorizations

X-Payment
string
header
required

x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization

Body

application/json
str
string
required
strict
boolean
default:false

If true, checks exact palindrome; if false, ignores case and non-alphanumeric characters

Response

Palindrome check result

str
string
prefix
string
caseSensitive
boolean
result
boolean