CreatorHero
CreatorHero API

Dashboard Restricted Words

Restricted words of the agency. When restricted words are turned on, messages sent through CreatorHero that contain one are blocked. The list has common words from CreatorHero, which can only be turned off or adjusted per agency, and the agency's own words. Matching ignores case. Requires the agency owner or a team member with the Admin role or higher, except for the message check.


Update restricted word

PUT
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words/{restrictedWordId}

Changes word and blockAllCombination of an own word. Common words are adjusted with the override endpoint.

Update restricted word › path Parameters

restrictedWordId
​integer · int64 · required

ID of the restricted word

Update restricted word › Request Body

Own restricted word to create or update
word
​string

The word; leading and trailing spaces are removed

blockAllCombination
​boolean

true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word

Update restricted word › Responses

Updated restricted word

Restricted word
id
​integer · int64

ID of the restricted word

word
​string

The word

createdAt
​string · date-time

Creation time (ISO-8601)

blockAllCombination
​boolean

true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word

common
​boolean

true for a common word from CreatorHero, false for an own word


Delete restricted word

DELETE
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words/{restrictedWordId}

Deletes an own word. Common words can only be turned off with the override endpoint.

Delete restricted word › path Parameters

restrictedWordId
​integer · int64 · required

ID of the restricted word

Delete restricted word › Responses

Deleted

No data returned

Adjust common restricted word

PUT
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words/{restrictedWordId}/override

Adjusts a common word for the agency: disabled true turns it off; overriddenBlockAllCombination sets its blockAllCombination (missing counts as false).

Adjust common restricted word › path Parameters

restrictedWordId
​integer · int64 · required

ID of the common restricted word

Adjust common restricted word › Request Body

Agency adjustment of a common restricted word
disabled
​boolean

true turns the word off for the agency

overriddenBlockAllCombination
​boolean

blockAllCombination of the word for the agency; missing = false

Adjust common restricted word › Responses

Saved

No data returned

List restricted words

GET
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words

Returns the common words and the agency's own words, sorted by word, with the agency's adjustments applied (disabled, blockAllCombination).

List restricted words › Responses

200

Restricted words

Restricted word with the agency's adjustments applied
id
​integer · int64

ID of the restricted word

word
​string

The word

blockAllCombination
​boolean

true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word

disabled
​boolean

true if the agency turned this common word off

common
​boolean

true for a common word from CreatorHero, false for an own word

createdAt
​string · date-time

Creation time (ISO-8601)


Add restricted word

POST
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words

Adds an own word (word is trimmed). blockAllCombination true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word.

Add restricted word › Request Body

Own restricted word to create or update
word
​string

The word; leading and trailing spaces are removed

blockAllCombination
​boolean

true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word

Add restricted word › Responses

Created restricted word

Restricted word
id
​integer · int64

ID of the restricted word

word
​string

The word

createdAt
​string · date-time

Creation time (ISO-8601)

blockAllCombination
​boolean

true: matches the word anywhere, also inside other words and across spaces and punctuation. false: matches it only as a whole word

common
​boolean

true for a common word from CreatorHero, false for an own word


Check message for restricted words

POST
https://backend.creatorhero.com
/dashboard/api/v1/restricted-words/check

Checks message against the agency's restricted words and, if turned on in the settings, against websites, emails, phone numbers and crypto wallets. Returns the first match, or an empty body when nothing matches or restricted words are turned off. Allowed for every team member.

Check message for restricted words › Request Body

Message to check for restricted words
message
​string

Message text

Check message for restricted words › Responses

200

First match, or empty body

Restricted word or pattern found in a message
restrictedWord
​string · required

The matched restricted word, or the matched text for a pattern

restrictionType
​RestrictionType · enum · required

What matched

Enum values:
Word
Email
Website
PhoneNumber
CryptoWallet
id
​integer · int64

ID of the matched restricted word; null for a pattern match