Scripts
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
Returns one script of the creator with its message.
path Parameters
scriptIdID of the script
query Parameters
creatorIdID of the creator
Get script › Responses
Script with its message
The script
Message of the script
Update script
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.
path Parameters
scriptIdID of the script
query Parameters
creatorIdID of the creator
Update script › Request Body
nameName of the script, shorter than 256 characters
Message of the script; text is required
categoryIdID of the category; 0 or a category the creator does not have means Uncategorized
Update script › Responses
Script updated
List 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.
query Parameters
creatorIdID of the creator
List scripts › Responses
Categories with their scripts
The category
Scripts sorted by orderNumber; null when there are none
Create script
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.
query Parameters
creatorIdID of the creator
Create script › Request Body
nameName of the script, shorter than 256 characters
Message of the script; text is required
categoryIdID of the category; 0 or a category the creator does not have means Uncategorized
Create script › Responses
Script created
Move and reorder scripts
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.
path Parameters
scriptIdID of the script to move
query Parameters
creatorIdID of the creator
Move and reorder scripts › Responses
Script moved
Import scripts
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.
query Parameters
creatorIdID of the creator
Import scripts › Request Body
CSV rows; must not be empty
Import scripts › Responses
Scripts imported
Copy scripts to other creators
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.
query Parameters
creatorIdID of the source creator
Copy scripts to other creators › Request Body
targetCreatorIdsIDs of the creators to copy to
Source categories with the scripts to copy from each
Copy scripts to other creators › Responses
Scripts copied
List scripts sent to a fan
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.
path Parameters
creatorIdID of the creator
fanIdOnlyFans user ID of the fan
List scripts sent to a fan › Responses
Script IDs
