CreatorHero
CreatorHero API

Expiring Fans Messages

Messages sent automatically to fans whose subscription expires soon and does not auto-renew, and the settings that control when they are sent. Message text may only use the variables %name%, %lname%, %uname%, %nick%, %lnick%, %unick%, %fnick%, %fnickl% and %fnicku%. Requires the "Modify Creator Settings" permission for the creator.


Get expiring fans message

GET
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/{messageId}

Returns one expiring fans message with its follow-up. statistics is not filled here; use the list.

Get expiring fans message › path Parameters

creatorId
​integer · int64 · required

ID of the creator

messageId
​integer · int32 · required

ID of the expiring fans message

Get expiring fans message › Responses

Expiring fans message

Expiring fans message with its follow-up and send statistics
id
​integer · int32

Expiring fans message ID

​MessageSequenceDto

Message sequence with the messages to send

followUpEnabled
​boolean

Whether a follow-up is sent

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged, empty = no filter

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped, empty = no filter

timeframeStart
​string

Start of the daily send window (UTC); null for the default message

timeframeEnd
​string

End of the daily send window (UTC); null for the default message

​AutoMessageFollowUpDto

Follow-up of the message; null when there is none

​AutoMessageStatisticsDto

Send statistics; filled only when listing messages


Update expiring fans message

PUT
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/{messageId}

Replaces the messages, timeframe and follow-up of an expiring fans message. Same rules as on create; omitting the timeframe turns it into the default message. Empty or missing includedFanLists / excludedFanLists keep the current lists.

Update expiring fans message › path Parameters

creatorId
​integer · int64 · required

ID of the creator

messageId
​integer · int32 · required

ID of the expiring fans message

Update expiring fans message › Request Body

Expiring fans message to create or update
​Message[]

Messages to send, in order; each needs text or media

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged. Empty or missing = no filter on create, keep the current lists on update

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped. Empty or missing = no filter on create, keep the current lists on update

​Time

Start of the daily send window (UTC). Unless both timeframeStart and timeframeEnd are set, this is the default message, used when no window matches

​Time

End of the daily send window (UTC); before timeframeStart for a window crossing midnight

followUpEnabled
​boolean

true to send a follow-up; requires followUpDto

​AutoMessageFollowUpRequest

Follow-up settings; required when followUpEnabled is true

Update expiring fans message › Responses

Updated expiring fans message

Expiring fans message with its follow-up and send statistics
id
​integer · int32

Expiring fans message ID

​MessageSequenceDto

Message sequence with the messages to send

followUpEnabled
​boolean

Whether a follow-up is sent

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged, empty = no filter

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped, empty = no filter

timeframeStart
​string

Start of the daily send window (UTC); null for the default message

timeframeEnd
​string

End of the daily send window (UTC); null for the default message

​AutoMessageFollowUpDto

Follow-up of the message; null when there is none

​AutoMessageStatisticsDto

Send statistics; filled only when listing messages


Delete expiring fans message

DELETE
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/{messageId}

Deletes the expiring fans message and its follow-up.

Delete expiring fans message › path Parameters

creatorId
​integer · int64 · required

ID of the creator

messageId
​integer · int32 · required

ID of the expiring fans message

Delete expiring fans message › Responses

Deleted

No data returned

Activate or deactivate expiring fans message

PUT
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/{messageId}/toggle-message

Sets the message status. Body: the JSON string "ACTIVE" or "INACTIVE". Inactive messages are not sent.

Activate or deactivate expiring fans message › path Parameters

creatorId
​integer · int64 · required

ID of the creator

messageId
​integer · int32 · required

ID of the expiring fans message

Activate or deactivate expiring fans message › Request Body

MessageSequenceStatus · enum
Enum values:
ACTIVE
INACTIVE

Status of a message sequence

Activate or deactivate expiring fans message › Responses

Status changed

No data returned

Get expiring fans settings

GET
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/settings

Returns the settings of the expiring fans automation. Until changed: enabled false, hoursBeforeExpiry 70, maxSpend 100, minHoursSinceLastMessage 24.

Get expiring fans settings › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Get expiring fans settings › Responses

200

Expiring fans settings

Settings of the expiring fans automation
enabled
​boolean

Whether the automation is on

hoursBeforeExpiry
​integer · int32

Message fans whose subscription expires within this many hours

maxSpend
​integer · int32

Message only fans whose total spend is at most this amount in USD; 0 = no limit

minHoursSinceLastMessage
​integer · int32

Minimum hours since the last message in the chat before the fan is messaged


Update expiring fans settings

PUT
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}/settings

Replaces all four settings. enabled turns the automation on or off. A fan is messaged when the subscription expires within hoursBeforeExpiry hours and the fan's total spend is at most maxSpend (0 = no limit). Each fan gets an expiring fans message at most once in 14 days, and not sooner than minHoursSinceLastMessage hours after the last message in the chat.

Update expiring fans settings › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Update expiring fans settings › Request Body

Settings of the expiring fans automation
enabled
​boolean

Whether the automation is on

hoursBeforeExpiry
​integer · int32

Message fans whose subscription expires within this many hours

maxSpend
​integer · int32

Message only fans whose total spend is at most this amount in USD; 0 = no limit

minHoursSinceLastMessage
​integer · int32

Minimum hours since the last message in the chat before the fan is messaged

Update expiring fans settings › Responses

200

Updated expiring fans settings

Settings of the expiring fans automation
enabled
​boolean

Whether the automation is on

hoursBeforeExpiry
​integer · int32

Message fans whose subscription expires within this many hours

maxSpend
​integer · int32

Message only fans whose total spend is at most this amount in USD; 0 = no limit

minHoursSinceLastMessage
​integer · int32

Minimum hours since the last message in the chat before the fan is messaged


List expiring fans messages

GET
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}

Returns all expiring fans messages of the creator with send statistics and follow-up. Empty list when none exist.

List expiring fans messages › path Parameters

creatorId
​integer · int64 · required

ID of the creator

List expiring fans messages › query Parameters

sortBy
​MessageSort · enum

DEFAULT (message without timeframe first, then by timeframeStart), or highest first by SENT_TO, READS, RESPONSES or PPV_BOUGHT. Default DEFAULT.

Sorting options for messages

Enum values:
DEFAULT
SENT_TO
READS
RESPONSES
PPV_BOUGHT
Default: DEFAULT

List expiring fans messages › Responses

200

Expiring fans messages

Expiring fans message with its follow-up and send statistics
id
​integer · int32

Expiring fans message ID

​MessageSequenceDto

Message sequence with the messages to send

followUpEnabled
​boolean

Whether a follow-up is sent

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged, empty = no filter

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped, empty = no filter

timeframeStart
​string

Start of the daily send window (UTC); null for the default message

timeframeEnd
​string

End of the daily send window (UTC); null for the default message

​AutoMessageFollowUpDto

Follow-up of the message; null when there is none

​AutoMessageStatisticsDto

Send statistics; filled only when listing messages


Create expiring fans message

POST
https://backend.creatorhero.com
/dashboard/api/v3/auto-message-expiring-fans/{creatorId}

Creates an active expiring fans message. Set timeframeStart and timeframeEnd (UTC) to send it only in that daily window; omit both for the default message, used when no window matches. Only one default message is allowed and windows must not overlap.

includedFanLists: only fans in at least one of these OnlyFans lists. excludedFanLists: skip fans in any of these lists. Empty means no filter. When followUpEnabled is true, followUpDto is required.

Create expiring fans message › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Create expiring fans message › Request Body

Expiring fans message to create or update
​Message[]

Messages to send, in order; each needs text or media

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged. Empty or missing = no filter on create, keep the current lists on update

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped. Empty or missing = no filter on create, keep the current lists on update

​Time

Start of the daily send window (UTC). Unless both timeframeStart and timeframeEnd are set, this is the default message, used when no window matches

​Time

End of the daily send window (UTC); before timeframeStart for a window crossing midnight

followUpEnabled
​boolean

true to send a follow-up; requires followUpDto

​AutoMessageFollowUpRequest

Follow-up settings; required when followUpEnabled is true

Create expiring fans message › Responses

Created expiring fans message

Expiring fans message with its follow-up and send statistics
id
​integer · int32

Expiring fans message ID

​MessageSequenceDto

Message sequence with the messages to send

followUpEnabled
​boolean

Whether a follow-up is sent

includedFanLists
​string[] · unique

OnlyFans list IDs; only fans in at least one of these lists are messaged, empty = no filter

excludedFanLists
​string[] · unique

OnlyFans list IDs; fans in any of these lists are skipped, empty = no filter

timeframeStart
​string

Start of the daily send window (UTC); null for the default message

timeframeEnd
​string

End of the daily send window (UTC); null for the default message

​AutoMessageFollowUpDto

Follow-up of the message; null when there is none

​AutoMessageStatisticsDto

Send statistics; filled only when listing messages