Lodol Docs

Text by Lodol

API actions for the Text by Lodol integration.

Text by Lodol

Manipulate text using Lodol's built-in Text provider.


Capitalize

Capitalize the first letter of a string.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to capitalize. Only the first letter is uppercased.

Response

{
  "status": "success"
}

Ends with

Check if a string ends with a given suffix.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to check.
suffixstringYesThe exact suffix to look for (case-sensitive).

Response

{
  "status": "success"
}

Is valid email

Check if a value is a valid email address.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to validate. Returns true if it looks like a valid email address.

Response

{
  "status": "success"
}

Is valid phone number

Check if a value is a valid phone number.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to validate as a phone number.
regionstringNoTwo-letter country code (e.g. US, GB). Defaults to US.

Response

{
  "status": "success"
}

Is valid URL

Check if a value is a valid URL.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to validate. Returns true if it is a well-formed URL (e.g. https://example.com).

Response

{
  "status": "success"
}

To lowercase

Convert all characters in text to lowercase.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to convert to all lowercase letters.

Response

{
  "status": "success"
}

Replace text

Replace occurrences of a pattern within a string.

Parameters

ParameterTypeRequiredDescription
textstringYesThe original text to search within.
searchstringYesThe text to find and replace (case-sensitive, replaces all occurrences).
replacestringYesThe text to substitute in place of every match.

Response

{
  "status": "success"
}

Split text

Split a string into a list using a delimiter.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to split into a list.
delimiterstringYesThe character or string to split on (e.g. a comma or space).

Response

{
  "status": "success"
}

Starts with

Check if a string begins with a given prefix.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to check.
prefixstringYesThe exact prefix to look for (case-sensitive).

Response

{
  "status": "success"
}

Text contains

Check if a string includes a given substring.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to search within.
substringstringYesThe text to look for (case-sensitive). Returns true if found.

Response

{
  "status": "success"
}

Text length

Get the number of characters in a string.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text string to measure. Returns the number of characters.

Response

{
  "status": "success"
}

Title case

Capitalize the first letter of each word.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to convert. First letter of every word is uppercased.

Response

{
  "status": "success"
}

Truncate text

Shorten text to a maximum number of characters.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to shorten.
lengthnumberYesMaximum number of characters to keep.
ellipsisstringNoText appended when truncated (defaults to "…"). Pass an empty string for no suffix.

Response

{
  "status": "success"
}

To uppercase

Convert all characters in text to uppercase.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to convert to all uppercase letters.

Response

{
  "status": "success"
}

On this page