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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to capitalize. Only the first letter is uppercased. |
Response
{
"status": "success"
}Ends with
Check if a string ends with a given suffix.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to check. |
suffix | string | Yes | The exact suffix to look for (case-sensitive). |
Response
{
"status": "success"
}Is valid email
Check if a value is a valid email address.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to validate as a phone number. |
region | string | No | Two-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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert to all lowercase letters. |
Response
{
"status": "success"
}Replace text
Replace occurrences of a pattern within a string.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The original text to search within. |
search | string | Yes | The text to find and replace (case-sensitive, replaces all occurrences). |
replace | string | Yes | The text to substitute in place of every match. |
Response
{
"status": "success"
}Split text
Split a string into a list using a delimiter.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to split into a list. |
delimiter | string | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to check. |
prefix | string | Yes | The exact prefix to look for (case-sensitive). |
Response
{
"status": "success"
}Text contains
Check if a string includes a given substring.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to search within. |
substring | string | Yes | The text to look for (case-sensitive). Returns true if found. |
Response
{
"status": "success"
}Text length
Get the number of characters in a string.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text string to measure. Returns the number of characters. |
Response
{
"status": "success"
}Title case
Capitalize the first letter of each word.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert. First letter of every word is uppercased. |
Response
{
"status": "success"
}Truncate text
Shorten text to a maximum number of characters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to shorten. |
length | number | Yes | Maximum number of characters to keep. |
ellipsis | string | No | Text 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
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert to all uppercase letters. |
Response
{
"status": "success"
}