Fanovate
Fanovate API

Chat Actions

Actions inside a chat: unsend, pin, like, mark read, moderate fans, sync chats.


Moderate a fan

POST
https://api.fanovate.io
/dashboard/api/v1/creators/{creatorId}/fans/{fanId}/moderate
X-API-Key (header)

Restricts, blocks, mutes, hides or clears the chat with a fan, or subscribes to the fan. Runs on the server through the creator session; responds 409 or 503 when the server cannot run it.

Moderate a fan › path Parameters

creatorId
​integer · required
fanId
​integer · required

Moderate a fan › Request Body

kind
​string · enum · required
Enum values:
restrict
unrestrict
block
unblock
mute
unmute
hide
clear
externalId
​string · maxLength: 64

Moderate a fan › Responses

Success.

No data returned

Set the nickname of a fan

POST
https://api.fanovate.io
/dashboard/api/v1/creators/{creatorId}/fans/{fanId}/nickname
X-API-Key (header)

Stores the nickname on the platform. Runs on the server through the creator session; responds 409 or 503 when the server cannot run it.

Set the nickname of a fan › path Parameters

creatorId
​integer · required
fanId
​integer · required

Set the nickname of a fan › Request Body

displayName
​string · maxLength: 200 · required

Set the nickname of a fan › Responses

Success.

ok
​boolean · const · required
Const value:

Run a chat action

POST
https://api.fanovate.io
/dashboard/api/v1/creators/{id}/actions
X-API-Key (header)

Sends a message or runs a chat action as the creator. Runs on the server through the creator session; responds 409 or 503 when the server cannot run it. Only the listed kinds are available with an API key. Sending requires the permission to send as this creator.

Run a chat action › path Parameters

id
​integer · required

Run a chat action › Request Body

kind
​string · enum · required
Enum values:
send
sendImage
typing
refreshThread
likeMessage
unlikeMessage
unsendMessage
setFanNote
fanId
​string · maxLength: 64
text
​string · maxLength: 8000
​array · maxItems: 20
priceCents
​integer · min: 0 · max: 9999999
lockedText
​boolean
previews
​integer[] · maxItems: 20
limit
​integer · max: 200
seiten
​integer · max: 20

Run a chat action › Responses

Success.

No data returned

Sync the chat list of a creator

POST
https://api.fanovate.io
/dashboard/api/v1/inbox/force-sync/{creatorId}
X-API-Key (header)

Reads the chat list live from the platform on the server and stores it. Rate limited.

Sync the chat list of a creator › path Parameters

creatorId
​integer · required

Sync the chat list of a creator › Responses

Success.

ok
​boolean · required
upserted
​integer
reason
​string

Mark a chat as read

POST
https://api.fanovate.io
/dashboard/api/v1/inbox/mark-read/{creatorId}/{fanId}
X-API-Key (header)

Mark a chat as read › path Parameters

creatorId
​integer · required
fanId
​integer · required

Mark a chat as read › Responses

Success.

ok
​boolean · const · required
Const value:

Mark a chat as unread

POST
https://api.fanovate.io
/dashboard/api/v1/inbox/mark-unread/{creatorId}/{fanId}
X-API-Key (header)

Mark a chat as unread › path Parameters

creatorId
​integer · required
fanId
​integer · required

Mark a chat as unread › Responses

Success.

ok
​boolean · const · required
Const value:

Sync the pinned and priority chat flags

POST
https://api.fanovate.io
/dashboard/api/v1/inbox/sync-chat-flags/{creatorId}
X-API-Key (header)

Reads the pinned and priority chat filters from the platform on the server (frisch=1 skips the cache).

Sync the pinned and priority chat flags › path Parameters

creatorId
​integer · required

Sync the pinned and priority chat flags › query Parameters

frisch
​string

Sync the pinned and priority chat flags › Responses

Success.

ok
​boolean · required

Unsend a message

DELETE
https://api.fanovate.io
/dashboard/api/v1/messages/{creatorId}/{fanId}/{messageId}
X-API-Key (header)

Deletes a sent message on the platform and marks it as deleted. externalMessageId can name the platform message explicitly.

Unsend a message › path Parameters

creatorId
​integer · required
fanId
​integer · required
messageId
​string · minLength: 1 · maxLength: 64 · required

Unsend a message › query Parameters

externalMessageId
​string

Unsend a message › Responses

Success.

No data returned

Like a message

POST
https://api.fanovate.io
/dashboard/api/v1/messages/{creatorId}/{fanId}/{messageId}/like
X-API-Key (header)

Like a message › path Parameters

creatorId
​integer · required
fanId
​integer · required
messageId
​string · minLength: 1 · maxLength: 64 · required

Like a message › Responses

Success.

ok
​boolean · required
reason
​string

Remove the like from a message

DELETE
https://api.fanovate.io
/dashboard/api/v1/messages/{creatorId}/{fanId}/{messageId}/like
X-API-Key (header)

Remove the like from a message › path Parameters

creatorId
​integer · required
fanId
​integer · required
messageId
​string · minLength: 1 · maxLength: 64 · required

Remove the like from a message › Responses

Success.

ok
​boolean · required
reason
​string

Pin a message

POST
https://api.fanovate.io
/dashboard/api/v1/messages/{creatorId}/{fanId}/{messageId}/pin
X-API-Key (header)

409 when the message or fan has no platform id yet.

Pin a message › path Parameters

creatorId
​integer · required
fanId
​integer · required
messageId
​string · minLength: 1 · maxLength: 64 · required

Pin a message › Responses

Success.

ok
​boolean · required
reason
​string

Unpin a message

DELETE
https://api.fanovate.io
/dashboard/api/v1/messages/{creatorId}/{fanId}/{messageId}/pin
X-API-Key (header)

Unpin a message › path Parameters

creatorId
​integer · required
fanId
​integer · required
messageId
​string · minLength: 1 · maxLength: 64 · required

Unpin a message › Responses

Success.

ok
​boolean · required
reason
​string