CreatorHero
CreatorHero API

Scripts of a creator: saved chat messages (text, price, media) grouped into categories. Requires access to the creator's OnlyFans profile and permission to modify the creator's settings, unless an endpoint says otherwise.


Get script

GET
https://backend.creatorhero.com
/dashboard/api/v1/scripts/{scriptId}

Returns one script of the creator with its message.

Get script › path Parameters

scriptId
​integer · int32 · required

ID of the script

Get script › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Get script › Responses

Script with its message

Script with its message
​ScriptDto

The script

​MessageDto

Message of the script


Update script

PUT
https://backend.creatorhero.com
/dashboard/api/v1/scripts/{scriptId}

Sets the script's name, categoryId and message. A categoryId that is null, 0 or of a category the creator does not have moves the script to Uncategorized. Omit message to keep the current message; if sent, message.text is required.

Update script › path Parameters

scriptId
​integer · int32 · required

ID of the script

Update script › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Update script › Request Body

Script to create or update
name
​string

Name of the script, shorter than 256 characters

​MessageDto

Message of the script; text is required

categoryId
​integer · int32

ID of the category; 0 or a category the creator does not have means Uncategorized

Update script › Responses

Script updated

No data returned

Delete script

DELETE
https://backend.creatorhero.com
/dashboard/api/v1/scripts/{scriptId}

Deletes the script. Also succeeds when the creator has no script with this ID.

Delete script › path Parameters

scriptId
​integer · int32 · required

ID of the script

Delete script › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Delete script › Responses

200

Script deleted

No data returned

List scripts

GET
https://backend.creatorhero.com
/dashboard/api/v1/scripts

Returns all script categories of the creator in display order, each with its scripts sorted by orderNumber. The built-in Uncategorized category (ID 0) is always last. scripts is null for a category without scripts.

List scripts › query Parameters

creatorId
​integer · int64 · required

ID of the creator

List scripts › Responses

200

Categories with their scripts

Script category with its scripts
​ScriptCategoryDto

The category

​ScriptWithMessageDto[]

Scripts sorted by orderNumber; null when there are none


Create script

POST
https://backend.creatorhero.com
/dashboard/api/v1/scripts

Body: name (required, shorter than 256 characters), categoryId (required) and message with a non-null text. A categoryId of 0 or of a category the creator does not have puts the script into Uncategorized. The new script is placed after the existing ones.

Create script › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Create script › Request Body

Script to create or update
name
​string

Name of the script, shorter than 256 characters

​MessageDto

Message of the script; text is required

categoryId
​integer · int32

ID of the category; 0 or a category the creator does not have means Uncategorized

Create script › Responses

Script created

No data returned

Move and reorder scripts

POST
https://backend.creatorhero.com
/dashboard/api/v1/scripts/{scriptId}/move

Body: object mapping a category ID to the ordered script IDs of that category, e.g. {"0": [12, 15], "7": [3]}; 0 is Uncategorized. Script scriptId moves to the category whose list contains it, or to Uncategorized if none does or the category is not the creator's. Scripts in the lists get the order of the lists; other scripts of the listed categories go to the end.

Move and reorder scripts › path Parameters

scriptId
​integer · int32 · required

ID of the script to move

Move and reorder scripts › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Move and reorder scripts › Request Body

​integer[]

Move and reorder scripts › Responses

Script moved

No data returned

Import scripts

POST
https://backend.creatorhero.com
/dashboard/api/v1/scripts/import

Creates scripts from CSV rows sent as JSON: entries holds one object per row with the keys Name, Message, Fallback, Price, Category and Script Order. Name, Message, Category and Script Order are required. Scripts are created in Script Order. Each category name creates a new category, with (1), (2), ... appended if the name is taken; Uncategorized puts scripts into the built-in category.

Requires access to the creator; no specific permission needed.

Import scripts › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Import scripts › Request Body

Scripts to import, one entry per CSV row
​ScriptEntry[] · minItems: 1 · required

CSV rows; must not be empty

Import scripts › Responses

Scripts imported

No data returned

Copy scripts to other creators

POST
https://backend.creatorhero.com
/dashboard/api/v1/scripts/copy

Copies scripts of creatorId to every creator in targetCreatorIds. Each entry of folders names a source categoryId and the scriptIds to copy from it. A category is created anew on every target, with (1), (2), ... appended if the name is taken; categoryId 0 copies into Uncategorized. Copies keep the text and fallback but have price 0 and no media. Inactive or deleted target creators and scripts that are not the source creator's are skipped.

Requires permission to modify the source creator's settings.

Copy scripts to other creators › query Parameters

creatorId
​integer · int64 · required

ID of the source creator

Copy scripts to other creators › Request Body

Scripts to copy to other creators
targetCreatorIds
​integer[]

IDs of the creators to copy to

​CopyingScriptFolder[]

Source categories with the scripts to copy from each

Copy scripts to other creators › Responses

200

Scripts copied

No data returned

List scripts sent to a fan

GET
https://backend.creatorhero.com
/dashboard/api/v1/scripts/creator/{creatorId}/fan/{fanId}

IDs of the creator's scripts used in messages sent to the fan from CreatorHero. Can include IDs of scripts deleted since. Empty when no script was sent to this fan.

List scripts sent to a fan › path Parameters

creatorId
​integer · int64 · required

ID of the creator

fanId
​integer · int64 · required

OnlyFans user ID of the fan

List scripts sent to a fan › Responses

200

Script IDs

​integer[]